envoy

package
v0.0.0-...-2d59885 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2019 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrPrefixAlreadyExists      = errors.New("prefix already exists")
	ErrClusterNotFound          = errors.New("cluster not found")
	ErrClusterAlreadyExists     = errors.New("cluster already exists")
	ErrClusterHasEndpoints      = errors.New("cluster has endpoints")
	ErrEndpointNotFound         = errors.New("endpoint not found")
	ErrEndpointAlreadyExists    = errors.New("endpoint already exists")
	ErrRequiredParameterMissing = errors.New("required parameter missing")
)

Functions

This section is empty.

Types

type Manager

type Manager interface {
	// Add a new cluster with a given name and route prefix to envoy config.
	AddCluster(name, routePrefix string) error

	// RemoveCluster removes a cluster from envoy config.
	RemoveCluster(name string) error

	// AddEndpoint adds a new endpoint to existing cluster.
	AddEndpoint(cluster, ipAddress string, port uint32) error

	// RemoveEndpoint removes an endpoint from existing cluster.
	RemoveEndpoint(cluster, ipAddress string, port uint32) error

	// Cache returns a control plane cache.
	Cache() cache.Cache

	// Commit updates the configuration. Must be called after any change to clusters or endpoints.
	Commit() error
}

Manager manages envoy dynamic config

func New

func New(xdsClusterName string, log *logrus.Logger) Manager

Jump to

Keyboard shortcuts

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