Documentation ¶
Index ¶
- Constants
- type GrpcConfigGenerator
- func (g *GrpcConfigGenerator) BuildClusters(node *model.Proxy, push *model.PushContext, names []string) model.Resources
- func (g *GrpcConfigGenerator) BuildHTTPRoutes(node *model.Proxy, push *model.PushContext, routeNames []string) model.Resources
- func (g *GrpcConfigGenerator) BuildListeners(node *model.Proxy, push *model.PushContext, names []string) model.Resources
- func (g *GrpcConfigGenerator) Generate(proxy *model.Proxy, w *model.WatchedResource, req *model.PushRequest) (model.Resources, model.XdsLogDetails, error)
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 ¶
func (g *GrpcConfigGenerator) Generate(proxy *model.Proxy, w *model.WatchedResource, req *model.PushRequest) (model.Resources, model.XdsLogDetails, error)
Click to show internal directories.
Click to hide internal directories.