Documentation ¶
Index ¶
Constants ¶
View Source
const PluginName = "envoy_ext_authz_grpc"
PluginName is the name to register with the OPA plugin manager
Variables ¶
This section is empty.
Functions ¶
func AdaptToExtAuthRequest ¶
func AdaptToExtAuthRequest(req *http.Request, metadata *ext_authz_v3_core.Metadata, contextExtensions map[string]string, rawBody []byte) (*ext_authz_v3.CheckRequest, error)
Types ¶
type Factory ¶
type Factory struct{}
Factory defines the interface OPA uses to instantiate a plugin.
type Plugin ¶
type Plugin struct {
// contains filtered or unexported fields
}
func (*Plugin) GetConfig ¶
func (p *Plugin) GetConfig() PluginConfig
func (*Plugin) ParsedQuery ¶
func (*Plugin) Reconfigure ¶
type PluginConfig ¶
type PluginConfig struct { Path string `json:"path"` DryRun bool `json:"dry-run"` SkipRequestBodyParse bool `json:"skip-request-body-parse"` ParsedQuery ast.Body }
PluginConfig represents the plugin configuration.
func (*PluginConfig) ParseQuery ¶
func (cfg *PluginConfig) ParseQuery() error
Click to show internal directories.
Click to hide internal directories.