package discovery
import "github.com/open-policy-agent/opa/plugins/discovery"
Package discovery implements configuration discovery.
Index ¶
Functions ¶
func Factories ¶
Factories provides a set of factory functions to use for instantiating custom plugins.
Types ¶
type Config ¶
type Config struct { download.Config // bundle downloader configuration Name *string `json:"name"` // name of the discovery bundle Prefix *string `json:"prefix"` // path prefix for downloader // contains filtered or unexported fields }
Config represents the configuration for the discovery feature.
func ParseConfig ¶
ParseConfig returns a valid Config object with defaults injected.
type Discovery ¶
type Discovery struct {
// contains filtered or unexported fields
}
Discovery implements configuration discovery for OPA. When discovery is started it will periodically download a configuration bundle and try to reconfigure the OPA.
func New ¶
New returns a new discovery plugin.
func (*Discovery) Reconfigure ¶
Reconfigure is a no-op on discovery.
func (*Discovery) Start ¶
Start starts the dynamic discovery process if configured.
func (*Discovery) Stop ¶
Stop stops the dynamic discovery process if configured.
Source Files ¶
- Version
- v0.11.0
- Published
- May 20, 2019
- Platform
- js/wasm
- Imports
- 16 packages
- Last checked
- now –
Tools for package owners.