Initial commit
This commit is contained in:
19
vendor/github.com/hyperhq/hypercli/runconfig/config_windows.go
generated
vendored
Normal file
19
vendor/github.com/hyperhq/hypercli/runconfig/config_windows.go
generated
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
package runconfig
|
||||
|
||||
import (
|
||||
"github.com/docker/engine-api/types/container"
|
||||
networktypes "github.com/docker/engine-api/types/network"
|
||||
)
|
||||
|
||||
// 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"`
|
||||
NetworkingConfig *networktypes.NetworkingConfig `json:"NetworkingConfig,omitempty"`
|
||||
}
|
||||
|
||||
// getHostConfig gets the HostConfig of the Config.
|
||||
func (w *ContainerConfigWrapper) getHostConfig() *container.HostConfig {
|
||||
return w.HostConfig
|
||||
}
|
||||
Reference in New Issue
Block a user