config

package
v0.0.0-...-9444df9 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2018 License: Apache-2.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler interface {
	// config value getters and setters
	SecretBackend() string
	SecretBackendAllowedValues() []string
	SetSecretBackend(value string) error

	// handler functions
	SaveConfig(path string) error
	Validate() error
}

Handler handles loading, storing, validating the configuration file

func LoadConfig

func LoadConfig(path string) (Handler, error)

LoadConfig loads the configuration from file, and falls back to default calues if file could not be be loaded

Jump to

Keyboard shortcuts

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