logs

package
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 27, 2025 License: Apache-2.0 Imports: 2 Imported by: 32

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 logs implements decision log buffering and uploading.

Index

Constants

View Source
const Name = v1.Name

Name identifies the plugin on manager.

Variables

This section is empty.

Functions

This section is empty.

Types

type BundleInfoV1 added in v0.13.0

type BundleInfoV1 = v1.BundleInfoV1

BundleInfoV1 describes a bundle associated with a decision log event.

type Config

type Config = v1.Config

Config represents the plugin configuration.

func ParseConfig added in v0.10.2

func ParseConfig(config []byte, services []string, pluginList []string) (*Config, error)

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 EventV1

type EventV1 = v1.EventV1

EventV1 represents a decision log event. WARNING: The AST() function for EventV1 must be kept in sync with the struct. Any changes here MUST be reflected in the AST() implementation below.

type HTTPRequestContext added in v0.65.0

type HTTPRequestContext = v1.HTTPRequestContext

type HTTPRequestContextConfig added in v0.65.0

type HTTPRequestContextConfig = v1.HTTPRequestContextConfig

type Logger added in v0.10.3

type Logger = v1.Logger

Logger defines the interface for decision logging plugins.

type Plugin

type Plugin = v1.Plugin

Plugin implements decision log buffering and uploading.

func Lookup added in v0.10.2

func Lookup(manager *plugins.Manager) *Plugin

Lookup returns the decision logs plugin registered with the manager.

func New

func New(parsedConfig *Config, manager *plugins.Manager) *Plugin

New returns a new Plugin with the given config.

type ReportingConfig

type ReportingConfig = v1.ReportingConfig

ReportingConfig represents configuration for the plugin's reporting behaviour.

type RequestContext added in v0.65.0

type RequestContext = v1.RequestContext

type RequestContextConfig added in v0.65.0

type RequestContextConfig = v1.RequestContextConfig

Directories

Path Synopsis
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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL