| package config // import "github.com/docker/docker/daemon/config" |
| |
| import ( |
| "github.com/docker/docker/api/types" |
| ) |
| |
| // BridgeConfig stores all the bridge driver specific |
| // configuration. |
| type BridgeConfig struct { |
| commonBridgeConfig |
| } |
| |
| // Config defines the configuration of a docker daemon. |
| // These are the configuration settings that you pass |
| // to the docker daemon when you launch it with say: `dockerd -e windows` |
| type Config struct { |
| CommonConfig |
| |
| // Fields below here are platform specific. (There are none presently |
| // for the Windows daemon.) |
| } |
| |
| // GetRuntime returns the runtime path and arguments for a given |
| // runtime name |
| func (conf *Config) GetRuntime(name string) *types.Runtime { |
| return nil |
| } |
| |
| // GetInitPath returns the configure docker-init path |
| func (conf *Config) GetInitPath() string { |
| return "" |
| } |
| |
| // GetDefaultRuntimeName returns the current default runtime |
| func (conf *Config) GetDefaultRuntimeName() string { |
| return StockRuntimeName |
| } |
| |
| // GetAllRuntimes returns a copy of the runtimes map |
| func (conf *Config) GetAllRuntimes() map[string]types.Runtime { |
| return map[string]types.Runtime{} |
| } |
| |
| // GetExecRoot returns the user configured Exec-root |
| func (conf *Config) GetExecRoot() string { |
| return "" |
| } |
| |
| // IsSwarmCompatible defines if swarm mode can be enabled in this config |
| func (conf *Config) IsSwarmCompatible() error { |
| return nil |
| } |
| |
| // ValidatePlatformConfig checks if any platform-specific configuration settings are invalid. |
| func (conf *Config) ValidatePlatformConfig() error { |
| return nil |
| } |
| |
| // IsRootless returns conf.Rootless on Unix but false on Windows |
| func (conf *Config) IsRootless() bool { |
| return false |
| } |