Documentation ¶
Index ¶
- Constants
- func Dir() string
- func LegacyLoadFromReader(configData io.Reader) (*configfile.ConfigFile, error)
- func Load(configDir string) (*configfile.ConfigFile, error)
- func LoadFromReader(configData io.Reader) (*configfile.ConfigFile, error)
- func NewConfigFile(fn string) *configfile.ConfigFile
- func SetDir(dir string)
Constants ¶
View Source
const (
// ConfigFileName is the name of config file
ConfigFileName = "config.json"
)
Variables ¶
This section is empty.
Functions ¶
func LegacyLoadFromReader ¶
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 ¶
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'
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.