Documentation ¶
Index ¶
- type BinMgrService
- type PolicyAlreadyExistsError
- type PolicyService
- func (xps *PolicyService) Create(params utils.PolicyParams) error
- func (xps *PolicyService) Delete(policyName string) error
- func (xps *PolicyService) Get(policyName string) (policyResp *utils.PolicyParams, err error)
- func (xps *PolicyService) GetJfrogHttpClient() *jfroghttpclient.JfrogHttpClient
- func (xps *PolicyService) GetXrayDetails() auth.ServiceDetails
- func (xps *PolicyService) Update(params utils.PolicyParams) error
- type VersionService
- type WatchAlreadyExistsError
- type WatchService
- func (xws *WatchService) Create(params utils.WatchParams) error
- func (xws *WatchService) Delete(watchName string) error
- func (xws *WatchService) Get(watchName string) (watchResp *utils.WatchParams, err error)
- func (xws *WatchService) GetJfrogHttpClient() *jfroghttpclient.JfrogHttpClient
- func (vs *WatchService) GetXrayDetails() auth.ServiceDetails
- func (xws *WatchService) Update(params utils.WatchParams) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BinMgrService ¶ added in v0.20.1
type BinMgrService struct { XrayDetails auth.ServiceDetails // contains filtered or unexported fields }
BinMgrService defines the http client and Xray details
func NewBinMgrService ¶ added in v0.20.1
func NewBinMgrService(client *jfroghttpclient.JfrogHttpClient) *BinMgrService
NewBinMgrService creates a new Xray Binary Manager Service
func (*BinMgrService) AddBuildsToIndexing ¶ added in v0.20.1
func (xbms *BinMgrService) AddBuildsToIndexing(buildNames []string) error
AddBuildsToIndexing will add builds to indexing configuration
func (*BinMgrService) GetJfrogHttpClient ¶ added in v0.20.1
func (xbms *BinMgrService) GetJfrogHttpClient() *jfroghttpclient.JfrogHttpClient
GetJfrogHttpClient returns the http client
func (*BinMgrService) GetXrayDetails ¶ added in v0.20.1
func (xbms *BinMgrService) GetXrayDetails() auth.ServiceDetails
GetXrayDetails returns the Xray details
type PolicyAlreadyExistsError ¶ added in v0.21.0
type PolicyAlreadyExistsError struct {
InnerError error
}
func (*PolicyAlreadyExistsError) Error ¶ added in v0.21.0
func (*PolicyAlreadyExistsError) Error() string
type PolicyService ¶ added in v0.20.1
type PolicyService struct { XrayDetails auth.ServiceDetails // contains filtered or unexported fields }
PolicyService defines the http client and xray details
func NewPolicyService ¶ added in v0.20.1
func NewPolicyService(client *jfroghttpclient.JfrogHttpClient) *PolicyService
NewPolicyService creates a new Xray Policy Service
func (*PolicyService) Create ¶ added in v0.20.1
func (xps *PolicyService) Create(params utils.PolicyParams) error
Create will create a new xray policy
func (*PolicyService) Delete ¶ added in v0.20.1
func (xps *PolicyService) Delete(policyName string) error
Delete will delete an existing policy by name It will error if no policy can be found by that name.
func (*PolicyService) Get ¶ added in v0.20.1
func (xps *PolicyService) Get(policyName string) (policyResp *utils.PolicyParams, err error)
Get retrieves the details about an Xray policy by its name It will error if no policy can be found by that name.
func (*PolicyService) GetJfrogHttpClient ¶ added in v0.20.1
func (xps *PolicyService) GetJfrogHttpClient() *jfroghttpclient.JfrogHttpClient
GetJfrogHttpClient returns the http client
func (*PolicyService) GetXrayDetails ¶ added in v0.20.1
func (xps *PolicyService) GetXrayDetails() auth.ServiceDetails
GetXrayDetails returns the xray details
func (*PolicyService) Update ¶ added in v0.20.1
func (xps *PolicyService) Update(params utils.PolicyParams) error
Update will update an existing Xray policy by name It will error if no policy can be found by that name.
type VersionService ¶
type VersionService struct { XrayDetails auth.ServiceDetails // contains filtered or unexported fields }
VersionService returns the https client and xray details
func NewVersionService ¶
func NewVersionService(client *jfroghttpclient.JfrogHttpClient) *VersionService
NewVersionService creates a new service to retrieve the version of Xray
func (*VersionService) GetVersion ¶
func (vs *VersionService) GetVersion() (string, error)
GetVersion returns the version of xray
func (*VersionService) GetXrayDetails ¶
func (vs *VersionService) GetXrayDetails() auth.ServiceDetails
GetXrayDetails returns the xray details
type WatchAlreadyExistsError ¶ added in v0.21.0
type WatchAlreadyExistsError struct {
InnerError error
}
func (*WatchAlreadyExistsError) Error ¶ added in v0.21.0
func (*WatchAlreadyExistsError) Error() string
type WatchService ¶
type WatchService struct { XrayDetails auth.ServiceDetails // contains filtered or unexported fields }
WatchService defines the http client and xray details
func NewWatchService ¶
func NewWatchService(client *jfroghttpclient.JfrogHttpClient) *WatchService
NewWatchService creates a new Xray Watch Service
func (*WatchService) Create ¶
func (xws *WatchService) Create(params utils.WatchParams) error
Create will create a new xray watch
func (*WatchService) Delete ¶
func (xws *WatchService) Delete(watchName string) error
Delete will delete an existing watch by name It will error if no watch can be found by that name.
func (*WatchService) Get ¶
func (xws *WatchService) Get(watchName string) (watchResp *utils.WatchParams, err error)
Get retrieves the details about an Xray watch by its name It will error if no watch can be found by that name.
func (*WatchService) GetJfrogHttpClient ¶
func (xws *WatchService) GetJfrogHttpClient() *jfroghttpclient.JfrogHttpClient
GetJfrogHttpClient returns the http client
func (*WatchService) GetXrayDetails ¶
func (vs *WatchService) GetXrayDetails() auth.ServiceDetails
GetXrayDetails returns the xray details
func (*WatchService) Update ¶
func (xws *WatchService) Update(params utils.WatchParams) error
Update will update an existing Xray watch by name It will error if no watch can be found by that name.