Documentation ¶
Index ¶
Constants ¶
View Source
const ( // ErrInvalidStateName is an error code when state name is invalid. ErrInvalidStateName = "INVALID_STATE_NAME" // ErrInvalidStateTransition is an error code when state transition is invalid. ErrInvalidStateTransition = "INVALID_STATE_TRANSITION" // ErrEncryptionKeyExists is an error code when a retiring machine to retired that still has disk encryption keys. ErrEncryptionKeyExists = "ENCRYPTION_KEY_EXISTS" // ErrMachineNotFound is an error code when no specified machine found. ErrMachineNotFound = "MACHINE_NOT_FOUND" // ErrInternalServerError is an error code when internal server error has occurred. ErrInternalServerError = "INTERNAL_SERVER_ERROR" )
Variables ¶
This section is empty.
Functions ¶
func MarshalMachineState ¶
MarshalMachineState helps mapping sabakan.MachineState with GraphQL enum.
func UnmarshalMachineState ¶
func UnmarshalMachineState(v interface{}) (sabakan.MachineState, error)
UnmarshalMachineState helps mapping sabakan.MachineState with GraphQL enum.
Types ¶
type DateTime ¶
DateTime represents "DateTime" GraphQL custom scalar.
func (DateTime) MarshalGQL ¶
MarshalGQL implements graphql.Marshaler interface.
func (*DateTime) UnmarshalGQL ¶
UnmarshalGQL implements graphql.Marshaler interface.
type IPAddress ¶
IPAddress represents "IPAddress" GraphQL custom scalar.
func (IPAddress) MarshalGQL ¶
MarshalGQL implements graphql.Marshaler interface.
func (*IPAddress) UnmarshalGQL ¶
UnmarshalGQL implements graphql.Marshaler interface.
type LabelInput ¶
LabelInput represents a label to search machines.
type MachineParams ¶
type MachineParams struct { Labels []*LabelInput `json:"labels"` Racks []int `json:"racks"` Roles []string `json:"roles"` States []sabakan.MachineState `json:"states"` MinDaysBeforeRetire *int `json:"minDaysBeforeRetire"` }
MachineParams is a set of input parameters to search machines.
Click to show internal directories.
Click to hide internal directories.