config

package
v0.22.0 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package config implements helper functions to parse OPA's configuration.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Load

func Load(configFile string, overrides []string, overrideFiles []string) ([]byte, error)

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

func ParseServicesConfig(raw json.RawMessage) (map[string]rest.Client, error)

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.

Types

This section is empty.

Jump to

Keyboard shortcuts

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