discovery

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2023 License: Apache-2.0 Imports: 2 Imported by: 2

Documentation

Index

Constants

View Source
const (
	PodServiceTag = "pod"
)

Variables

This section is empty.

Functions

func GetPodServiceTag

func GetPodServiceTag(namespace, name string) string

func GetPodValue

func GetPodValue(tags map[string]string) string

GetPodValue return pod namspacedName if the key exists; if not an empty string is returned

func GetServiceName

func GetServiceName(prefix, name string) string

func GetValue

func GetValue(key string, tags map[string]string) string

GetTagValue return pod namspacedName if the key exists; if not an empty string is returned

Types

type ServiceDiscoveryType

type ServiceDiscoveryType string
const (
	ServiceDiscoveryTypeNone   ServiceDiscoveryType = "none"
	ServiceDiscoveryTypeConsul ServiceDiscoveryType = "consul"
	ServiceDiscoveryTypeK8s    ServiceDiscoveryType = "k8s"
)

Jump to

Keyboard shortcuts

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