envoy

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2021 License: MIT Imports: 43 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CombineCAs

func CombineCAs(ca *k8scorev1.Secret) []byte

Types

type Callbacks

type Callbacks struct {
	Signal         chan struct{}
	Fetches        int
	Requests       int
	DeltaRequests  int
	DeltaResponses int
	// contains filtered or unexported fields
}

func (*Callbacks) OnDeltaStreamClosed

func (cb *Callbacks) OnDeltaStreamClosed(id int64)

func (*Callbacks) OnDeltaStreamOpen

func (cb *Callbacks) OnDeltaStreamOpen(_ context.Context, id int64, typ string) error

func (*Callbacks) OnFetchRequest

func (cb *Callbacks) OnFetchRequest(_ context.Context, req *discovery.DiscoveryRequest) error

func (*Callbacks) OnFetchResponse

func (*Callbacks) OnStreamClosed

func (cb *Callbacks) OnStreamClosed(id int64)

func (*Callbacks) OnStreamDeltaRequest

func (cb *Callbacks) OnStreamDeltaRequest(id int64, req *discovery.DeltaDiscoveryRequest) error

func (*Callbacks) OnStreamDeltaResponse

func (cb *Callbacks) OnStreamDeltaResponse(id int64, req *discovery.DeltaDiscoveryRequest, res *discovery.DeltaDiscoveryResponse)

func (*Callbacks) OnStreamOpen

func (cb *Callbacks) OnStreamOpen(_ context.Context, id int64, typ string) error

func (*Callbacks) OnStreamRequest

func (cb *Callbacks) OnStreamRequest(int64, *discovery.DiscoveryRequest) error

func (*Callbacks) OnStreamResponse

func (*Callbacks) Report

func (cb *Callbacks) Report()

type EnvoyADS

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

func Register

func Register(
	ctx context.Context,
	config *config.EnvoyADSConfig,
	log *logrus.Entry,
	apply apply.Apply,
	cliCtx *cli.Context,
	services wranglercorev1.ServiceController,
	secrets wranglercorev1.SecretController) *EnvoyADS

func (*EnvoyADS) RunServer

func (e *EnvoyADS) RunServer(ctx context.Context, log *logrus.Entry, server server.Server, port int)

RunManagementServer starts an xDS server at the given port.

func (*EnvoyADS) Start

func (e *EnvoyADS) Start(ctx context.Context, port int, instance int64, debugEnvoy bool) error

func (*EnvoyADS) Sync

func (e *EnvoyADS) Sync() error

func (*EnvoyADS) SyncClusters

func (e *EnvoyADS) SyncClusters(versionID string, clusters []*atlasCluster) error

func (*EnvoyADS) SyncObservability

func (e *EnvoyADS) SyncObservability(versionID string, clusters []*atlasCluster) error

Jump to

Keyboard shortcuts

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