core

package
v0.0.0-...-dcdb1c8 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigGenerator

type ConfigGenerator interface {
	// BuildSharedPushState precomputes shared state across all envoys such as outbound clusters, outbound listeners for sidecars,
	// routes for sidecars/gateways etc. This state is stored in the ConfigGenerator object, and reused during the
	// actual BuildClusters/BuildListeners/BuildHTTPRoutes calls. The plugins will not be invoked during this call
	// as most plugins require information about the specific proxy (e.g., mixer/authn/authz). Instead, the
	// BuildYYY functions will invoke the plugins on the precomputed objects.
	BuildSharedPushState(env *model.Environment, push *model.PushContext) error

	// BuildListeners returns the list of inbound/outbound listeners for the given proxy. This is the LDS output
	// Internally, the computation will be optimized to ensure that listeners are computed only
	// once and shared across multiple invocations of this function.
	BuildListeners(env *model.Environment, node *model.Proxy, push *model.PushContext) ([]*v2.Listener, error)

	// BuildClusters returns the list of clusters for the given proxy. This is the CDS output
	BuildClusters(env *model.Environment, node *model.Proxy, push *model.PushContext) ([]*v2.Cluster, error)

	// BuildHTTPRoutes returns the list of HTTP routes for the given proxy. This is the RDS output
	BuildHTTPRoutes(env *model.Environment, node *model.Proxy, push *model.PushContext, routeName string) (*v2.RouteConfiguration, error)
}

ConfigGenerator represents the interfaces to be implemented by code that generates xDS responses

func NewConfigGenerator

func NewConfigGenerator(plugins []string) ConfigGenerator

NewConfigGenerator creates a new instance of the dataplane configuration generator

Directories

Path Synopsis
fakes
Code generated by counterfeiter.
Code generated by counterfeiter.
loadbalancer
packages used for load balancer setting
packages used for load balancer setting

Jump to

Keyboard shortcuts

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