package config
import "github.com/open-policy-agent/opa/internal/config"
Package config implements helper functions to parse OPA's configuration.
Index ¶
- func Load(configFile string, overrides []string, overrideFiles []string) ([]byte, error)
- func ParseServicesConfig(raw json.RawMessage) (map[string]rest.Client, error)
Functions ¶
func Load ¶
Load implements configuraiton file loading. The supplied config file will be read from disk (if specified) and overrides will be applied. If no config file is specified, the overrides can still be applied to an empty config.
func ParseServicesConfig ¶
ParseServicesConfig returns a set of named service clients. The service clients can be specified either as an array or as a map. Some systems (e.g., Helm) do not have proper support for configuration values nested under arrays, so just support both here.
Source Files ¶
- Version
- v0.25.0
- Published
- Dec 3, 2020
- Platform
- linux/amd64
- Imports
- 10 packages
- Last checked
- 54 minutes ago –
Tools for package owners.