Documentation
¶
Index ¶
- type Set
- func (s Set) Any() string
- func (s Set) Has(value string) bool
- func (s Set) Hash() (uint64, error)
- func (s Set) Insert(items ...string)
- func (s Set) Intersection(set Set) Set
- 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) 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) Type ¶ added in v0.7.3
func (s Set) Type() v1.NodeSelectorOperator
Click to show internal directories.
Click to hide internal directories.