package
0.30.47
Repository: https://github.com/kmodules/client-go.git
Documentation: pkg.go.dev

# README

conditions

The code in this package has been copied from https://github.com/kube-bind/kube-bind/tree/main/pkg/apis/third_party/conditions

# Packages

No description provided by the author

# Functions

AddSourceRef instructs merge to add info about the originating object to the target Reason.
Delete deletes the condition with the given type.
FalseCondition returns a condition with Status=False and the given type.
Get returns the condition with the given type, if the condition does not exist, it returns nil.
GetCondition returns a pointer to the desired condition referred by "condType".
GetLastTransitionTime returns the condition Severity or nil if the condition does not exist (is nil).
GetMessage returns a nil safe string of Message.
GetReason returns a nil safe string of Reason for the condition with the given type.
GetSeverity returns the condition Severity or nil if the condition does not exist (is nil).
Has returns true if a condition with the given type exists.
HasCondition returns "true" if the desired condition provided in "condType" is present in the condition list.
HaveSameStateOf matches a condition to have the same state of another.
IsConditionFalse returns "true" if the desired condition is in false state.
IsConditionTrue returns "true" if the desired condition is in true state.
IsConditionUnknown returns "true" if the desired condition is in unknown state.
IsFalse is true if the condition with the given type is False, otherwise it returns false if the condition is not False or if the condition does not exist (is nil).
IsTrue is true if the condition with the given type is True, otherwise it returns false if the condition is not True or if the condition does not exist (is nil).
IsUnknown is true if the condition with the given type is Unknown or if the condition does not exist (is nil).
MarkFalse sets Status=False for the condition with the given type.
MarkTrue sets Status=True for the condition with the given type.
MarkUnknown sets Status=Unknown for the condition with the given type.
MatchCondition returns a custom matcher to check equality of conditionsapi.Condition.
MatchConditions returns a custom matcher to check equality of conditionsapi.Conditions.
No description provided by the author
NewPatch returns the list of Patch required to align source conditions to after conditions.
RemoveCondition remove a condition from the condition list referred by "condType" parameter.
Set sets the given condition.
SetAggregate creates a new condition with the aggregation of all the Ready condition from a list of dependent objects; if the Ready condition does not exist in one of the source object, the object is excluded from the aggregation; if none of the source object have ready condition, no target conditions is generated.
SetCondition add/update the desired condition to the condition list.
SetMirror creates a new condition by mirroring the Ready condition from a dependent object; if the Ready condition does not exist in the source object, no target conditions is generated.
SetSummary sets a Ready condition with the summary of all the conditions existing on an object.
StatusFromStringOrDie turns a string into a Status.
TrueCondition returns a condition with Status=True and the given type.
UnknownCondition returns a condition with Status=Unknown and the given type.
WithConditions instructs merge about the condition types to consider when doing a merge operation; if this option is not specified, all the conditions (excepts Ready) will be considered.
WithFallbackValue specify a fallback value to use in case the mirrored condition does not exist; in case the fallbackValue is false, given values for reason, severity and message will be used.
WithForceOverwrite In case of conflicts for the owned conditions, the patch helper will always use the value provided by the controller.
WithOwnedConditions allows to define condition types owned by the controller.
WithStepCounter instructs merge to add a "x of y completed" string to the message, where x is the number of conditions with Status=true and y is the number of conditions in scope.
WithStepCounterIf adds a step counter if the value is true.
WithStepCounterIfOnly ensure a step counter is show only if a subset of condition exists.

# Constants

AddConditionPatch defines an add condition patch operation.
ChangeConditionPatch defines a change condition patch operation.
List of common condition types.
List of common condition types.
List of common condition types.
List of common condition types.
List of common condition types.
List of common condition types.
List of common condition types.
No description provided by the author
No description provided by the author
The set of status conditions which can be assigned to resources.
No description provided by the author
RemoveConditionPatch defines a remove condition patch operation.
No description provided by the author
No description provided by the author

# Variables

No description provided by the author

# Structs

PatchOperation define an operation that changes a single condition.

# Interfaces

Getter interface defines methods that an object should implement in order to use the conditions package for getting conditions.
Setter interface defines methods that an object should implement in order to use the conditions package for setting conditions.

# Type aliases

ApplyOption defines an option for applying a condition patch.
MergeOption defines an option for computing a summary of conditions.
MirrorOptions defines an option for mirroring conditions.
Patch defines a list of operations to change a list of conditions into another.
PatchOperationType defines patch operation types.
Status defines the set of statuses a resource can have.