config_windows.go 650 B

12345678910111213141516171819
  1. package runconfig
  2. import (
  3. "github.com/docker/docker/api/types/container"
  4. networktypes "github.com/docker/docker/api/types/network"
  5. )
  6. // ContainerConfigWrapper is a Config wrapper that holds the container Config (portable)
  7. // and the corresponding HostConfig (non-portable).
  8. type ContainerConfigWrapper struct {
  9. *container.Config
  10. HostConfig *container.HostConfig `json:"HostConfig,omitempty"`
  11. NetworkingConfig *networktypes.NetworkingConfig `json:"NetworkingConfig,omitempty"`
  12. }
  13. // getHostConfig gets the HostConfig of the Config.
  14. func (w *ContainerConfigWrapper) getHostConfig() *container.HostConfig {
  15. return w.HostConfig
  16. }