emissaryutil

package
v3.9.1 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsLocalhost

func IsLocalhost(hostname string) bool

func NormalizeServiceName

func NormalizeServiceName(ir GlobalResolverConfig, svcStr, mappingNamespace, resolverKind string) (string, error)

NormalizeServiceName mimics `python/ambassador/ir/irbasemapping.py:normalize_service_name()`. Please keep them in-sync.

func ParseServiceName

func ParseServiceName(svcStr string) (scheme, hostname string, port uint16, err error)

ParseServiceName mimics the first half of `python/ambassador/ir/irbasemapping.py:normalize_service_name()`. Please keep them in-sync.

Types

type GlobalResolverConfig

type GlobalResolverConfig interface {
	AmbassadorNamespace() string
	UseAmbassadorNamespaceForServiceResolution() bool
}

Jump to

Keyboard shortcuts

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