service

package
v0.0.0-...-7a62f64 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 4, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

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

type StateMonitor interface {
	ScheduleStateVerificationJobs(ctx context.Context) error
}

Jump to

Keyboard shortcuts

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