{"modulePath":"github.com/docker/compose-cli","version":"v1.0.35","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package config\n\n## Constants\n\n```go\nconst (\n\t// ConfigFileName is the name of config file\n\tConfigFileName = \"config.json\"\n\t// ConfigFileDir is the default folder where the config file is stored\n\tConfigFileDir = \".docker\"\n\t// ConfigFlagName is the name of the config flag\n\tConfigFlagName = \"config\"\n)\n```\n\n## Functions\n\n```go\nfunc Dir() string\n```\nDir returns the config directory path\n\n```go\nfunc WithDir(path string)\n```\nWithDir sets the config directory path in the context\n\n```go\nfunc WriteCurrentContext(dir string, name string) error\n```\nWriteCurrentContext writes the selected current context to the Docker configuration file. Note, the validity of the context is not checked.\n\n## Types\n\n```go\ntype ContextKey string\n```\nContextKey defines a type for keys in the context passed\n\n```go\nconst ContextTypeKey ContextKey = \"context_type\"\n```\nContextTypeKey is the key for context type stored in context.Context\n\n```go\ntype File struct {\n\tCurrentContext string                       `json:\"currentContext,omitempty\"`\n\tPlugins        map[string]map[string]string `json:\"plugins,omitempty\"`\n}\n```\nFile contains the current context from the docker configuration file\n\n```go\nfunc LoadFile(dir string) (*File, error)\n```\nLoadFile loads the docker configuration\n\n","path":"github.com/docker/compose-cli/api/config","name":"config","synopsis":"","isRedistributable":true}
