lds

package
v0.0.0-...-5fbf753 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// GRPCServerListenerResourceNameTemplate must match the template in the gRPC xDS bootstrap file, see
	// [gRFC A36: xDS-Enabled Servers]: https://github.com/grpc/proposal/blob/fd10c1a86562b712c2c5fa23178992654c47a072/A36-xds-for-servers.md#xds-protocol
	// Using the sample name from the gRPC-Go unit tests, but this is not important.
	GRPCServerListenerResourceNameTemplate = "grpc/server?xds.resource.listening_address=%s"
	// GRPCServerListenerRouteConfigurationName is used for the RouteConfiguration pointed to by server Listeners.
	GRPCServerListenerRouteConfigurationName = "default_inbound_config"
)
View Source
const (
	EnvoyFilterHTTPRBACName = "envoy.filters.http.rbac"
)
View Source
const (
	EnvoyGRPCListenerRouteConfigurationName = "envoy-route-configuration"
)

Variables

This section is empty.

Functions

func CreateAPIListener

func CreateAPIListener(name string, routeConfigurationName string) (*listenerv3.Listener, error)

CreateAPIListener returns an LDS API listener

func CreateEnvoyGRPCListener

func CreateEnvoyGRPCListener(port uint32, enableTLS bool) (*listenerv3.Listener, error)

CreateEnvoyGRPCListener returns a GRPC listener for Envoy front proxies.

func CreateGRPCServerListener

func CreateGRPCServerListener(host string, port uint32, enableTLS bool, requireClientCerts bool, enableRBAC bool) (*listenerv3.Listener, error)

CreateGRPCServerListener returns a downstream listener for xDS-enabled gRPC servers.

Types

This section is empty.

Jump to

Keyboard shortcuts

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