mirror of
				https://github.com/moby/moby.git
				synced 2022-11-09 12:21:53 -05:00 
			
		
		
		
	This moves the types for the `engine-api` repo to the existing types package. Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
		
			
				
	
	
		
			19 lines
		
	
	
	
		
			650 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
	
		
			650 B
		
	
	
	
		
			Go
		
	
	
	
	
	
package runconfig
 | 
						|
 | 
						|
import (
 | 
						|
	"github.com/docker/docker/api/types/container"
 | 
						|
	networktypes "github.com/docker/docker/api/types/network"
 | 
						|
)
 | 
						|
 | 
						|
// ContainerConfigWrapper is a Config wrapper that holds 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
 | 
						|
}
 |