conditions

package
v2.7.1 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Applied    CondType = "Applied"
	Available  CondType = "Available"
	Configured CondType = "Configured"

	ReasonNotObserved Reason = "NotObserved"
	ReasonAsExpected  Reason = "AsExpected"
	ReasonUnknown     Reason = "Unknown"
	ReasonError       Reason = "Error"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CondType

type CondType string

type Conditions

type Conditions map[CondType]*condition

func New

func New() Conditions

func (Conditions) AddError

func (c Conditions) AddError(condType CondType, err error)

func (Conditions) AddSuccess

func (c Conditions) AddSuccess(condType CondType, message string)

func (Conditions) AddUnknown

func (c Conditions) AddUnknown(condType CondType, message string)

func (Conditions) ToConditions

func (c Conditions) ToConditions(generation int64) []metav1.Condition

type Reason

type Reason string

Jump to

Keyboard shortcuts

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