Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Machine ¶
type Machine interface { RegisterMachine(ctx context.Context, id mach.Identifier, endpoint mach.MachineEndpoint, key mach.AgentKey, class machine.MachineClass, cap mach.PowerCapabilities, host *host.Host, cpu *cpu.CPU, mem *memory.Memory, disks []*storage.Disk, nics []*network.Nic, vols []*storage.Volume, ips []*network.IpAddress) error DescribeMachine(ctx context.Context, id mach.Identifier) (*mach.Machine, error) ListMachines(ctx context.Context) ([]*mach.Machine, error) RequestPowerChange(ctx context.Context, id mach.Identifier, changeType pwr.ChangeType) error AddTagsToMachine(ctx context.Context, id mach.Identifier, tags []*tag.Tag) error RemoveTagFromMachine(ctx context.Context, id mach.Identifier, tag tag.TagKey) error AcknowledgeHeartbeat(ctx context.Context, id mach.Identifier) error UpdateStatus(ctx context.Context, id mach.Identifier, status power.StatusCode) error ReportSystemChange(ctx context.Context, id mach.Identifier, host *host.Host, cpu *cpu.CPU, mem *memory.Memory, disks []*storage.Disk, nics []*network.Nic, vols []*storage.Volume, ips []*network.IpAddress) error }
type PowerState ¶
type PowerState interface { WakeOnLan(ctx context.Context, id machine.Identifier) error PowerOff(ctx context.Context, id machine.Identifier) error Reboot(ctx context.Context, id machine.Identifier) error VerifyFinalState(ctx context.Context, identifier machine.Identifier, state power.StatusCode) error VerifyTransitionalState(ctx context.Context, identifier machine.Identifier, state power.StatusCode) error ReconcileUnknownState(ctx context.Context, identifier machine.Identifier) error }
type StateMonitor ¶
Click to show internal directories.
Click to hide internal directories.