Documentation ¶
Index ¶
Constants ¶
View Source
const ( // StartCheckErr error code returned when unable to start new execution StartCheckErr string = "start_check_error" // StartTxnErr error code returned when unable to start new storage transaction StartTxnErr string = "start_txn_error" // RequestParseErr error code returned when unable to parse protobuf request to input map RequestParseErr string = "request_parse_error" // CheckRequestTimeoutErr error code returned when context deadline exceeds before eval CheckRequestTimeoutErr string = "check_request_timeout" // InputParseErr error code returned when unable to convert input map to ast value InputParseErr string = "input_parse_error" // EnvoyAuthEvalErr error code returned when auth eval fails EnvoyAuthEvalErr string = "envoyauth_eval_error" // EnvoyAuthResultErr error code returned when error in fetching result from auth eval EnvoyAuthResultErr string = "envoyauth_result_error" )
View Source
const (
// PluginName is the name to register with the OPA plugin manager
PluginName = "envoy_ext_authz_grpc"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { Addr string `json:"addr"` Query string `json:"query"` // Deprecated: Use Path instead Path string `json:"path"` DryRun bool `json:"dry-run"` EnableReflection bool `json:"enable-reflection"` ProtoDescriptor string `json:"proto-descriptor"` GRPCMaxRecvMsgSize int `json:"grpc-max-recv-msg-size"` GRPCMaxSendMsgSize int `json:"grpc-max-send-msg-size"` SkipRequestBodyParse bool `json:"skip-request-body-parse"` EnablePerformanceMetrics bool `json:"enable-performance-metrics"` // contains filtered or unexported fields }
Config represents the plugin configuration.
type Error ¶
type Error struct { Code string `json:"code"` // contains filtered or unexported fields }
Error is the error type returned by the internal check function
Click to show internal directories.
Click to hide internal directories.