grpcgen

package
v0.0.0-...-1b34cb9 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2024 License: Apache-2.0 Imports: 29 Imported by: 1

Documentation

Index

Constants

View Source
const (
	RBACHTTPFilterName     = "envoy.filters.http.rbac"
	RBACHTTPFilterNameDeny = "envoy.filters.http.rbac.DENY"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type GrpcConfigGenerator

type GrpcConfigGenerator struct{}

func (*GrpcConfigGenerator) BuildClusters

func (g *GrpcConfigGenerator) BuildClusters(node *model.Proxy, push *model.PushContext, names []string) model.Resources

BuildClusters handles a gRPC CDS request, used with the 'ApiListener' style of requests. The main difference is that the request includes Resources to filter.

func (*GrpcConfigGenerator) BuildHTTPRoutes

func (g *GrpcConfigGenerator) BuildHTTPRoutes(node *model.Proxy, push *model.PushContext, routeNames []string) model.Resources

BuildHTTPRoutes supports per-VIP routes, as used by GRPC. This mode is indicated by using names containing full host:port instead of just port. Returns true of the request is of this type.

func (*GrpcConfigGenerator) BuildListeners

func (g *GrpcConfigGenerator) BuildListeners(node *model.Proxy, push *model.PushContext, names []string) model.Resources

BuildListeners handles a LDS request, returning listeners of ApiListener type. The request may include a list of resource names, using the full_hostname[:port] format to select only specific services.

func (*GrpcConfigGenerator) Generate

Jump to

Keyboard shortcuts

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