github.com/docker/engine@v22.0.0-20211208180946-d456264580cf+incompatible/daemon/config/config_windows.go (about)

     1  package config // import "github.com/docker/docker/daemon/config"
     2  
     3  import (
     4  	"github.com/docker/docker/api/types"
     5  )
     6  
     7  const (
     8  	// This is used by the `default-runtime` flag in dockerd as the default value.
     9  	// On windows we'd prefer to keep this empty so the value is auto-detected based on other options.
    10  	StockRuntimeName = ""
    11  )
    12  
    13  // BridgeConfig stores all the bridge driver specific
    14  // configuration.
    15  type BridgeConfig struct {
    16  	commonBridgeConfig
    17  }
    18  
    19  // Config defines the configuration of a docker daemon.
    20  // It includes json tags to deserialize configuration from a file
    21  // using the same names that the flags in the command line uses.
    22  type Config struct {
    23  	CommonConfig
    24  
    25  	// Fields below here are platform specific. (There are none presently
    26  	// for the Windows daemon.)
    27  }
    28  
    29  // GetRuntime returns the runtime path and arguments for a given
    30  // runtime name
    31  func (conf *Config) GetRuntime(name string) *types.Runtime {
    32  	return nil
    33  }
    34  
    35  // GetAllRuntimes returns a copy of the runtimes map
    36  func (conf *Config) GetAllRuntimes() map[string]types.Runtime {
    37  	return map[string]types.Runtime{}
    38  }
    39  
    40  // GetExecRoot returns the user configured Exec-root
    41  func (conf *Config) GetExecRoot() string {
    42  	return ""
    43  }
    44  
    45  // GetInitPath returns the configured docker-init path
    46  func (conf *Config) GetInitPath() string {
    47  	return ""
    48  }
    49  
    50  // IsSwarmCompatible defines if swarm mode can be enabled in this config
    51  func (conf *Config) IsSwarmCompatible() error {
    52  	return nil
    53  }
    54  
    55  // ValidatePlatformConfig checks if any platform-specific configuration settings are invalid.
    56  func (conf *Config) ValidatePlatformConfig() error {
    57  	return nil
    58  }
    59  
    60  // IsRootless returns conf.Rootless on Linux but false on Windows
    61  func (conf *Config) IsRootless() bool {
    62  	return false
    63  }