Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidPowerCapabilityType = fmt.Errorf("invalid power capability type")
View Source
var (
ErrInvalidStatus = errors.New("invalid machine status")
)
Functions ¶
This section is empty.
Types ¶
type PowerCapability ¶
type PowerCapability int
const ( PowerCapabilityTypeWakeOnLan PowerCapability = iota PowerCapabilityTypePowerOff PowerCapabilityTypeReboot PowerCapabilityTypeUnknown )
func PowerCapabilityTypeFromString ¶
func PowerCapabilityTypeFromString(s string) (PowerCapability, error)
func (PowerCapability) String ¶
func (c PowerCapability) String() string
type Status ¶
type Status struct { Status StatusCode UpdatedAt time.Time }
type StatusCode ¶
type StatusCode int64
const ( StatusCodeRunning StatusCode = iota StatusCodeStopped StatusCodeStopping StatusCodeStarting StatusCodeRebooting StatusCodePending StatusCodeUnknown )
func StatusCodeFromString ¶
func StatusCodeFromString(v string) (StatusCode, error)
func (StatusCode) String ¶
func (m StatusCode) String() string
Click to show internal directories.
Click to hide internal directories.