Documentation
¶
Overview ¶
Package conditions enables consistent interactions with an object's status conditions.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConditionSet ¶
type ConditionSet interface {
// MarkConditions adds or updates the conditions onto the managed resource object. Unlike a "Set" method, this also
// can add contextual updates to the condition such as propagating the correct observedGeneration to the conditions
// being changed.
MarkConditions(condition ...xpv1.Condition)
}
ConditionSet holds operations for interacting with an object's conditions.
type Manager ¶
type Manager interface {
// For returns an implementation of a ConditionSet to operate on a specific ObjectWithConditions.
For(o ObjectWithConditions) ConditionSet
}
Manager is an interface for a stateless factory-like object that produces ConditionSet objects.
type ObjectWithConditions ¶
type ObjectWithConditions interface {
resource.Object
resource.Conditioned
}
ObjectWithConditions is the interface definition that allows.
type ObservedGenerationPropagationManager ¶
type ObservedGenerationPropagationManager struct{}
ObservedGenerationPropagationManager is the top level factor for producing a ConditionSet on behalf of a ObjectWithConditions resource, the ConditionSet is only currently concerned with propagating observedGeneration to conditions that are being updated. observedGenerationPropagationManager implements Manager.
func (ObservedGenerationPropagationManager) For ¶
func (m ObservedGenerationPropagationManager) For(o ObjectWithConditions) ConditionSet
For implements Manager.For.