Documentation ¶
Index ¶
- type CampdCacheClient
- func (c *CampdCacheClient) CheckMachineConnectivity(ctx context.Context, id, endpoint, token string) (bool, error)
- func (c *CampdCacheClient) GetClient(ctx context.Context, id, endpoint, token string) (*campagent.Client, error)
- func (c *CampdCacheClient) PowerOffMachine(ctx context.Context, id, endpoint, token string) error
- func (c *CampdCacheClient) RebootMachine(ctx context.Context, id, endpoint, token string) error
- type Client
- type StaticAuthKeyProvider
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 (*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)
Click to show internal directories.
Click to hide internal directories.