Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SanitizeName ¶
SanitizeName takes a string and returns a URI acceptable name e.g. Test Service would become test-service
Types ¶
type Integration ¶
type Integration interface { // Register a new service with the integration, this is used when exposing a local // application to a remote cluster Register(id string, name string, srcPort, dstPort int) error // Deregister a new service with the integration, this is used when exposing a local // application to a remote cluster Deregister(id string) error // LookupAddress, allows a service name to be resolved to a physical address // where the service name is already addressable (i.e. kubernetes, or local) // this method should just return the original service LookupAddress(service string) (string, error) }
Integration defines the base interface which implementations like Consul or Istio implement
type Mock ¶
Mock defines a mock integration which can be used in tests
func (*Mock) Deregister ¶
Deregister satisfies the Integration interface
Click to show internal directories.
Click to hide internal directories.