agent

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

Documentation

Index

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 New

func New(config Config, store Store, runtime *runtime.Runtime) (*Agent, error)

func (*Agent) DestroyMachine

func (d *Agent) DestroyMachine(ctx context.Context, id string, force bool) error

func (*Agent) DisableMachineGateway added in v0.5.0

func (d *Agent) DisableMachineGateway(ctx context.Context, id string) error

func (*Agent) EnableMachineGateway added in v0.5.0

func (d *Agent) EnableMachineGateway(ctx context.Context, id string) error

func (*Agent) GetMachineLogs

func (d *Agent) GetMachineLogs(ctx context.Context, id string) ([]*api.LogEntry, error)

func (*Agent) MachineExec

func (d *Agent) MachineExec(ctx context.Context, id string, cmd []string, timeout time.Duration) (*api.ExecResult, error)

func (*Agent) PutMachine

func (*Agent) Start

func (a *Agent) Start() error

func (*Agent) StartMachine

func (d *Agent) StartMachine(ctx context.Context, id string) error

func (*Agent) Stop

func (d *Agent) Stop(ctx context.Context) error

func (*Agent) StopMachine

func (d *Agent) StopMachine(ctx context.Context, id string, opt *api.StopConfig) error

func (*Agent) SubscribeToMachineLogs

func (d *Agent) SubscribeToMachineLogs(ctx context.Context, id string) ([]*api.LogEntry, <-chan *api.LogEntry, error)

func (*Agent) WaitForMachineStatus added in v0.6.0

func (a *Agent) WaitForMachineStatus(ctx context.Context, id string, status api.MachineStatus, timeout uint) error

type Config

type Config struct {
	Agent     *config.AgentConfig
	Nats      *config.NatsConfig
	Corrosion *config.CorrosionConfig
}

type Store

type Store interface {
	state.Store
	allocator.AllocationsStore
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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