Documentation ¶
Index ¶
- func DeleteCondition(conditions []v1.Condition, conditionType v1.ConditionType) []v1.Condition
- func DiffCondition(condition1 *v1.Condition, condition2 *v1.Condition) bool
- func GetCondition(conditions []v1.Condition, condition *v1.Condition) *v1.Condition
- func IsConditionTrue(conditions []v1.Condition, condition v1.Condition) bool
- func IsConditionsTrue(conditions []v1.Condition) bool
- func SetConditionError(condition *v1.Condition, reason string, err error)
- func UpdateCondition(conditions []v1.Condition, condition v1.Condition) []v1.Condition
- type Any
- func (s Any) Delete(items ...string) Any
- func (s Any) Difference(s2 Any) Any
- func (s1 Any) Equal(s2 Any) bool
- func (s Any) Has(item string) bool
- func (s Any) HasAll(items ...string) bool
- func (s Any) HasAny(items ...string) bool
- func (s Any) Insert(items map[string]any) Any
- func (s Any) InsertValue(key string, value any) Any
- func (s1 Any) Intersection(s2 Any) Any
- func (s1 Any) IsSuperset(s2 Any) bool
- func (s Any) Len() int
- func (s Any) ListKey() []string
- func (s Any) ListValue() []any
- func (s Any) PopAny() (string, bool)
- func (s1 Any) Union(s2 Any) Any
- func (s Any) UnsortedList() []string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteCondition ¶
func GetCondition ¶
func IsConditionsTrue ¶
Types ¶
type Any ¶
sets.String is a set of strings, implemented via map[string]struct{} for minimal memory consumption.
func (Any) Difference ¶
Difference returns a set of objects that are not in s2 For example: s1 = {a1, a2, a3} s2 = {a1, a2, a4, a5} s1.Difference(s2) = {a3} s2.Difference(s1) = {a4, a5}
func (Any) Equal ¶
Equal returns true if and only if s1 is equal (as a set) to s2. Two sets are equal if their membership is identical. (In practice, this means same elements, order doesn't matter)
func (Any) Intersection ¶
Intersection returns a new set which includes the item in BOTH s1 and s2 For example: s1 = {a1, a2} s2 = {a2, a3} s1.Intersection(s2) = {a2}
func (Any) IsSuperset ¶
IsSuperset returns true if and only if s1 is a superset of s2.
func (Any) Union ¶
Union returns a new set which includes items in either s1 or s2. For example: s1 = {a1, a2} s2 = {a3, a4} s1.Union(s2) = {a1, a2, a3, a4} s2.Union(s1) = {a1, a2, a3, a4}
func (Any) UnsortedList ¶
UnsortedList returns the slice with contents in random order.