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 ¶
MgmtEndpoint represents a single endpoint of a bcg-mgmt server that will become proxied by us
Click to show internal directories.
Click to hide internal directories.