k8sconsts

package
v0.5.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	LabelRemoteEnvironment = "re"
	LabelServiceId         = "serviceId"
	LabelApp               = "app"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type NameResolver

type NameResolver interface {
	// GetResourceName returns resource name with given ID
	GetResourceName(id string) string
	// GetGatewayUrl return gateway url with given ID
	GetGatewayUrl(id string) string
	// ExtractServiceId extracts service ID from given host
	ExtractServiceId(host string) string
}

NameResolver provides names for Kubernetes resources

func NewNameResolver

func NewNameResolver(remoteEnvironment, namespace string) NameResolver

NewNameResolver creates NameResolver that uses remote environment name and namespace.

Source Files

  • k8sconsts.go
  • nameresolver.go

Directories

Path Synopsis
Code generated by mockery v1.0.0
Code generated by mockery v1.0.0

Jump to

Keyboard shortcuts

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