Documentation
¶
Index ¶
- Constants
- type Details
- func (s *Details) ClearDesired()
- func (s *Details) SetCurrentToCheckingAndRepairing()
- func (s *Details) SetCurrentToCompleted()
- func (s *Details) SetCurrentToError(err error)
- func (s *Details) SetCurrentToOk()
- func (s *Details) SetCurrentToPending()
- func (s *Details) SetCurrentToRepairing()
- func (s *Details) SetDesiredToCheckingAndRepairing()
- func (s *Details) SetDesiredToCompleted()
- func (s *Details) SetDesiredToDelete()
- func (s *Details) SetDesiredToOk()
- func (s *Details) SetDesiredToRepairing()
- func (s *Details) SetDesiredToUpdate()
Constants ¶
View Source
const ( None = "" Create = "create" Update = "update" Delete = "delete" Reset = "reset" Pending = "pending" Updating = "updating" Repairing = "repairing" CheckingAndRepairing = "checkingAndRepairing" Completed = "completed" Updated = "updated" Ok = "ok" Error = "error" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Details ¶
type Details struct { Current string `json:"current,omitempty" bson:"current"` Desired string `json:"desired,omitempty" bson:"desired"` CreatedAt time.Time `json:"createdAt,omitempty,omitzero" bson:"createdAt"` UpdatedAt time.Time `json:"updatedAt,omitempty,omitzero" bson:"updatedAt"` MaxPendingDuration int `json:"maxPendingDuration,omitempty" bson:"maxPendingDuration"` IsFixing bool `json:"isFixing" bson:"isFixing"` Description string `json:"description" bson:"description"` }
Might need to separate the Details for Tuning and Health.
func (*Details) ClearDesired ¶
func (s *Details) ClearDesired()
func (*Details) SetCurrentToCheckingAndRepairing ¶
func (s *Details) SetCurrentToCheckingAndRepairing()
func (*Details) SetCurrentToCompleted ¶
func (s *Details) SetCurrentToCompleted()
func (*Details) SetCurrentToError ¶
func (*Details) SetCurrentToOk ¶
func (s *Details) SetCurrentToOk()
func (*Details) SetCurrentToPending ¶
func (s *Details) SetCurrentToPending()
func (*Details) SetCurrentToRepairing ¶
func (s *Details) SetCurrentToRepairing()
func (*Details) SetDesiredToCheckingAndRepairing ¶
func (s *Details) SetDesiredToCheckingAndRepairing()
func (*Details) SetDesiredToCompleted ¶
func (s *Details) SetDesiredToCompleted()
func (*Details) SetDesiredToDelete ¶
func (s *Details) SetDesiredToDelete()
func (*Details) SetDesiredToOk ¶
func (s *Details) SetDesiredToOk()
func (*Details) SetDesiredToRepairing ¶
func (s *Details) SetDesiredToRepairing()
func (*Details) SetDesiredToUpdate ¶
func (s *Details) SetDesiredToUpdate()
Click to show internal directories.
Click to hide internal directories.