config_windows.go 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. package config
  2. import (
  3. "github.com/docker/docker/api/types"
  4. )
  5. // BridgeConfig stores all the bridge driver specific
  6. // configuration.
  7. type BridgeConfig struct {
  8. commonBridgeConfig
  9. }
  10. // Config defines the configuration of a docker daemon.
  11. // These are the configuration settings that you pass
  12. // to the docker daemon when you launch it with say: `dockerd -e windows`
  13. type Config struct {
  14. CommonConfig
  15. // Fields below here are platform specific. (There are none presently
  16. // for the Windows daemon.)
  17. }
  18. // GetRuntime returns the runtime path and arguments for a given
  19. // runtime name
  20. func (conf *Config) GetRuntime(name string) *types.Runtime {
  21. return nil
  22. }
  23. // GetInitPath returns the configure docker-init path
  24. func (conf *Config) GetInitPath() string {
  25. return ""
  26. }
  27. // GetDefaultRuntimeName returns the current default runtime
  28. func (conf *Config) GetDefaultRuntimeName() string {
  29. return StockRuntimeName
  30. }
  31. // GetAllRuntimes returns a copy of the runtimes map
  32. func (conf *Config) GetAllRuntimes() map[string]types.Runtime {
  33. return map[string]types.Runtime{}
  34. }
  35. // GetExecRoot returns the user configured Exec-root
  36. func (conf *Config) GetExecRoot() string {
  37. return ""
  38. }
  39. // IsSwarmCompatible defines if swarm mode can be enabled in this config
  40. func (conf *Config) IsSwarmCompatible() error {
  41. return nil
  42. }