campd

package
v0.0.0-...-7a62f64 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CampdCacheClient

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

func (*CampdCacheClient) CheckMachineConnectivity

func (c *CampdCacheClient) CheckMachineConnectivity(ctx context.Context, id, endpoint, token string) (bool, error)

func (*CampdCacheClient) GetClient

func (c *CampdCacheClient) GetClient(ctx context.Context, id, endpoint, token string) (*campagent.Client, error)

func (*CampdCacheClient) PowerOffMachine

func (c *CampdCacheClient) PowerOffMachine(ctx context.Context, id, endpoint, token string) error

func (*CampdCacheClient) RebootMachine

func (c *CampdCacheClient) RebootMachine(ctx context.Context, id, endpoint, token string) error

type Client

type Client interface {
	PowerOffMachine(ctx context.Context, id, endpoint, token string) error
	RebootMachine(ctx context.Context, id, endpoint, token string) error
	CheckMachineConnectivity(ctx context.Context, id, endpoint, token string) (bool, error)
}

func NewCacheClient

func NewCacheClient() Client

type StaticAuthKeyProvider

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

func NewStaticAuthKeyProvider

func NewStaticAuthKeyProvider(token string) *StaticAuthKeyProvider

func (*StaticAuthKeyProvider) SmithyAPIHttpApiKeyAuth

func (p *StaticAuthKeyProvider) SmithyAPIHttpApiKeyAuth(ctx context.Context, operationName string) (campagent.SmithyAPIHttpApiKeyAuth, error)

Jump to

Keyboard shortcuts

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