Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrInvalidClass = errors.New("invalid machine class")
)
Functions ¶
This section is empty.
Types ¶
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 }
func NewPowerCapabilities ¶
func NewPowerCapabilities(wakeOnLan *PowerCapabilityWakeOnLan, powerOff *PowerCapabilityPowerOff, reboot *PowerCapabilityReboot) *PowerCapabilities
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
Click to show internal directories.
Click to hide internal directories.