2015-07-09 18:12:36 -04:00
|
|
|
package runconfig
|
|
|
|
|
2015-12-18 13:36:17 -05:00
|
|
|
import "github.com/docker/docker/api/types/container"
|
|
|
|
|
2015-07-09 18:12:36 -04:00
|
|
|
// ContainerConfigWrapper is a Config wrapper that hold the container Config (portable)
|
|
|
|
// and the corresponding HostConfig (non-portable).
|
|
|
|
type ContainerConfigWrapper struct {
|
2015-12-18 13:36:17 -05:00
|
|
|
*container.Config
|
|
|
|
HostConfig *container.HostConfig `json:"HostConfig,omitempty"`
|
2015-07-09 18:12:36 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
// getHostConfig gets the HostConfig of the Config.
|
2015-12-18 13:36:17 -05:00
|
|
|
func (w *ContainerConfigWrapper) getHostConfig() *container.HostConfig {
|
2015-07-09 18:12:36 -04:00
|
|
|
return w.HostConfig
|
|
|
|
}
|