Documentation ¶
Index ¶
- type EdgeLabel
- func (s EdgeLabel) Delete(items ...kmapi.EdgeLabel) EdgeLabel
- func (s EdgeLabel) Difference(s2 EdgeLabel) EdgeLabel
- func (s1 EdgeLabel) Equal(s2 EdgeLabel) bool
- func (s EdgeLabel) Has(item kmapi.EdgeLabel) bool
- func (s EdgeLabel) HasAll(items ...kmapi.EdgeLabel) bool
- func (s EdgeLabel) HasAny(items ...kmapi.EdgeLabel) bool
- func (s EdgeLabel) Insert(items ...kmapi.EdgeLabel) EdgeLabel
- func (s1 EdgeLabel) Intersection(s2 EdgeLabel) EdgeLabel
- func (s1 EdgeLabel) IsSuperset(s2 EdgeLabel) bool
- func (s EdgeLabel) Len() int
- func (s EdgeLabel) List() []kmapi.EdgeLabel
- func (s EdgeLabel) PopAny() (kmapi.EdgeLabel, bool)
- func (s1 EdgeLabel) Union(s2 EdgeLabel) EdgeLabel
- func (s EdgeLabel) UnsortedList() []kmapi.EdgeLabel
- type Empty
- type GroupKind
- func (s GroupKind) Delete(items ...schema.GroupKind) GroupKind
- func (s GroupKind) Difference(s2 GroupKind) GroupKind
- func (s1 GroupKind) Equal(s2 GroupKind) bool
- func (s GroupKind) Has(item schema.GroupKind) bool
- func (s GroupKind) HasAll(items ...schema.GroupKind) bool
- func (s GroupKind) HasAny(items ...schema.GroupKind) bool
- func (s GroupKind) Insert(items ...schema.GroupKind) GroupKind
- func (s1 GroupKind) Intersection(s2 GroupKind) GroupKind
- func (s1 GroupKind) IsSuperset(s2 GroupKind) bool
- func (s GroupKind) Len() int
- func (s GroupKind) List() []schema.GroupKind
- func (s GroupKind) PopAny() (schema.GroupKind, bool)
- func (s1 GroupKind) Union(s2 GroupKind) GroupKind
- func (s GroupKind) UnsortedList() []schema.GroupKind
- type MetaGroupKind
- func (s MetaGroupKind) Delete(items ...metav1.GroupKind) MetaGroupKind
- func (s MetaGroupKind) Difference(s2 MetaGroupKind) MetaGroupKind
- func (s1 MetaGroupKind) Equal(s2 MetaGroupKind) bool
- func (s MetaGroupKind) Has(item metav1.GroupKind) bool
- func (s MetaGroupKind) HasAll(items ...metav1.GroupKind) bool
- func (s MetaGroupKind) HasAny(items ...metav1.GroupKind) bool
- func (s MetaGroupKind) Insert(items ...metav1.GroupKind) MetaGroupKind
- func (s1 MetaGroupKind) Intersection(s2 MetaGroupKind) MetaGroupKind
- func (s1 MetaGroupKind) IsSuperset(s2 MetaGroupKind) bool
- func (s MetaGroupKind) Len() int
- func (s MetaGroupKind) List() []metav1.GroupKind
- func (s MetaGroupKind) PopAny() (metav1.GroupKind, bool)
- func (s1 MetaGroupKind) Union(s2 MetaGroupKind) MetaGroupKind
- func (s MetaGroupKind) UnsortedList() []metav1.GroupKind
- type MetaGroupVersionKind
- func (s MetaGroupVersionKind) Delete(items ...metav1.GroupVersionKind) MetaGroupVersionKind
- func (s MetaGroupVersionKind) Difference(s2 MetaGroupVersionKind) MetaGroupVersionKind
- func (s1 MetaGroupVersionKind) Equal(s2 MetaGroupVersionKind) bool
- func (s MetaGroupVersionKind) Has(item metav1.GroupVersionKind) bool
- func (s MetaGroupVersionKind) HasAll(items ...metav1.GroupVersionKind) bool
- func (s MetaGroupVersionKind) HasAny(items ...metav1.GroupVersionKind) bool
- func (s MetaGroupVersionKind) Insert(items ...metav1.GroupVersionKind) MetaGroupVersionKind
- func (s1 MetaGroupVersionKind) Intersection(s2 MetaGroupVersionKind) MetaGroupVersionKind
- func (s1 MetaGroupVersionKind) IsSuperset(s2 MetaGroupVersionKind) bool
- func (s MetaGroupVersionKind) Len() int
- func (s MetaGroupVersionKind) List() []metav1.GroupVersionKind
- func (s MetaGroupVersionKind) PopAny() (metav1.GroupVersionKind, bool)
- func (s1 MetaGroupVersionKind) Union(s2 MetaGroupVersionKind) MetaGroupVersionKind
- func (s MetaGroupVersionKind) UnsortedList() []metav1.GroupVersionKind
- type NamespacedName
- func (s NamespacedName) Delete(items ...types.NamespacedName) NamespacedName
- func (s NamespacedName) Difference(s2 NamespacedName) NamespacedName
- func (s1 NamespacedName) Equal(s2 NamespacedName) bool
- func (s NamespacedName) Has(item types.NamespacedName) bool
- func (s NamespacedName) HasAll(items ...types.NamespacedName) bool
- func (s NamespacedName) HasAny(items ...types.NamespacedName) bool
- func (s NamespacedName) Insert(items ...types.NamespacedName) NamespacedName
- func (s1 NamespacedName) Intersection(s2 NamespacedName) NamespacedName
- func (s1 NamespacedName) IsSuperset(s2 NamespacedName) bool
- func (s NamespacedName) Len() int
- func (s NamespacedName) List() []types.NamespacedName
- func (s NamespacedName) PopAny() (types.NamespacedName, bool)
- func (s1 NamespacedName) Union(s2 NamespacedName) NamespacedName
- func (s NamespacedName) UnsortedList() []types.NamespacedName
- type OID
- func (s OID) Delete(items ...kmapi.OID) OID
- func (s OID) Difference(s2 OID) OID
- func (s1 OID) Equal(s2 OID) bool
- func (s OID) Has(item kmapi.OID) bool
- func (s OID) HasAll(items ...kmapi.OID) bool
- func (s OID) HasAny(items ...kmapi.OID) bool
- func (s OID) Insert(items ...kmapi.OID) OID
- func (s1 OID) Intersection(s2 OID) OID
- func (s1 OID) IsSuperset(s2 OID) bool
- func (s OID) Len() int
- func (s OID) List() []kmapi.OID
- func (s OID) PopAny() (kmapi.OID, bool)
- func (s1 OID) Union(s2 OID) OID
- func (s OID) UnsortedList() []kmapi.OID
- type ObjectReference
- func (s ObjectReference) Delete(items ...kmapi.ObjectReference) ObjectReference
- func (s ObjectReference) Difference(s2 ObjectReference) ObjectReference
- func (s1 ObjectReference) Equal(s2 ObjectReference) bool
- func (s ObjectReference) Has(item kmapi.ObjectReference) bool
- func (s ObjectReference) HasAll(items ...kmapi.ObjectReference) bool
- func (s ObjectReference) HasAny(items ...kmapi.ObjectReference) bool
- func (s ObjectReference) Insert(items ...kmapi.ObjectReference) ObjectReference
- func (s1 ObjectReference) Intersection(s2 ObjectReference) ObjectReference
- func (s1 ObjectReference) IsSuperset(s2 ObjectReference) bool
- func (s ObjectReference) Len() int
- func (s ObjectReference) List() []kmapi.ObjectReference
- func (s ObjectReference) PopAny() (kmapi.ObjectReference, bool)
- func (s1 ObjectReference) Union(s2 ObjectReference) ObjectReference
- func (s ObjectReference) UnsortedList() []kmapi.ObjectReference
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EdgeLabel ¶
sets.EdgeLabel is a set of kmapi.EdgeLabels, implemented via map[kmapi.EdgeLabel]struct{} for minimal memory consumption.
func EdgeLabelKeySet ¶
func EdgeLabelKeySet(theMap interface{}) EdgeLabel
EdgeLabelKeySet creates a EdgeLabel from a keys of a map[kmapi.EdgeLabel](? extends interface{}). If the value passed in is not actually a map, this will panic.
func NewEdgeLabel ¶
NewEdgeLabel creates a EdgeLabel from a list of values.
func (EdgeLabel) 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 (EdgeLabel) 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 (EdgeLabel) 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 (EdgeLabel) IsSuperset ¶
IsSuperset returns true if and only if s1 is a superset of s2.
func (EdgeLabel) 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 (EdgeLabel) UnsortedList ¶
UnsortedList returns the slice with contents in random order.
type Empty ¶
type Empty struct{}
Empty is public since it is used by some internal API objects for conversions between external string arrays and internal sets, and conversion logic requires public types today.
type GroupKind ¶
sets.GroupKind is a set of schema.GroupKinds, implemented via map[schema.GroupKind]struct{} for minimal memory consumption.
func GroupKindKeySet ¶
func GroupKindKeySet(theMap interface{}) GroupKind
GroupKindKeySet creates a GroupKind from a keys of a map[schema.GroupKind](? extends interface{}). If the value passed in is not actually a map, this will panic.
func NewGroupKind ¶
NewGroupKind creates a GroupKind from a list of values.
func (GroupKind) 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 (GroupKind) 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 (GroupKind) 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 (GroupKind) IsSuperset ¶
IsSuperset returns true if and only if s1 is a superset of s2.
func (GroupKind) 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 (GroupKind) UnsortedList ¶
UnsortedList returns the slice with contents in random order.
type MetaGroupKind ¶
sets.MetaGroupKind is a set of metav1.GroupKinds, implemented via map[metav1.GroupKind]struct{} for minimal memory consumption.
func MetaGroupKindKeySet ¶
func MetaGroupKindKeySet(theMap interface{}) MetaGroupKind
MetaGroupKindKeySet creates a MetaGroupKind from a keys of a map[metav1.GroupKind](? extends interface{}). If the value passed in is not actually a map, this will panic.
func NewMetaGroupKind ¶
func NewMetaGroupKind(items ...metav1.GroupKind) MetaGroupKind
NewMetaGroupKind creates a MetaGroupKind from a list of values.
func (MetaGroupKind) Delete ¶
func (s MetaGroupKind) Delete(items ...metav1.GroupKind) MetaGroupKind
Delete removes all items from the set.
func (MetaGroupKind) Difference ¶
func (s MetaGroupKind) Difference(s2 MetaGroupKind) MetaGroupKind
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 (MetaGroupKind) Equal ¶
func (s1 MetaGroupKind) Equal(s2 MetaGroupKind) bool
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 (MetaGroupKind) Has ¶
func (s MetaGroupKind) Has(item metav1.GroupKind) bool
Has returns true if and only if item is contained in the set.
func (MetaGroupKind) HasAll ¶
func (s MetaGroupKind) HasAll(items ...metav1.GroupKind) bool
HasAll returns true if and only if all items are contained in the set.
func (MetaGroupKind) HasAny ¶
func (s MetaGroupKind) HasAny(items ...metav1.GroupKind) bool
HasAny returns true if any items are contained in the set.
func (MetaGroupKind) Insert ¶
func (s MetaGroupKind) Insert(items ...metav1.GroupKind) MetaGroupKind
Insert adds items to the set.
func (MetaGroupKind) Intersection ¶
func (s1 MetaGroupKind) Intersection(s2 MetaGroupKind) MetaGroupKind
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 (MetaGroupKind) IsSuperset ¶
func (s1 MetaGroupKind) IsSuperset(s2 MetaGroupKind) bool
IsSuperset returns true if and only if s1 is a superset of s2.
func (MetaGroupKind) List ¶
func (s MetaGroupKind) List() []metav1.GroupKind
List returns the contents as a sorted metav1.GroupKind slice.
func (MetaGroupKind) PopAny ¶
func (s MetaGroupKind) PopAny() (metav1.GroupKind, bool)
Returns a single element from the set.
func (MetaGroupKind) Union ¶
func (s1 MetaGroupKind) Union(s2 MetaGroupKind) MetaGroupKind
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 (MetaGroupKind) UnsortedList ¶
func (s MetaGroupKind) UnsortedList() []metav1.GroupKind
UnsortedList returns the slice with contents in random order.
type MetaGroupVersionKind ¶ added in v0.25.0
type MetaGroupVersionKind map[metav1.GroupVersionKind]Empty
sets.MetaGroupVersionKind is a set of metav1.GroupVersionKinds, implemented via map[metav1.GroupVersionKind]struct{} for minimal memory consumption.
func MetaGroupVersionKindKeySet ¶ added in v0.25.0
func MetaGroupVersionKindKeySet(theMap interface{}) MetaGroupVersionKind
MetaGroupVersionKindKeySet creates a MetaGroupVersionKind from a keys of a map[metav1.GroupVersionKind](? extends interface{}). If the value passed in is not actually a map, this will panic.
func NewMetaGroupVersionKind ¶ added in v0.25.0
func NewMetaGroupVersionKind(items ...metav1.GroupVersionKind) MetaGroupVersionKind
NewMetaGroupVersionKind creates a MetaGroupVersionKind from a list of values.
func (MetaGroupVersionKind) Delete ¶ added in v0.25.0
func (s MetaGroupVersionKind) Delete(items ...metav1.GroupVersionKind) MetaGroupVersionKind
Delete removes all items from the set.
func (MetaGroupVersionKind) Difference ¶ added in v0.25.0
func (s MetaGroupVersionKind) Difference(s2 MetaGroupVersionKind) MetaGroupVersionKind
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 (MetaGroupVersionKind) Equal ¶ added in v0.25.0
func (s1 MetaGroupVersionKind) Equal(s2 MetaGroupVersionKind) bool
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 (MetaGroupVersionKind) Has ¶ added in v0.25.0
func (s MetaGroupVersionKind) Has(item metav1.GroupVersionKind) bool
Has returns true if and only if item is contained in the set.
func (MetaGroupVersionKind) HasAll ¶ added in v0.25.0
func (s MetaGroupVersionKind) HasAll(items ...metav1.GroupVersionKind) bool
HasAll returns true if and only if all items are contained in the set.
func (MetaGroupVersionKind) HasAny ¶ added in v0.25.0
func (s MetaGroupVersionKind) HasAny(items ...metav1.GroupVersionKind) bool
HasAny returns true if any items are contained in the set.
func (MetaGroupVersionKind) Insert ¶ added in v0.25.0
func (s MetaGroupVersionKind) Insert(items ...metav1.GroupVersionKind) MetaGroupVersionKind
Insert adds items to the set.
func (MetaGroupVersionKind) Intersection ¶ added in v0.25.0
func (s1 MetaGroupVersionKind) Intersection(s2 MetaGroupVersionKind) MetaGroupVersionKind
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 (MetaGroupVersionKind) IsSuperset ¶ added in v0.25.0
func (s1 MetaGroupVersionKind) IsSuperset(s2 MetaGroupVersionKind) bool
IsSuperset returns true if and only if s1 is a superset of s2.
func (MetaGroupVersionKind) Len ¶ added in v0.25.0
func (s MetaGroupVersionKind) Len() int
Len returns the size of the set.
func (MetaGroupVersionKind) List ¶ added in v0.25.0
func (s MetaGroupVersionKind) List() []metav1.GroupVersionKind
List returns the contents as a sorted metav1.GroupVersionKind slice.
func (MetaGroupVersionKind) PopAny ¶ added in v0.25.0
func (s MetaGroupVersionKind) PopAny() (metav1.GroupVersionKind, bool)
Returns a single element from the set.
func (MetaGroupVersionKind) Union ¶ added in v0.25.0
func (s1 MetaGroupVersionKind) Union(s2 MetaGroupVersionKind) MetaGroupVersionKind
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 (MetaGroupVersionKind) UnsortedList ¶ added in v0.25.0
func (s MetaGroupVersionKind) UnsortedList() []metav1.GroupVersionKind
UnsortedList returns the slice with contents in random order.
type NamespacedName ¶
type NamespacedName map[types.NamespacedName]Empty
sets.NamespacedName is a set of types.NamespacedNames, implemented via map[types.NamespacedName]struct{} for minimal memory consumption.
func NamespacedNameKeySet ¶
func NamespacedNameKeySet(theMap interface{}) NamespacedName
NamespacedNameKeySet creates a NamespacedName from a keys of a map[types.NamespacedName](? extends interface{}). If the value passed in is not actually a map, this will panic.
func NewNamespacedName ¶
func NewNamespacedName(items ...types.NamespacedName) NamespacedName
NewNamespacedName creates a NamespacedName from a list of values.
func (NamespacedName) Delete ¶
func (s NamespacedName) Delete(items ...types.NamespacedName) NamespacedName
Delete removes all items from the set.
func (NamespacedName) Difference ¶
func (s NamespacedName) Difference(s2 NamespacedName) NamespacedName
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 (NamespacedName) Equal ¶
func (s1 NamespacedName) Equal(s2 NamespacedName) bool
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 (NamespacedName) Has ¶
func (s NamespacedName) Has(item types.NamespacedName) bool
Has returns true if and only if item is contained in the set.
func (NamespacedName) HasAll ¶
func (s NamespacedName) HasAll(items ...types.NamespacedName) bool
HasAll returns true if and only if all items are contained in the set.
func (NamespacedName) HasAny ¶
func (s NamespacedName) HasAny(items ...types.NamespacedName) bool
HasAny returns true if any items are contained in the set.
func (NamespacedName) Insert ¶
func (s NamespacedName) Insert(items ...types.NamespacedName) NamespacedName
Insert adds items to the set.
func (NamespacedName) Intersection ¶
func (s1 NamespacedName) Intersection(s2 NamespacedName) NamespacedName
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 (NamespacedName) IsSuperset ¶
func (s1 NamespacedName) IsSuperset(s2 NamespacedName) bool
IsSuperset returns true if and only if s1 is a superset of s2.
func (NamespacedName) List ¶
func (s NamespacedName) List() []types.NamespacedName
List returns the contents as a sorted types.NamespacedName slice.
func (NamespacedName) PopAny ¶
func (s NamespacedName) PopAny() (types.NamespacedName, bool)
Returns a single element from the set.
func (NamespacedName) Union ¶
func (s1 NamespacedName) Union(s2 NamespacedName) NamespacedName
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 (NamespacedName) UnsortedList ¶
func (s NamespacedName) UnsortedList() []types.NamespacedName
UnsortedList returns the slice with contents in random order.
type OID ¶
sets.OID is a set of kmapi.OIDs, implemented via map[kmapi.OID]struct{} for minimal memory consumption.
func OIDKeySet ¶
func OIDKeySet(theMap interface{}) OID
OIDKeySet creates a OID from a keys of a map[kmapi.OID](? extends interface{}). If the value passed in is not actually a map, this will panic.
func (OID) 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 (OID) 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 (OID) 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 (OID) IsSuperset ¶
IsSuperset returns true if and only if s1 is a superset of s2.
func (OID) 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 (OID) UnsortedList ¶
UnsortedList returns the slice with contents in random order.
type ObjectReference ¶
type ObjectReference map[kmapi.ObjectReference]Empty
sets.ObjectReference is a set of kmapi.ObjectReferences, implemented via map[kmapi.ObjectReference]struct{} for minimal memory consumption.
func NewObjectReference ¶
func NewObjectReference(items ...kmapi.ObjectReference) ObjectReference
NewObjectReference creates a ObjectReference from a list of values.
func ObjectReferenceKeySet ¶
func ObjectReferenceKeySet(theMap interface{}) ObjectReference
ObjectReferenceKeySet creates a ObjectReference from a keys of a map[kmapi.ObjectReference](? extends interface{}). If the value passed in is not actually a map, this will panic.
func (ObjectReference) Delete ¶
func (s ObjectReference) Delete(items ...kmapi.ObjectReference) ObjectReference
Delete removes all items from the set.
func (ObjectReference) Difference ¶
func (s ObjectReference) Difference(s2 ObjectReference) ObjectReference
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 (ObjectReference) Equal ¶
func (s1 ObjectReference) Equal(s2 ObjectReference) bool
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 (ObjectReference) Has ¶
func (s ObjectReference) Has(item kmapi.ObjectReference) bool
Has returns true if and only if item is contained in the set.
func (ObjectReference) HasAll ¶
func (s ObjectReference) HasAll(items ...kmapi.ObjectReference) bool
HasAll returns true if and only if all items are contained in the set.
func (ObjectReference) HasAny ¶
func (s ObjectReference) HasAny(items ...kmapi.ObjectReference) bool
HasAny returns true if any items are contained in the set.
func (ObjectReference) Insert ¶
func (s ObjectReference) Insert(items ...kmapi.ObjectReference) ObjectReference
Insert adds items to the set.
func (ObjectReference) Intersection ¶
func (s1 ObjectReference) Intersection(s2 ObjectReference) ObjectReference
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 (ObjectReference) IsSuperset ¶
func (s1 ObjectReference) IsSuperset(s2 ObjectReference) bool
IsSuperset returns true if and only if s1 is a superset of s2.
func (ObjectReference) List ¶
func (s ObjectReference) List() []kmapi.ObjectReference
List returns the contents as a sorted kmapi.ObjectReference slice.
func (ObjectReference) PopAny ¶
func (s ObjectReference) PopAny() (kmapi.ObjectReference, bool)
Returns a single element from the set.
func (ObjectReference) Union ¶
func (s1 ObjectReference) Union(s2 ObjectReference) ObjectReference
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 (ObjectReference) UnsortedList ¶
func (s ObjectReference) UnsortedList() []kmapi.ObjectReference
UnsortedList returns the slice with contents in random order.