2015-08-07 02:21:00 +00:00
|
|
|
package execdriver
|
|
|
|
|
|
|
|
import "github.com/docker/docker/pkg/nat"
|
|
|
|
|
2015-09-10 02:23:06 +00:00
|
|
|
// Mount contains information for a mount operation.
|
|
|
|
type Mount struct {
|
|
|
|
Source string `json:"source"`
|
|
|
|
Destination string `json:"destination"`
|
|
|
|
Writable bool `json:"writable"`
|
|
|
|
}
|
|
|
|
|
2015-10-05 17:11:10 +00:00
|
|
|
// Resources contains all resource configs for a driver.
|
|
|
|
// Currently these are all for cgroup configs.
|
|
|
|
type Resources struct {
|
|
|
|
CommonResources
|
|
|
|
|
|
|
|
// Fields below here are platform specific
|
|
|
|
}
|
|
|
|
|
2015-08-07 02:21:00 +00:00
|
|
|
// Network settings of the container
|
|
|
|
type Network struct {
|
|
|
|
Interface *NetworkInterface `json:"interface"`
|
|
|
|
ContainerID string `json:"container_id"` // id of the container to join network.
|
|
|
|
}
|
|
|
|
|
|
|
|
// NetworkInterface contains network configs for a driver
|
|
|
|
type NetworkInterface struct {
|
|
|
|
MacAddress string `json:"mac"`
|
|
|
|
Bridge string `json:"bridge"`
|
|
|
|
IPAddress string `json:"ip"`
|
|
|
|
|
|
|
|
// PortBindings is the port mapping between the exposed port in the
|
|
|
|
// container and the port on the host.
|
|
|
|
PortBindings nat.PortMap `json:"port_bindings"`
|
|
|
|
}
|