Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Result ¶
type Result struct { Ok bool // True if the Condition is true, false otherwise. Description string // A human-readable description of the associated Condition. Message logging.Message // The message to be logged after evaluating the Condition. }
Result specifies the result of a Condition applied to an input object.
type StateChecker ¶
type StateChecker struct {
// contains filtered or unexported fields
}
StateChecker holds the data required to generically implement await logic.
func NewJobChecker ¶ added in v1.2.0
func NewJobChecker() *StateChecker
func NewPodChecker ¶
func NewPodChecker() *StateChecker
func (*StateChecker) Ready ¶
func (s *StateChecker) Ready() bool
Ready is true if all of the Conditions associated with this checker are true. Ready will always return false prior to running Update.
func (*StateChecker) Update ¶
func (s *StateChecker) Update(obj metav1.Object) logging.Messages
Update runs the conditions associated with the StateChecker against the provided object. Each condition produces a status message that is appended to the returned list of Messages. Iff all of the Conditions are true, the ready status is set to true, otherwise, the ready condition is set to false.
Click to show internal directories.
Click to hide internal directories.