xray

package
v0.19.1 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2021 License: Apache-2.0 Imports: 6 Imported by: 12

Documentation

Index

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

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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