conditions

package
v2.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 24, 2025 License: Apache-2.0 Imports: 2 Imported by: 1

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

For implements Manager.For.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL