sls_client

package
v2.4.0 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SLSClient

type SLSClient struct {
	// contains filtered or unexported fields
}

func NewSLSClient

func NewSLSClient(baseURL string, client *http.Client, instanceName string) *SLSClient

func (*SLSClient) GetAllHardware

func (sc *SLSClient) GetAllHardware(ctx context.Context) ([]sls_common.GenericHardware, error)

func (*SLSClient) GetDumpState

func (sc *SLSClient) GetDumpState(ctx context.Context) (sls_common.SLSState, error)

func (*SLSClient) GetNetwork added in v2.2.0

func (sc *SLSClient) GetNetwork(ctx context.Context, networkName string) (sls_common.Network, error)

func (*SLSClient) GetNetworks added in v2.2.0

func (sc *SLSClient) GetNetworks(ctx context.Context) ([]sls_common.Network, error)

func (*SLSClient) PutHardware

func (sc *SLSClient) PutHardware(ctx context.Context, hardware sls_common.GenericHardware) error

func (*SLSClient) PutNetwork

func (sc *SLSClient) PutNetwork(ctx context.Context, network sls_common.Network) error

func (*SLSClient) WithAPIToken

func (sc *SLSClient) WithAPIToken(apiToken string) *SLSClient

Jump to

Keyboard shortcuts

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