Documentation
¶
Index ¶
- Constants
- type BlockDevice
- type Details
- func (d *Details) ClearDesired()
- func (d *Details) SetCurrentToCheckingAndRepairing()
- func (d *Details) SetCurrentToCompleted()
- func (d *Details) SetCurrentToOk()
- func (d *Details) SetCurrentToPending()
- func (d *Details) SetDesiredToCompleted()
- func (d *Details) SetDesiredToDelete()
- func (d *Details) SetDesiredToOk()
- func (d *Details) SetDesiredToUpdate()
- type Health
- type License
- type Settings
- type SupportFile
- type Trigger
- type Tuning
Constants ¶
View Source
const ( None = "" Create = "create" Update = "update" Delete = "delete" Reset = "reset" Creating = "creating" Pending = "pending" Updating = "updating" Repairing = "repairing" Deleting = "deleting" CheckingAndRepairing = "checkingAndRepairing" Completed = "completed" Created = "created" Updated = "updated" Deleted = "deleted" Ok = "ok" Up = "up" Ng = "ng" Down = "down" Valid = "valid" Unlicense = "unlicense" Expired = "expired" Error = "error" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlockDevice ¶
type Details ¶
type Details struct { Current string `json:"current,omitempty" bson:"current"` Desired string `json:"desired,omitempty" bson:"desired"` CreatedAt time.Time `json:"createdAt,omitzero" bson:"createdAt"` UpdatedAt time.Time `json:"updatedAt,omitzero" bson:"updatedAt"` IsFixing bool `json:"isFixing" bson:"isFixing"` Description string `json:"description,omitempty" bson:"description"` }
func (*Details) ClearDesired ¶
func (d *Details) ClearDesired()
func (*Details) SetCurrentToCheckingAndRepairing ¶
func (d *Details) SetCurrentToCheckingAndRepairing()
func (*Details) SetCurrentToCompleted ¶
func (d *Details) SetCurrentToCompleted()
func (*Details) SetCurrentToOk ¶
func (d *Details) SetCurrentToOk()
func (*Details) SetCurrentToPending ¶
func (d *Details) SetCurrentToPending()
func (*Details) SetDesiredToCompleted ¶
func (d *Details) SetDesiredToCompleted()
func (*Details) SetDesiredToDelete ¶
func (d *Details) SetDesiredToDelete()
func (*Details) SetDesiredToOk ¶
func (d *Details) SetDesiredToOk()
func (*Details) SetDesiredToUpdate ¶
func (d *Details) SetDesiredToUpdate()
type Health ¶
type Health struct { Current string `json:"current,omitempty" bson:"current"` Desired string `json:"desired,omitempty" bson:"desired"` CreatedAt *time.Time `json:"createdAt,omitempty" bson:"createdAt"` UpdatedAt *time.Time `json:"updatedAt,omitempty" bson:"updatedAt"` IsFixing bool `json:"isFixing" bson:"isFixing"` Description string `json:"description,omitempty" bson:"description"` }
func NewHealthOk ¶
func NewHealthOk() *Health
func (*Health) SetCurrentToError ¶
func (*Health) SetCurrentToRepairing ¶
func (h *Health) SetCurrentToRepairing()
func (*Health) SetDesiredToCheckingAndRepairing ¶
func (h *Health) SetDesiredToCheckingAndRepairing()
func (*Health) SetDesiredToRepairing ¶
func (h *Health) SetDesiredToRepairing()
type Settings ¶
type Settings struct { Current string `json:"current,omitempty" bson:"current"` Desired string `json:"-" bson:"desired"` CreatedAt string `json:"-" bson:"createdAt"` IsUpdating bool `json:"isUpdating" bson:"isUpdating"` }
func (*Settings) InitOkStatus ¶
func (s *Settings) InitOkStatus()
type SupportFile ¶
type Trigger ¶
type Trigger struct { Current string `json:"current,omitempty" bson:"current"` Desired string `json:"desired,omitempty" bson:"desired"` CreatedAt string `json:"createdAt,omitzero" bson:"createdAt"` UpdatedAt string `json:"updatedAt,omitzero" bson:"updatedAt"` IsUpdating bool `json:"isUpdating" bson:"isUpdating"` }
type Tuning ¶
type Tuning struct { Current string `json:"current,omitempty" bson:"current"` Desired string `json:"desired,omitempty" bson:"desired"` CreatedAt string `json:"createdAt,omitzero" bson:"createdAt"` UpdatedAt string `json:"updatedAt,omitzero" bson:"updatedAt"` MaxPendingDuration int `json:"maxPendingDuration,omitempty" bson:"maxPendingDuration"` IsUpdating bool `json:"isUpdating" bson:"isUpdating"` }
Click to show internal directories.
Click to hide internal directories.