plugin

package
v0.61.0-envoy Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2024 License: Apache-2.0 Imports: 2 Imported by: 3

Documentation

Index

Constants

View Source
const PluginName = internal.PluginName

PluginName is the name to register with the OPA plugin manager

Variables

This section is empty.

Functions

This section is empty.

Types

type Factory

type Factory struct{}

Factory defines the interface OPA uses to instantiate a plugin.

func (Factory) New

func (Factory) New(m *plugins.Manager, config interface{}) plugins.Plugin

New returns the object initialized with a valid plugin configuration.

func (Factory) Validate

func (Factory) Validate(m *plugins.Manager, config []byte) (interface{}, error)

Validate returns a valid configuration to instantiate the plugin.

Jump to

Keyboard shortcuts

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