services

package
v0.17.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 30, 2020 License: Apache-2.0 Imports: 11 Imported by: 20

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

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 *rthttpclient.ArtifactoryHttpClient) *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 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 *rthttpclient.ArtifactoryHttpClient) *WatchService

NewWatchService creates a new Xray Watch Service

func (*WatchService) Create

func (xws *WatchService) Create(params utils.WatchParams) (*http.Response, error)

Create will create a new xray watch

func (*WatchService) Delete

func (xws *WatchService) Delete(watchName string) (*http.Response, 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, resp *http.Response, 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() *rthttpclient.ArtifactoryHttpClient

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) (*http.Response, error)

Update will update an existing Xray watch by name It will error if no watch can be found by that name.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL