Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConfigGenerator ¶
type ConfigGenerator interface { // 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 |
Click to show internal directories.
Click to hide internal directories.