Documentation
¶
Index ¶
- type Agent
- func (a *Agent) CreateInstance(ctx context.Context, opt core.CreateInstancePayload) (*core.Instance, error)
- func (s *Agent) DestroyInstance(ctx context.Context, id string, force bool) error
- func (a *Agent) GetInstance(ctx context.Context, id string) (*core.Instance, error)
- func (a *Agent) GetInstanceLogs(ctx context.Context, id string) ([]*core.LogEntry, error)
- func (s *Agent) InstanceExec(ctx context.Context, id string, opt core.InstanceExecOptions) (*core.ExecResult, error)
- func (d *Agent) ListInstances(ctx context.Context) ([]core.Instance, error)
- func (d *Agent) Start(ctx context.Context) error
- func (s *Agent) StartInstance(ctx context.Context, id string) error
- func (d *Agent) Stop() error
- func (s *Agent) StopInstance(ctx context.Context, id string, opt *core.StopConfig) error
- func (a *Agent) SubscribeToInstanceLogs(ctx context.Context, id string) (<-chan []*core.LogEntry, error)
- type AgentServer
- type CreateInstanceRequest
- type CreateInstanceResponse
- type DestroyInstanceRequest
- type DestroyInstanceResponse
- type ExecBody
- type ExecRequest
- type ExecResponse
- type GetInstanceLogsRequest
- type GetInstanceLogsResponse
- type GetInstanceRequest
- type GetInstanceResponse
- type ListInstancesRequest
- type ListInstancesResponse
- type StartInstanceRequest
- type StartInstanceResponse
- type StopInstanceRequest
- type StopInstanceResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Agent ¶
type Agent struct {
// contains filtered or unexported fields
}
func (*Agent) CreateInstance ¶
func (*Agent) DestroyInstance ¶
func (*Agent) GetInstance ¶
func (*Agent) GetInstanceLogs ¶
func (*Agent) InstanceExec ¶
func (s *Agent) InstanceExec(ctx context.Context, id string, opt core.InstanceExecOptions) (*core.ExecResult, error)
func (*Agent) ListInstances ¶
func (*Agent) StopInstance ¶
type AgentServer ¶
type AgentServer struct {
// contains filtered or unexported fields
}
func NewAgentServer ¶
func NewAgentServer(agent core.Agent, address string) *AgentServer
func (*AgentServer) ListenAndServe ¶
func (s *AgentServer) ListenAndServe() error
type CreateInstanceRequest ¶
type CreateInstanceRequest struct {
Body core.CreateInstancePayload
}
type CreateInstanceResponse ¶
type DestroyInstanceRequest ¶
type DestroyInstanceResponse ¶
type DestroyInstanceResponse struct { }
type ExecRequest ¶
type ExecRequest struct { Id string `path:"id"` Body core.InstanceExecOptions }
type ExecResponse ¶
type ExecResponse struct {
Body *core.ExecResult
}
type GetInstanceLogsRequest ¶
type GetInstanceLogsResponse ¶
type GetInstanceLogsResponse struct {
Body []byte
}
type GetInstanceRequest ¶
type GetInstanceRequest struct {
Id string `path:"id"`
}
type GetInstanceResponse ¶
type ListInstancesRequest ¶
type ListInstancesRequest struct { }
type ListInstancesResponse ¶
type StartInstanceRequest ¶
type StartInstanceRequest struct {
Id string `path:"id"`
}
type StartInstanceResponse ¶
type StartInstanceResponse struct { }
type StopInstanceRequest ¶
type StopInstanceRequest struct { Id string `path:"id"` Body *core.StopConfig `required:"false"` }
type StopInstanceResponse ¶
type StopInstanceResponse struct { }
Click to show internal directories.
Click to hide internal directories.