Documentation
¶
Index ¶
- type AgentClient
- func (a *AgentClient) DestroyMachine(ctx context.Context, id string, force bool) error
- func (a *AgentClient) DisableMachineGateway(ctx context.Context, id string) error
- func (a *AgentClient) EnableMachineGateway(ctx context.Context, id string) error
- func (a *AgentClient) GetMachineLogs(ctx context.Context, id string) ([]*api.LogEntry, error)
- func (a *AgentClient) GetMachineLogsRaw(ctx context.Context, id string, follow bool) (io.ReadCloser, error)
- func (a *AgentClient) MachineExec(ctx context.Context, id string, cmd []string, timeout time.Duration) (*api.ExecResult, error)
- func (a *AgentClient) PutMachine(ctx context.Context, opt cluster.PutMachineOptions) (*cluster.MachineInstance, error)
- func (a *AgentClient) StartMachine(ctx context.Context, id string) error
- func (a *AgentClient) StopMachine(ctx context.Context, id string, opt *api.StopConfig) error
- func (a *AgentClient) SubscribeToMachineLogs(ctx context.Context, id string) ([]*api.LogEntry, <-chan *api.LogEntry, error)
- func (a *AgentClient) WaitForMachineStatus(ctx context.Context, id string, status api.MachineStatus, timeout uint) error
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 (*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 (*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 (a *AgentClient) PutMachine(ctx context.Context, opt cluster.PutMachineOptions) (*cluster.MachineInstance, error)
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 (*AgentClient) WaitForMachineStatus ¶ added in v0.6.0
func (a *AgentClient) WaitForMachineStatus(ctx context.Context, id string, status api.MachineStatus, timeout uint) error
Click to show internal directories.
Click to hide internal directories.