names

package
v0.0.0-...-6e3bad2 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2024 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 GetEgressFilterChainName

func GetEgressFilterChainName(serviceName string, meshName string) string

func GetEnvoyAdminClusterName

func GetEnvoyAdminClusterName() string

func GetGatewayListenerName

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

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

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 Dubbo 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 GetTracingClusterName

func GetTracingClusterName(backendName string) string

func Join

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