зеркало из https://github.com/microsoft/docker.git
16 строки
485 B
Go
16 строки
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
|
|
}
|