names

package
v1.5.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const Separator = ":"

Separator is the separator used in resource names.

Variables

This section is empty.

Functions

func GetAdminListenerName

func GetAdminListenerName() string

func GetDNSListenerName

func GetDNSListenerName() string

func GetEnvoyAdminClusterName

func GetEnvoyAdminClusterName() string

func GetGatewayListenerName added in v1.8.1

func GetGatewayListenerName(gatewayName string, protoName string, port uint32) string

func GetInboundListenerName

func GetInboundListenerName(address string, port uint32) string

func GetInboundRouteName

func GetInboundRouteName(service string) string

func GetLocalClusterName

func GetLocalClusterName(port uint32) string

func GetMeshClusterName added in v1.8.1

func GetMeshClusterName(meshName string, serviceName string) string

GetMeshClusterName will be used everywhere where there is a potential of name clashes (i.e. when Zone Egress is configuring clusters for services with the same name but in different meshes)

func GetMetricsHijackerClusterName

func GetMetricsHijackerClusterName() string

func GetOutboundListenerName

func GetOutboundListenerName(address string, port uint32) string

func GetOutboundRouteName

func GetOutboundRouteName(service string) string

func GetPortForLocalClusterName

func GetPortForLocalClusterName(cluster string) (uint32, error)

func GetPrometheusListenerName

func GetPrometheusListenerName() string

func GetSecretName added in v1.8.1

func GetSecretName(category string, scope string, identifier string) string

GetSecretName constructs a secret name that has a good chance of being unique across subsystems that are unaware of each other.

category should be used to indicate the type of the secret resource. For example, is this a TLS certificate, or a ValidationContext, or something else.

scope is a qualifier within which identifier can be considered to be unique. For example, the name of a Kuma file DataSource is unique across file DataSources, but may collide with the name of a secret DataSource.

identifier is a name that should be unique within a category and scope.

func GetSplitClusterName

func GetSplitClusterName(service string, idx int) string

func GetTracingClusterName

func GetTracingClusterName(backendName string) string

func Join added in v1.8.1

func Join(parts ...string) string

Join uses Separator to join the given parts into a resource name.

Types

This section is empty.

Jump to

Keyboard shortcuts

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