conditions

package
v0.0.0-...-9516177 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Condition

type Condition struct {
	Type               ConditionType
	Status             ConditionStatus
	LastTransitionTime metav1.Time
	LastSetTime        metav1.Time
	Reason             string
	Message            string
}

Condition represents a condition

type ConditionList

type ConditionList []Condition

ConditionList represents a list of conditions

func NewConditionListFromv1alpha1

func NewConditionListFromv1alpha1(conditionList commonv1alpha1.ConditionList) ConditionList

NewConditionListFromv1alpha1 returns an internal condition list from a versioned condition list

func (*ConditionList) DropCondition

func (conditionList *ConditionList) DropCondition(conditionType ConditionType)

DropCondition drops the condition type

func (ConditionList) Export

func (conditionList ConditionList) Export() commonv1alpha1.ConditionList

Export exports the internal condition list to a versioned condition list

func (ConditionList) IsCondition

func (conditionList ConditionList) IsCondition(conditionType ConditionType, conditionStatus ConditionStatus) bool

IsCondition checks whether a condition type matches a condition status

func (*ConditionList) SetCondition

func (conditionList *ConditionList) SetCondition(conditionType ConditionType, conditionStatus ConditionStatus)

SetCondition sets the condition type to the condition status

type ConditionStatus

type ConditionStatus string

ConditionStatus represents a condition status

const (
	// ConditionTrue is a condition that holds true
	ConditionTrue ConditionStatus = "True"
	// ConditionFalse is a condition that holds false
	ConditionFalse ConditionStatus = "False"
	// ConditionUnknown is a condition in an unknown state
	ConditionUnknown ConditionStatus = "Unknown"
)

type ConditionType

type ConditionType string

ConditionType represents a condition type

Jump to

Keyboard shortcuts

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