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
Click to show internal directories.
Click to hide internal directories.