Documentation ¶
Overview ¶
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.
Package status implements status reporting.
Index ¶
Constants ¶
const Name = v1.Name
Name identifies the plugin on manager.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BundleLoadDurationNanoseconds ¶ added in v1.0.0
type BundleLoadDurationNanoseconds = v1.BundleLoadDurationNanoseconds
BundleLoadDurationNanoseconds represents the configuration for the status.prometheus_config.bundle_loading_duration_ns settings
type Collectors ¶ added in v1.0.0
type Collectors = v1.Collectors
type ConfigBuilder ¶ added in v0.32.0
type ConfigBuilder = v1.ConfigBuilder
ConfigBuilder assists in the construction of the plugin configuration.
func NewConfigBuilder ¶ added in v0.32.0
func NewConfigBuilder() *ConfigBuilder
NewConfigBuilder returns a new ConfigBuilder to build and parse the plugin config.
type Plugin ¶
Plugin implements status reporting. Updates can be triggered by the caller.
type PrometheusConfig ¶ added in v1.0.0
type PrometheusConfig = v1.PrometheusConfig
type UpdateRequestV1 ¶
type UpdateRequestV1 = v1.UpdateRequestV1
UpdateRequestV1 represents the status update message that OPA sends to remote HTTP endpoints.