2016-06-13 22:52:49 -04:00
|
|
|
package provider
|
|
|
|
|
2016-09-06 14:18:12 -04:00
|
|
|
import "github.com/docker/docker/api/types"
|
2016-06-13 22:52:49 -04:00
|
|
|
|
|
|
|
// NetworkCreateRequest is a request when creating a network.
|
|
|
|
type NetworkCreateRequest struct {
|
|
|
|
ID string
|
|
|
|
types.NetworkCreateRequest
|
|
|
|
}
|
|
|
|
|
|
|
|
// NetworkCreateResponse is a response when creating a network.
|
|
|
|
type NetworkCreateResponse struct {
|
|
|
|
ID string `json:"Id"`
|
|
|
|
}
|
|
|
|
|
2016-06-19 12:53:31 -04:00
|
|
|
// VirtualAddress represents a virtual address.
|
2016-06-13 22:52:49 -04:00
|
|
|
type VirtualAddress struct {
|
|
|
|
IPv4 string
|
|
|
|
IPv6 string
|
|
|
|
}
|
|
|
|
|
|
|
|
// PortConfig represents a port configuration.
|
|
|
|
type PortConfig struct {
|
|
|
|
Name string
|
|
|
|
Protocol int32
|
|
|
|
TargetPort uint32
|
|
|
|
PublishedPort uint32
|
|
|
|
}
|
|
|
|
|
|
|
|
// ServiceConfig represents a service configuration.
|
|
|
|
type ServiceConfig struct {
|
|
|
|
ID string
|
|
|
|
Name string
|
2016-06-14 17:55:05 -04:00
|
|
|
Aliases map[string][]string
|
2016-06-13 22:52:49 -04:00
|
|
|
VirtualAddresses map[string]*VirtualAddress
|
|
|
|
ExposedPorts []*PortConfig
|
|
|
|
}
|