Documentation
¶
Overview ¶
Package server contains the policy engine's server handlers.
Deprecated: This package is intended for older projects transitioning from OPA v0.x and will remain for the lifetime of OPA v1.x, but its use is not recommended. For newer features and behaviours, such as defaulting to the Rego v1 syntax, use the corresponding components in the github.com/open-policy-agent/opa/v1 package instead. See https://www.openpolicyagent.org/docs/latest/v0-compatibility/ for more information.
Index ¶
Constants ¶
const ( AuthenticationOff = v1.AuthenticationOff AuthenticationToken = v1.AuthenticationToken AuthenticationTLS = v1.AuthenticationTLS )
Set of supported authentication schemes.
const ( AuthorizationOff = v1.AuthorizationOff AuthorizationBasic = v1.AuthorizationBasic )
Set of supported authorization schemes.
const ( PromHandlerV0Data = v1.PromHandlerV0Data PromHandlerV1Data = v1.PromHandlerV1Data PromHandlerV1Query = v1.PromHandlerV1Query PromHandlerV1Policies = v1.PromHandlerV1Policies PromHandlerV1Compile = v1.PromHandlerV1Compile PromHandlerV1Config = v1.PromHandlerV1Config PromHandlerV1Status = v1.PromHandlerV1Status PromHandlerIndex = v1.PromHandlerIndex PromHandlerCatch = v1.PromHandlerCatch PromHandlerHealth = v1.PromHandlerHealth PromHandlerAPIAuthz = v1.PromHandlerAPIAuthz )
Set of handlers for use in the "handler" dimension of the duration metric.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthenticationScheme ¶ added in v0.4.5
type AuthenticationScheme = v1.AuthenticationScheme
AuthenticationScheme enumerates the supported authentication schemes. The authentication scheme determines how client identities are established.
type AuthorizationScheme ¶ added in v0.4.5
type AuthorizationScheme = v1.AuthorizationScheme
AuthorizationScheme enumerates the supported authorization schemes. The authorization scheme determines how access to OPA is controlled.
type BundleInfo ¶ added in v0.13.0
type BundleInfo = v1.BundleInfo
BundleInfo contains information describing a bundle.
type Loop ¶ added in v0.8.2
Loop will contain all the calls from the server that we'll be listening on.
type Metrics ¶ added in v0.14.0
Metrics defines the interface that the server requires for recording HTTP handler metrics.
Directories
¶
Path | Synopsis |
---|---|
Package authorizer provides authorization handlers to the server.
|
Package authorizer provides authorization handlers to the server. |
Deprecated: This package is intended for older projects transitioning from OPA v0.x and will remain for the lifetime of OPA v1.x, but its use is not recommended.
|
Deprecated: This package is intended for older projects transitioning from OPA v0.x and will remain for the lifetime of OPA v1.x, but its use is not recommended. |
Deprecated: This package is intended for older projects transitioning from OPA v0.x and will remain for the lifetime of OPA v1.x, but its use is not recommended.
|
Deprecated: This package is intended for older projects transitioning from OPA v0.x and will remain for the lifetime of OPA v1.x, but its use is not recommended. |
Deprecated: This package is intended for older projects transitioning from OPA v0.x and will remain for the lifetime of OPA v1.x, but its use is not recommended.
|
Deprecated: This package is intended for older projects transitioning from OPA v0.x and will remain for the lifetime of OPA v1.x, but its use is not recommended. |
Deprecated: This package is intended for older projects transitioning from OPA v0.x and will remain for the lifetime of OPA v1.x, but its use is not recommended.
|
Deprecated: This package is intended for older projects transitioning from OPA v0.x and will remain for the lifetime of OPA v1.x, but its use is not recommended. |