endpoint

package
v0.0.0-...-e1628ab Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ExternalIDName         = "iface-id"
	DefaultExternalIDValue = "default-externalID-value"

	DynamicEndpointPrefix    = "tower.ep.dynamic"
	StaticEndpointPrefix     = "tower.ep.static"
	VMEndpointPrefix         = DynamicEndpointPrefix + ".vm-"
	ControllerEndpointPrefix = StaticEndpointPrefix + ".ctrl-"
	SystemEndpointPrefix     = StaticEndpointPrefix + ".sys-"
)

Variables

This section is empty.

Functions

func GetCtrlEndpointName

func GetCtrlEndpointName(cluster string, ctrl schema.EverouteControllerInstance) string

func GetSystemEndpointName

func GetSystemEndpointName(key string) string

func ValidKubernetesLabel

func ValidKubernetesLabel(label *schema.Label) bool

ValidKubernetesLabel check if is a valid kubernetes label

Types

type Controller

type Controller struct {
	// contains filtered or unexported fields
}

func New

func New(
	towerFactory informer.SharedInformerFactory,
	crdFactory crd.SharedInformerFactory,
	crdClient clientset.Interface,
	resyncPeriod time.Duration,
	namespace string,
) *Controller

New creates a new instance of controller.

func (*Controller) Run

func (c *Controller) Run(workers uint, stopCh <-chan struct{})

Run begins processing items, and will continue until a value is sent down stopCh or it is closed.

Jump to

Keyboard shortcuts

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