github.com/sijibomii/docker@v0.0.0-20231230191044-5cf6ca554647/runconfig/config_windows.go (about)

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