Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewClient ¶
func NewClient(addr string) (pb.DestinationClient, *grpc.ClientConn, error)
func NewServer ¶
func NewServer(addr, kubeconfig string, k8sDNSZone string, done chan struct{}) (*grpc.Server, net.Listener, error)
The Destination service serves service discovery information to the proxy. This implementation supports the "k8s" destination scheme and expects destination paths to be of the form: <service>.<namespace>.svc.cluster.local:<port>
If the port is omitted, 80 is used as a default. If the namespace is omitted, "default" is used as a default.append
Addresses for the given destination are fetched from the Kubernetes Endpoints API, or resolved via DNS in the case of ExternalName type services.
Types ¶
type DnsListener ¶ added in v0.3.1
type DnsListener interface {
Update(add []common.TcpAddress, remove []common.TcpAddress)
}
type DnsWatcher ¶ added in v0.3.1
type DnsWatcher struct {
// contains filtered or unexported fields
}
func NewDnsWatcher ¶ added in v0.3.1
func NewDnsWatcher() *DnsWatcher
func (*DnsWatcher) Subscribe ¶ added in v0.3.1
func (w *DnsWatcher) Subscribe(host string, listener DnsListener) error
func (*DnsWatcher) Unsubscribe ¶ added in v0.3.1
func (w *DnsWatcher) Unsubscribe(host string, listener DnsListener) error
Click to show internal directories.
Click to hide internal directories.