Documentation ¶
Index ¶
- type Condition
- type ConditionList
- func (conditionList *ConditionList) DropCondition(conditionType ConditionType)
- func (conditionList ConditionList) Export() commonv1alpha1.ConditionList
- func (conditionList ConditionList) IsCondition(conditionType ConditionType, conditionStatus ConditionStatus) bool
- func (conditionList *ConditionList) SetCondition(conditionType ConditionType, conditionStatus ConditionStatus)
- type ConditionStatus
- type ConditionType
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" )
Click to show internal directories.
Click to hide internal directories.