@@ -17,6 +17,7 @@ import (
1717 accessAuth "github.com/jfrog/jfrog-client-go/access/auth"
1818 artifactoryAuth "github.com/jfrog/jfrog-client-go/artifactory/auth"
1919 "github.com/jfrog/jfrog-client-go/auth"
20+ catalogAuth "github.com/jfrog/jfrog-client-go/catalog/auth"
2021 distributionAuth "github.com/jfrog/jfrog-client-go/distribution/auth"
2122 evidenceAuth "github.com/jfrog/jfrog-client-go/evidence/auth"
2223 lifecycleAuth "github.com/jfrog/jfrog-client-go/lifecycle/auth"
@@ -578,6 +579,7 @@ type ServerDetails struct {
578579 DistributionUrl string `json:"distributionUrl,omitempty"`
579580 XrayUrl string `json:"xrayUrl,omitempty"`
580581 XscUrl string `json:"xscUrl,omitempty"`
582+ CatalogUrl string `json:"catalogUrl,omitempty"`
581583 MissionControlUrl string `json:"missionControlUrl,omitempty"`
582584 PipelinesUrl string `json:"pipelinesUrl,omitempty"`
583585 AccessUrl string `json:"accessUrl,omitempty"`
@@ -659,6 +661,10 @@ func (serverDetails *ServerDetails) GetXrayUrl() string {
659661 return serverDetails .XrayUrl
660662}
661663
664+ func (serverDetails * ServerDetails ) GetCatalogUrl () string {
665+ return serverDetails .CatalogUrl
666+ }
667+
662668func (serverDetails * ServerDetails ) GetMissionControlUrl () string {
663669 return serverDetails .MissionControlUrl
664670}
@@ -729,6 +735,12 @@ func (serverDetails *ServerDetails) CreateXrayAuthConfig() (auth.ServiceDetails,
729735 return serverDetails .createAuthConfig (artAuth )
730736}
731737
738+ func (serverDetails * ServerDetails ) CreateCatalogAuthConfig () (auth.ServiceDetails , error ) {
739+ catAuth := catalogAuth .NewCatalogDetails ()
740+ catAuth .SetUrl (utils .AddTrailingSlashIfNeeded (serverDetails .Url ) + "catalog/" )
741+ return serverDetails .createAuthConfig (catAuth )
742+ }
743+
732744func (serverDetails * ServerDetails ) CreateXscAuthConfig () (auth.ServiceDetails , error ) {
733745 ascAuth := xscAuth .NewXscDetails ()
734746 ascAuth .SetUrl (serverDetails .convertXrayUrlToXscUrl ())
0 commit comments