machine

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidClass = errors.New("invalid machine class")
)

Functions

This section is empty.

Types

type AgentKey

type AgentKey string

func AgentKeyFromString

func AgentKeyFromString(v string) (AgentKey, error)

func (AgentKey) String

func (m AgentKey) String() string

type Identifier

type Identifier string

func IdentifierFromString

func IdentifierFromString(identifier string) (Identifier, error)

func (Identifier) String

func (m Identifier) String() string

type MachineClass

type MachineClass int
const (
	MachineClassBareMetal MachineClass = iota
	MachineClassVirtual
	MachineClassHypervisor
	MachineClassUnknown
)

func MachineClassFromString

func MachineClassFromString(v string) (MachineClass, error)

func (MachineClass) String

func (m MachineClass) String() string

type MachineEndpoint

type MachineEndpoint string

func MachineEndpointFromString

func MachineEndpointFromString(v string) (MachineEndpoint, error)

func (MachineEndpoint) String

func (m MachineEndpoint) String() string

type PowerCapabilities

type PowerCapabilities struct {
	WakeOnLan PowerCapabilityWakeOnLan
	PowerOff  PowerCapabilityPowerOff
	Reboot    PowerCapabilityReboot
}

type PowerCapabilityPowerOff

type PowerCapabilityPowerOff struct {
	Enabled bool
}

func NewPowerCapabilityPowerOff

func NewPowerCapabilityPowerOff(enabled bool) *PowerCapabilityPowerOff

type PowerCapabilityReboot

type PowerCapabilityReboot struct {
	Enabled bool
}

func NewPowerCapabilityReboot

func NewPowerCapabilityReboot(enabled bool) *PowerCapabilityReboot

type PowerCapabilityWakeOnLan

type PowerCapabilityWakeOnLan struct {
	Enabled    bool
	MacAddress *network.MacAddress
}

func NewPowerCapabilityWakeOnLan

func NewPowerCapabilityWakeOnLan(enabled bool, macAddress *network.MacAddress) *PowerCapabilityWakeOnLan

Jump to

Keyboard shortcuts

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