package cliconfig
import "github.com/docker/docker/cliconfig"
Index ¶
- Constants
- func ConfigDir() 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 SetConfigDir(dir string)
Constants ¶
const ( // ConfigFileName is the name of config file ConfigFileName = "config.json" )
Functions ¶
func ConfigDir ¶
func ConfigDir() string
ConfigDir returns the directory the configuration file is stored in
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'
func SetConfigDir ¶
func SetConfigDir(dir string)
SetConfigDir sets the directory the configuration file is stored in
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
cliconfig/configfile | |
cliconfig/credentials |
- Version
- v1.12.2
- Published
- Oct 11, 2016
- Platform
- linux/amd64
- Imports
- 7 packages
- Last checked
- 8 minutes ago –
Tools for package owners.