kubernetes/vendor/go.etcd.io/etcd/client/pkg/v3/types/set.go

type Set

func NewUnsafeSet(values ...string) *unsafeSet {}

func NewThreadsafeSet(values ...string) *tsafeSet {}

type unsafeSet

// Add adds a new value to the set (no-op if the value is already present)
func (us *unsafeSet) Add(value string) {}

// Remove removes the given value from the set
func (us *unsafeSet) Remove(value string) {}

// Contains returns whether the set contains the given value
func (us *unsafeSet) Contains(value string) (exists bool) {}

// ContainsAll returns whether the set contains all given values
func (us *unsafeSet) ContainsAll(values []string) bool {}

// Equals returns whether the contents of two sets are identical
func (us *unsafeSet) Equals(other Set) bool {}

// Length returns the number of elements in the set
func (us *unsafeSet) Length() int {}

// Values returns the values of the Set in an unspecified order.
func (us *unsafeSet) Values() (values []string) {}

// Copy creates a new Set containing the values of the first
func (us *unsafeSet) Copy() Set {}

// Sub removes all elements in other from the set
func (us *unsafeSet) Sub(other Set) Set {}

type tsafeSet

func (ts *tsafeSet) Add(value string) {}

func (ts *tsafeSet) Remove(value string) {}

func (ts *tsafeSet) Contains(value string) (exists bool) {}

func (ts *tsafeSet) Equals(other Set) bool {}

func (ts *tsafeSet) Length() int {}

func (ts *tsafeSet) Values() (values []string) {}

func (ts *tsafeSet) Copy() Set {}

func (ts *tsafeSet) Sub(other Set) Set {}