agentclient

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2024 License: Apache-2.0 Imports: 8 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) 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)

Jump to

Keyboard shortcuts

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