config

package
v0.0.0-...-73ce370 Latest Latest
Warning

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

Go to latest
Published: May 14, 2017 License: GPL-3.0 Imports: 22 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Config store the active merge configuration
	Config = &Options{}
	// CLI store the configuration fetched from the console line
	CLI = &Options{}
	// File store the configuration fetched from an optional file
	File = &Options{}
)

Functions

func Apply

func Apply() (err error)

Apply validate configuration and initialize needed package with values from configuration

func ApplyLoggingOptions

func ApplyLoggingOptions(lc *logOptions) (err error)

ApplyLoggingOptions apply configuration on log package

func ApplyProvidersOptions

func ApplyProvidersOptions(pc *providerOptions) (err error)

ApplyProvidersOptions apply configuration on providers package

func LoadFile

func LoadFile(path string) (err error)

LoadFile fill config.File with the configuration parsed from path

func Merge

func Merge()

Merge fill config.Config based on config.CLI and config.File File < CLI

Types

type Options

type Options struct {
	Global globalOptions `json:"global"`
	Run    runOptions    `json:"run"`
}

Options list all the available configurations

Jump to

Keyboard shortcuts

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