endpoints

package
v0.0.0-...-4287dc4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 6, 2023 License: Apache-2.0 Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetKeys

func GetKeys(s *metav1.LabelSelector) []string

func GetSelector

func GetSelector(itfce infrav1alpha1.Interface) *metav1.LabelSelector

func GetSelectorLabels

func GetSelectorLabels(labels map[string]string, keys []string) map[string]string

Types

type Endpoints

type Endpoints struct {
	*invv1alpha1.EndpointList
}

func (*Endpoints) GetNodes

func (r *Endpoints) GetNodes(selector labels.Selector) []string

func (*Endpoints) GetSelectorEndpoints

func (r *Endpoints) GetSelectorEndpoints(s *metav1.LabelSelector) (map[string][]invv1alpha1.Endpoint, error)

func (*Endpoints) GetUniqueKeyValues

func (r *Endpoints) GetUniqueKeyValues(selector labels.Selector, keys []string) []string

GetUniqueKeyValues returns unique values based on the selector keys e.g. used to return the unique clusters endpoints if the selector is about clusters

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL