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(remoteEnvironment, id string) string
// GetMetadataUrl return gateway url with given ID
GetMetadataUrl(remoteEnvironment, id string) string
// ExtractServiceId extracts service ID from given host
ExtractServiceId(remoteEnvironment, host string) string
}
NameResolver provides names for Kubernetes resources
func NewNameResolver ¶
func NewNameResolver(namespace string) NameResolver
NewNameResolver creates NameResolver that uses remote environment name and namespace.
Click to show internal directories.
Click to hide internal directories.