Documentation ¶
Index ¶
- Variables
- func GetCondition(conditions []gardencorev1alpha1.Condition, ...) *gardencorev1alpha1.Condition
- func GetOrInitCondition(conditions []gardencorev1alpha1.Condition, ...) gardencorev1alpha1.Condition
- func InitCondition(conditionType gardencorev1alpha1.ConditionType) gardencorev1alpha1.Condition
- func MergeConditions(oldConditions []gardencorev1alpha1.Condition, ...) []gardencorev1alpha1.Condition
- func UpdatedCondition(condition gardencorev1alpha1.Condition, ...) gardencorev1alpha1.Condition
- type ConditionBuilder
- type ExtensionResourceStateList
- func (e *ExtensionResourceStateList) Delete(kind string, name, purpose *string)
- func (e *ExtensionResourceStateList) Get(kind string, name, purpose *string) *gardencorev1alpha1.ExtensionResourceState
- func (e *ExtensionResourceStateList) Upsert(extensionResourceState *gardencorev1alpha1.ExtensionResourceState)
- type GardenerResourceDataList
- func (g GardenerResourceDataList) DeepCopy() GardenerResourceDataList
- func (g *GardenerResourceDataList) Delete(name string)
- func (g *GardenerResourceDataList) Get(name string) *gardencorev1alpha1.GardenerResourceData
- func (g *GardenerResourceDataList) Select(labelSelector labels.Selector) []*gardencorev1alpha1.GardenerResourceData
- func (g *GardenerResourceDataList) Upsert(data *gardencorev1alpha1.GardenerResourceData)
- type ResourceDataList
Constants ¶
This section is empty.
Variables ¶
var Now = metav1.Now
Now determines the current metav1.Time.
Functions ¶
func GetCondition ¶
func GetCondition(conditions []gardencorev1alpha1.Condition, conditionType gardencorev1alpha1.ConditionType) *gardencorev1alpha1.Condition
GetCondition returns the condition with the given <conditionType> out of the list of <conditions>. In case the required type could not be found, it returns nil.
func GetOrInitCondition ¶
func GetOrInitCondition(conditions []gardencorev1alpha1.Condition, conditionType gardencorev1alpha1.ConditionType) gardencorev1alpha1.Condition
GetOrInitCondition tries to retrieve the condition with the given condition type from the given conditions. If the condition could not be found, it returns an initialized condition of the given type.
func InitCondition ¶
func InitCondition(conditionType gardencorev1alpha1.ConditionType) gardencorev1alpha1.Condition
InitCondition initializes a new Condition with an Unknown status.
func MergeConditions ¶
func MergeConditions(oldConditions []gardencorev1alpha1.Condition, newConditions ...gardencorev1alpha1.Condition) []gardencorev1alpha1.Condition
MergeConditions merges the given <oldConditions> with the <newConditions>. Existing conditions are superseded by the <newConditions> (depending on the condition type).
func UpdatedCondition ¶
func UpdatedCondition(condition gardencorev1alpha1.Condition, status gardencorev1alpha1.ConditionStatus, reason, message string, codes ...gardencorev1alpha1.ErrorCode) gardencorev1alpha1.Condition
UpdatedCondition updates the properties of one specific condition.
Types ¶
type ConditionBuilder ¶ added in v0.34.0
type ConditionBuilder interface { WithOldCondition(old gardencorev1alpha1.Condition) ConditionBuilder WithStatus(status gardencorev1alpha1.ConditionStatus) ConditionBuilder WithReason(reason string) ConditionBuilder WithMessage(message string) ConditionBuilder WithCodes(codes ...gardencorev1alpha1.ErrorCode) ConditionBuilder WithNowFunc(now func() metav1.Time) ConditionBuilder Build() (new gardencorev1alpha1.Condition, updated bool) }
ConditionBuilder build a Condition.
func NewConditionBuilder ¶ added in v0.34.0
func NewConditionBuilder(conditionType gardencorev1alpha1.ConditionType) (ConditionBuilder, error)
NewConditionBuilder returns a ConditionBuilder for a specific condition.
type ExtensionResourceStateList ¶ added in v1.2.0
type ExtensionResourceStateList []gardencorev1alpha1.ExtensionResourceState
ExtensionResourceStateList is a list of ExtensionResourceStates
func (*ExtensionResourceStateList) Delete ¶ added in v1.2.0
func (e *ExtensionResourceStateList) Delete(kind string, name, purpose *string)
Delete removes an ExtensionResourceState from the list by kind, name and purpose
func (*ExtensionResourceStateList) Get ¶ added in v1.2.0
func (e *ExtensionResourceStateList) Get(kind string, name, purpose *string) *gardencorev1alpha1.ExtensionResourceState
Get retrieves an ExtensionResourceState for given kind, name and purpose from a list of ExtensionResourceStates If no ExtensionResourceStates can be found, nil is returned.
func (*ExtensionResourceStateList) Upsert ¶ added in v1.2.0
func (e *ExtensionResourceStateList) Upsert(extensionResourceState *gardencorev1alpha1.ExtensionResourceState)
Upsert either inserts or updates an already existing ExtensionResourceState with kind, name and purpose in the list
type GardenerResourceDataList ¶ added in v1.4.0
type GardenerResourceDataList []gardencorev1alpha1.GardenerResourceData
GardenerResourceDataList is a list of GardenerResourceData
func (GardenerResourceDataList) DeepCopy ¶ added in v1.11.4
func (g GardenerResourceDataList) DeepCopy() GardenerResourceDataList
DeepCopy makes a deep copy of a GardenerResourceDataList
func (*GardenerResourceDataList) Delete ¶ added in v1.4.0
func (g *GardenerResourceDataList) Delete(name string)
Delete deletes an item from the list
func (*GardenerResourceDataList) Get ¶ added in v1.4.0
func (g *GardenerResourceDataList) Get(name string) *gardencorev1alpha1.GardenerResourceData
Get returns the item from the list
func (*GardenerResourceDataList) Select ¶ added in v1.45.0
func (g *GardenerResourceDataList) Select(labelSelector labels.Selector) []*gardencorev1alpha1.GardenerResourceData
Select uses the provided label selector to find data entries with matching labels.
func (*GardenerResourceDataList) Upsert ¶ added in v1.4.0
func (g *GardenerResourceDataList) Upsert(data *gardencorev1alpha1.GardenerResourceData)
Upsert inserts a new element or updates an existing one
type ResourceDataList ¶ added in v1.5.0
type ResourceDataList []gardencorev1alpha1.ResourceData
ResourceDataList is a list of ResourceData
func (*ResourceDataList) Delete ¶ added in v1.5.0
func (r *ResourceDataList) Delete(ref *autoscalingv1.CrossVersionObjectReference)
Delete deletes an item from the list
func (*ResourceDataList) Get ¶ added in v1.5.0
func (r *ResourceDataList) Get(ref *autoscalingv1.CrossVersionObjectReference) *gardencorev1alpha1.ResourceData
Get returns the item from the list
func (*ResourceDataList) Upsert ¶ added in v1.5.0
func (r *ResourceDataList) Upsert(data *gardencorev1alpha1.ResourceData)
Upsert inserts a new element or updates an existing one