mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
7ac4232e70
- Make the API client library completely standalone. - Move windows partition isolation detection to the client, so the driver doesn't use external types. Signed-off-by: David Calavera <david.calavera@gmail.com>
15 lines
485 B
Go
15 lines
485 B
Go
package runconfig
|
|
|
|
import "github.com/docker/docker/api/types/container"
|
|
|
|
// ContainerConfigWrapper is a Config wrapper that hold the container Config (portable)
|
|
// and the corresponding HostConfig (non-portable).
|
|
type ContainerConfigWrapper struct {
|
|
*container.Config
|
|
HostConfig *container.HostConfig `json:"HostConfig,omitempty"`
|
|
}
|
|
|
|
// getHostConfig gets the HostConfig of the Config.
|
|
func (w *ContainerConfigWrapper) getHostConfig() *container.HostConfig {
|
|
return w.HostConfig
|
|
}
|