control

package
v0.0.0-...-14a0406 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2020 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ControlPlane

type ControlPlane struct {
	// contains filtered or unexported fields
}

ControlPlane represents an Envoy control plane we use to dynamically add endpoints

func NewControlPlane

func NewControlPlane(apiPort int) *ControlPlane

NewControlPlane will instantiate a control plane

func (*ControlPlane) AddEndpoint

func (cp *ControlPlane) AddEndpoint(mgmtEndpoint MgmtEndpoint)

AddEndpoint adds a single endpoint

func (*ControlPlane) RemoveEndpoint

func (cp *ControlPlane) RemoveEndpoint(mgmtEndpoint MgmtEndpoint)

RemoveEndpoint remove a single endpoint

func (*ControlPlane) Start

func (cp *ControlPlane) Start()

Start starts up a control plane to respond to Envoy XDS requests

func (*ControlPlane) UpdateEndpoints

func (cp *ControlPlane) UpdateEndpoints(mgmtEndpoints []MgmtEndpoint)

UpdateEndpoints will tell Envoy to direct traffic to the MgmtEndpoints

type MgmtEndpoint

type MgmtEndpoint struct {
	Host string
	Port uint32
}

MgmtEndpoint represents a single endpoint of a bcg-mgmt server that will become proxied by us

Jump to

Keyboard shortcuts

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