Documentation ¶
Index ¶
- type XrayServicesManager
- func (sm *XrayServicesManager) AddBuildsToIndexing(buildNames []string) error
- func (sm *XrayServicesManager) Client() *jfroghttpclient.JfrogHttpClient
- func (sm *XrayServicesManager) Config() config.Config
- func (sm *XrayServicesManager) CreatePolicy(params utils.PolicyParams) error
- func (sm *XrayServicesManager) CreateWatch(params utils.WatchParams) error
- func (sm *XrayServicesManager) DeletePolicy(policyName string) error
- func (sm *XrayServicesManager) DeleteWatch(watchName string) error
- func (sm *XrayServicesManager) GetPolicy(policyName string) (*utils.PolicyParams, error)
- func (sm *XrayServicesManager) GetScanGraphResults(scanID string) (*services.ScanResponse, error)
- func (sm *XrayServicesManager) GetVersion() (string, error)
- func (sm *XrayServicesManager) GetWatch(watchName string) (*utils.WatchParams, error)
- func (sm *XrayServicesManager) ScanGraph(params services.XrayGraphScanParams) (scanId string, err error)
- func (sm *XrayServicesManager) UpdatePolicy(params utils.PolicyParams) error
- func (sm *XrayServicesManager) UpdateWatch(params utils.WatchParams) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type XrayServicesManager ¶
type XrayServicesManager struct {
// contains filtered or unexported fields
}
XrayServicesManager defines the http client and general configuration
func New ¶
func New(config config.Config) (*XrayServicesManager, error)
New creates a service manager to interact with Xray
func (*XrayServicesManager) AddBuildsToIndexing ¶ added in v0.20.1
func (sm *XrayServicesManager) AddBuildsToIndexing(buildNames []string) error
AddBuildsToIndexing will add builds to Xray indexing configuration
func (*XrayServicesManager) Client ¶
func (sm *XrayServicesManager) Client() *jfroghttpclient.JfrogHttpClient
Client will return the http client
func (*XrayServicesManager) Config ¶ added in v0.25.0
func (sm *XrayServicesManager) Config() config.Config
func (*XrayServicesManager) CreatePolicy ¶ added in v0.20.1
func (sm *XrayServicesManager) CreatePolicy(params utils.PolicyParams) error
CreatePolicy will create a new Xray policy
func (*XrayServicesManager) CreateWatch ¶
func (sm *XrayServicesManager) CreateWatch(params utils.WatchParams) error
CreateWatch will create a new Xray watch
func (*XrayServicesManager) DeletePolicy ¶ added in v0.20.1
func (sm *XrayServicesManager) DeletePolicy(policyName string) error
DeletePolicy will delete an existing policy by name It will error if no policy can be found by that name.
func (*XrayServicesManager) DeleteWatch ¶
func (sm *XrayServicesManager) DeleteWatch(watchName string) error
DeleteWatch will delete an existing watch by name It will error if no watch can be found by that name.
func (*XrayServicesManager) GetPolicy ¶ added in v0.20.1
func (sm *XrayServicesManager) GetPolicy(policyName string) (*utils.PolicyParams, error)
GetPolicy retrieves the details about an Xray policy by name It will error if no policy can be found by that name.
func (*XrayServicesManager) GetScanGraphResults ¶ added in v0.25.0
func (sm *XrayServicesManager) GetScanGraphResults(scanID string) (*services.ScanResponse, error)
GetScanGraphResults returns an Xray scan output of the requested graph scan. The scanId input should be received from ScanGraph request.
func (*XrayServicesManager) GetVersion ¶
func (sm *XrayServicesManager) GetVersion() (string, error)
GetVersion will return the Xray version
func (*XrayServicesManager) GetWatch ¶
func (sm *XrayServicesManager) GetWatch(watchName string) (*utils.WatchParams, error)
GetWatch retrieves the details about an Xray watch by name It will error if no watch can be found by that name.
func (*XrayServicesManager) ScanGraph ¶ added in v0.25.0
func (sm *XrayServicesManager) ScanGraph(params services.XrayGraphScanParams) (scanId string, err error)
ScanGraph will send Xray the given graph for scan Returns a string represents the scan ID.
func (*XrayServicesManager) UpdatePolicy ¶ added in v0.20.1
func (sm *XrayServicesManager) UpdatePolicy(params utils.PolicyParams) error
UpdatePolicy will update an existing Xray policy by name It will error if no policy can be found by that name.
func (*XrayServicesManager) UpdateWatch ¶
func (sm *XrayServicesManager) UpdateWatch(params utils.WatchParams) error
UpdateWatch will update an existing Xray watch by name It will error if no watch can be found by that name.