907407d0b2
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/engine-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
|
|
}
|