package rbac

import "google.golang.org/grpc/xds/internal/httpfilter/rbac"

Package rbac implements the Envoy RBAC HTTP filter.

Index

Functions

func RegisterForTesting

func RegisterForTesting()

RegisterForTesting registers the RBAC HTTP Filter for testing purposes, regardless of the RBAC environment variable. This is needed because there is no way to set the RBAC environment variable to true in a test before init() in this package is run.

func UnregisterForTesting

func UnregisterForTesting()

UnregisterForTesting unregisters the RBAC HTTP Filter for testing purposes. This is needed because there is no way to unregister the HTTP Filter after registering it solely for testing purposes using rbac.RegisterForTesting()

Source Files

rbac.go

Version
v1.42.0-dev
Published
Sep 21, 2021
Platform
linux/amd64
Imports
13 packages
Last checked
15 minutes ago

Tools for package owners.