util

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2018 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// PODNAMESPACE means pod's namespace in kubernetes
	PODNAMESPACE = "POD_NAMESPACE"
	// PODNAME means pod's name in kubernetes
	PODNAME = "POD_NAME"
	// PODIP means pod's instance ip in kubernetes
	PODIP = "INSTANCE_IP"
)
View Source
const (
	// RDSHttpProxy query all route configuration
	RDSHttpProxy = "http_proxy"
	// EnvoyAPIV2 defines prefix of type
	EnvoyAPIV2 = "type.googleapis.com/envoy.api.v2."
	// RouteType defines ADS type
	RouteType = EnvoyAPIV2 + "RouteConfiguration"
)

Variables

This section is empty.

Functions

func BuildNodeID

func BuildNodeID() string

BuildNodeID returns nodeID

func ServiceAndPort

func ServiceAndPort(host string) (string, string)

ServiceAndPort returns service and port

func ServiceKey

func ServiceKey(service string) string

ServiceKey returns service key from a service name

func ServiceKeyToLabel

func ServiceKeyToLabel(service string) string

ServiceKeyToLabel returns label from service key

Types

This section is empty.

Jump to

Keyboard shortcuts

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