kubernetes/staging/src/k8s.io/endpointslice/util/endpointset.go

type endpointHash

type endpointHashObj

func hashEndpoint(endpoint *discovery.Endpoint) endpointHash {}

type EndpointSet

// Insert adds items to the set.
func (s EndpointSet) Insert(items ...*discovery.Endpoint) EndpointSet {}

// Delete removes all items from the set.
func (s EndpointSet) Delete(items ...*discovery.Endpoint) EndpointSet {}

// Has returns true if and only if item is contained in the set.
func (s EndpointSet) Has(item *discovery.Endpoint) bool {}

// Returns an endpoint matching the hash if contained in the set.
func (s EndpointSet) Get(item *discovery.Endpoint) *discovery.Endpoint {}

// UnsortedList returns the slice with contents in random order.
func (s EndpointSet) UnsortedList() []*discovery.Endpoint {}

// Returns a single element from the set.
func (s EndpointSet) PopAny() (*discovery.Endpoint, bool) {}

// Len returns the size of the set.
func (s EndpointSet) Len() int {}