discovery

package
v0.10.3 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: Apache-2.0 Imports: 3 Imported by: 4

Documentation

Overview

Package discovery contains structures, interfaces and utility functions useful for the discovery component.

Index

Constants

View Source
const (
	// TenantNamespaceLabel used to mark the tenant namespaces.
	TenantNamespaceLabel = "discovery.liqo.io/tenant-namespace"

	// ClusterIDLabel used as key to indicate which cluster a resource is referenced to.
	ClusterIDLabel = "discovery.liqo.io/cluster-id"
	// VirtualNodeLabel used to mark the virtual nodes.
	VirtualNodeLabel = "discovery.liqo.io/virtual-node"
	// AuthTokenLabel used to mark secrets containing an auth token.
	AuthTokenLabel = "discovery.liqo.io/auth-token"
	// DiscoveryTypeLabel used to mark the discovery type.
	DiscoveryTypeLabel = "discovery.liqo.io/discovery-type"
)
View Source
const (
	// LastUpdateAnnotation marks the last update time of a ForeignCluster resource, needed by the garbage collection.
	LastUpdateAnnotation string = "LastUpdate"
)

Variables

This section is empty.

Functions

func GetAddress

func GetAddress(node *v1.Node) (string, error)

GetAddress returns an address for a Node.

func GetAddressFromNodeList

func GetAddressFromNodeList(nodes []v1.Node) (string, error)

GetAddressFromNodeList returns an address from a Node pool.

Types

type Type added in v0.3.0

type Type string

Type indicates how a ForeignCluster has been discovered.

const (
	// LanDiscovery value.
	LanDiscovery Type = "LAN"
	// ManualDiscovery value.
	ManualDiscovery Type = "Manual"
	// IncomingPeeringDiscovery value.
	IncomingPeeringDiscovery Type = "IncomingPeering"
)

Jump to

Keyboard shortcuts

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