endpoint

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Endpoint

type Endpoint struct {
	net.IP `json:"ip"`
	Port   `json:"port"`
}

Endpoint is a tuple of IP and Port, representing an Envoy proxy, fronting an instance of a service

func (Endpoint) String

func (ep Endpoint) String() string

type Port

type Port uint32

Port is a numerical port of an Envoy proxy

type Provider

type Provider interface {
	// Retrieve the IP addresses comprising the given service.
	ListEndpointsForService(service.MeshService) []Endpoint

	// Retrieve the namespaced service for a given service account
	GetServiceForServiceAccount(service.K8sServiceAccount) (service.MeshService, error)

	// GetID returns the unique identifier of the EndpointsProvider.
	GetID() string

	// GetAnnouncementsChannel obtains the channel on which providers will announce changes to the infrastructure.
	GetAnnouncementsChannel() <-chan interface{}
}

Provider is an interface to be implemented by components abstracting Kubernetes, Azure, and other compute/cluster providers

Directories

Path Synopsis
providers

Jump to

Keyboard shortcuts

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