Documentation
¶
Index ¶
- type Set
- func (s Set) Any() (string, bool)
- func (s Set) ComplementValues() sets.String
- func (s Set) DeepCopy() Set
- func (s Set) Has(value string) bool
- func (s Set) HasAny(v sets.String) bool
- func (s Set) Hash() (uint64, error)
- func (s Set) Insert(items ...string)
- func (s Set) Intersection(set Set) Set
- func (s Set) IsComplement() bool
- func (s Set) Len() int
- func (s Set) String() string
- func (s Set) Type() v1.NodeSelectorOperator
- func (s Set) Values() sets.String
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Set ¶
type Set struct {
// contains filtered or unexported fields
}
Set is a logical set of string values for the requirements. It supports representations using complement operator. e.g., if C={"A", "B"}, setting complement = true means C' contains every possible string values other than "A" and "B"
func NewComplementSet ¶
func (Set) ComplementValues ¶ added in v0.8.0
ComplementValues returns the values of the complement set. If the set is not a complement set, it will panic
func (Set) DeepCopy ¶
DeepCopy creates a deep copy of the set object It is required by the Kubernetes CRDs code generation
func (Set) Hash ¶ added in v0.8.0
Hash provides a hash function so we can generate a good hash for Set which has no public fields.
func (Set) Intersection ¶
Intersection returns a new set containing the common values
func (Set) IsComplement ¶
IsComplement returns whether the set is a complement set.
func (Set) Type ¶ added in v0.7.3
func (s Set) Type() v1.NodeSelectorOperator