mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
db63f9370e
This also moves some cli specific in `cmd/dockerd` as it does not really belong to the `daemon/config` package. Signed-off-by: Vincent Demeester <vincent@sbr.pm>
52 lines
1.3 KiB
Go
52 lines
1.3 KiB
Go
package 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
|
|
}
|