agentclient

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AgentClient

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

func NewAgentClient

func NewAgentClient(c *http.Client, baseUrl string) *AgentClient

func (*AgentClient) DestroyMachine

func (a *AgentClient) DestroyMachine(ctx context.Context, id string, force bool) error

func (*AgentClient) DisableMachineGateway added in v0.5.0

func (a *AgentClient) DisableMachineGateway(ctx context.Context, id string) error

func (*AgentClient) EnableMachineGateway added in v0.5.0

func (a *AgentClient) EnableMachineGateway(ctx context.Context, id string) error

func (*AgentClient) GetMachineLogs

func (a *AgentClient) GetMachineLogs(ctx context.Context, id string) ([]*api.LogEntry, error)

func (*AgentClient) GetMachineLogsRaw

func (a *AgentClient) GetMachineLogsRaw(ctx context.Context, id string, follow bool) (io.ReadCloser, error)

func (*AgentClient) MachineExec

func (a *AgentClient) MachineExec(ctx context.Context, id string, cmd []string, timeout time.Duration) (*api.ExecResult, error)

func (*AgentClient) PutMachine

func (*AgentClient) StartMachine

func (a *AgentClient) StartMachine(ctx context.Context, id string) error

func (*AgentClient) StopMachine

func (a *AgentClient) StopMachine(ctx context.Context, id string, opt *api.StopConfig) error

func (*AgentClient) SubscribeToMachineLogs

func (a *AgentClient) SubscribeToMachineLogs(ctx context.Context, id string) ([]*api.LogEntry, <-chan *api.LogEntry, error)

func (*AgentClient) WaitForMachineStatus added in v0.6.0

func (a *AgentClient) WaitForMachineStatus(ctx context.Context, id string, status api.MachineStatus, timeout uint) error

Jump to

Keyboard shortcuts

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