cliconfig

package
v1.13.0-rc7 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2017 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ConfigFileName is the name of config file
	ConfigFileName = "config.json"
)

Variables

This section is empty.

Functions

func ConfigDir added in v1.8.0

func ConfigDir() string

ConfigDir returns the directory the configuration file is stored in

func LegacyLoadFromReader added in v1.9.0

func LegacyLoadFromReader(configData io.Reader) (*configfile.ConfigFile, error)

LegacyLoadFromReader is a convenience function that creates a ConfigFile object from a non-nested reader

func Load

func Load(configDir string) (*configfile.ConfigFile, error)

Load reads the configuration files in the given directory, and sets up the auth config information and returns values. FIXME: use the internal golang config parser

func LoadFromReader added in v1.9.0

func LoadFromReader(configData io.Reader) (*configfile.ConfigFile, error)

LoadFromReader is a convenience function that creates a ConfigFile object from a reader

func NewConfigFile

func NewConfigFile(fn string) *configfile.ConfigFile

NewConfigFile initializes an empty configuration file for the given filename 'fn'

func SetConfigDir added in v1.8.0

func SetConfigDir(dir string)

SetConfigDir sets the directory the configuration file is stored in

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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