Documentation ¶
Index ¶
- type XrayServicesManager
- func (sm *XrayServicesManager) Client() *jfroghttpclient.JfrogHttpClient
- func (sm *XrayServicesManager) CreateWatch(params utils.WatchParams) (*http.Response, error)
- func (sm *XrayServicesManager) DeleteWatch(watchName string) (*http.Response, error)
- func (sm *XrayServicesManager) GetVersion() (string, error)
- func (sm *XrayServicesManager) GetWatch(watchName string) (*utils.WatchParams, *http.Response, error)
- func (sm *XrayServicesManager) UpdateWatch(params utils.WatchParams) (*http.Response, 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(details *auth.ServiceDetails, config config.Config) (*XrayServicesManager, error)
New creates a service manager to interact with Xray
func (*XrayServicesManager) Client ¶
func (sm *XrayServicesManager) Client() *jfroghttpclient.JfrogHttpClient
Client will return the http client
func (*XrayServicesManager) CreateWatch ¶
func (sm *XrayServicesManager) CreateWatch(params utils.WatchParams) (*http.Response, error)
CreateWatch will create a new xray watch
func (*XrayServicesManager) DeleteWatch ¶
func (sm *XrayServicesManager) DeleteWatch(watchName string) (*http.Response, error)
DeleteWatch will delete an existing watch by name It will error if no watch can be found by that name.
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, *http.Response, 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) UpdateWatch ¶
func (sm *XrayServicesManager) UpdateWatch(params utils.WatchParams) (*http.Response, error)
UpdateWatch will update an existing Xray watch by name It will error if no watch can be found by that name.
Click to show internal directories.
Click to hide internal directories.