Documentation
¶
Index ¶
- type Orchestrator
- func (o *Orchestrator) DestroyMachine(ctx context.Context, machine cluster.Machine, force bool) error
- func (o *Orchestrator) DisableMachineGateway(ctx context.Context, machine cluster.Machine) error
- func (o *Orchestrator) EnableMachineGateway(ctx context.Context, machine cluster.Machine) error
- func (o *Orchestrator) GetMachineLogsRaw(ctx context.Context, machine cluster.Machine, follow bool) (io.ReadCloser, error)
- func (m *Orchestrator) GetNode(ctx context.Context, id string) (api.Node, error)
- func (m *Orchestrator) ListNodes(ctx context.Context) ([]api.Node, error)
- func (m *Orchestrator) ListNodesInRegion(ctx context.Context, region string) ([]api.Node, error)
- func (o *Orchestrator) MachineExec(ctx context.Context, machine cluster.Machine, execOpts *api.ExecOptions) (*api.ExecResult, error)
- func (o *Orchestrator) PrepareAllocation(ctx context.Context, region string, allocationId string, ...) (nodeId string, err error)
- func (o *Orchestrator) PutMachine(ctx context.Context, nodeId string, machine *cluster.Machine, ...) error
- func (o *Orchestrator) StartMachineInstance(ctx context.Context, machine cluster.Machine) error
- func (o *Orchestrator) StopMachineInstance(ctx context.Context, machine cluster.Machine, stopConfig *api.StopConfig) error
- func (o *Orchestrator) WaitMachine(ctx context.Context, machine cluster.Machine, state api.MachineStatus, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Orchestrator ¶
type Orchestrator struct {
// contains filtered or unexported fields
}
func New ¶
func New(nc *nats.Conn, clusterState cluster.ClusterState, tlsConfig *tls.Config) *Orchestrator
func (*Orchestrator) DestroyMachine ¶
func (*Orchestrator) DisableMachineGateway ¶ added in v0.5.0
func (*Orchestrator) EnableMachineGateway ¶ added in v0.5.0
func (*Orchestrator) GetMachineLogsRaw ¶
func (o *Orchestrator) GetMachineLogsRaw(ctx context.Context, machine cluster.Machine, follow bool) (io.ReadCloser, error)
func (*Orchestrator) ListNodesInRegion ¶
func (*Orchestrator) MachineExec ¶ added in v0.2.0
func (o *Orchestrator) MachineExec(ctx context.Context, machine cluster.Machine, execOpts *api.ExecOptions) (*api.ExecResult, error)
func (*Orchestrator) PrepareAllocation ¶
func (*Orchestrator) PutMachine ¶
func (*Orchestrator) StartMachineInstance ¶
func (*Orchestrator) StopMachineInstance ¶
func (o *Orchestrator) StopMachineInstance(ctx context.Context, machine cluster.Machine, stopConfig *api.StopConfig) error
func (*Orchestrator) WaitMachine ¶
func (o *Orchestrator) WaitMachine( ctx context.Context, machine cluster.Machine, state api.MachineStatus, timeout uint, ) error
Click to show internal directories.
Click to hide internal directories.