orchestrator

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: 12 Imported by: 0

Documentation

Index

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 (o *Orchestrator) DestroyMachine(ctx context.Context, machine cluster.Machine, force bool) error

func (*Orchestrator) DisableMachineGateway added in v0.5.0

func (o *Orchestrator) DisableMachineGateway(ctx context.Context, machine cluster.Machine) error

func (*Orchestrator) EnableMachineGateway added in v0.5.0

func (o *Orchestrator) EnableMachineGateway(ctx context.Context, machine cluster.Machine) error

func (*Orchestrator) GetMachineLogsRaw

func (o *Orchestrator) GetMachineLogsRaw(ctx context.Context, machine cluster.Machine, follow bool) (io.ReadCloser, error)

func (*Orchestrator) GetNode

func (m *Orchestrator) GetNode(ctx context.Context, id string) (api.Node, error)

func (*Orchestrator) ListNodes

func (m *Orchestrator) ListNodes(ctx context.Context) ([]api.Node, error)

func (*Orchestrator) ListNodesInRegion

func (m *Orchestrator) ListNodesInRegion(ctx context.Context, region string) ([]api.Node, error)

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 (o *Orchestrator) PrepareAllocation(ctx context.Context, region string, allocationId string, resources api.Resources) (nodeId string, err error)

func (*Orchestrator) PutMachine

func (o *Orchestrator) PutMachine(ctx context.Context, nodeId string, machine *cluster.Machine, mv api.MachineVersion, start bool, enableGateway bool) error

func (*Orchestrator) StartMachineInstance

func (o *Orchestrator) StartMachineInstance(ctx context.Context, machine cluster.Machine) error

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

Jump to

Keyboard shortcuts

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