Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetResultForError ¶
func IsNotAMachine ¶
func IsNotExist ¶
func IsNotFound ¶
func IsUUIDNotExist ¶
Types ¶
type MachineError ¶
type MachineError struct {
ErrStatus Reason
}
func NotFound ¶
func NotFound(msg string) *MachineError
func NotSizeLabeled ¶
func NotSizeLabeled() *MachineError
func UUIDNotExist ¶
func UUIDNotExist(s string) *MachineError
func Unknown ¶
func Unknown() *MachineError
func (*MachineError) Error ¶
func (e *MachineError) Error() string
func (*MachineError) Status ¶
func (e *MachineError) Status() Reason
type MachineStatus ¶
type MachineStatus interface {
Status() Reason
}
type Reason ¶
type Reason struct { Message string StatusReason StatusReason }
type StatusReason ¶
type StatusReason string
func ReasonForError ¶
func ReasonForError(err error) StatusReason
Click to show internal directories.
Click to hide internal directories.