2016-06-13 19:52:49 -07:00
|
|
|
package provider
|
|
|
|
|
2016-09-06 11:18:12 -07:00
|
|
|
import "github.com/docker/docker/api/types"
|
2016-06-13 19:52:49 -07: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 09:53:31 -07:00
|
|
|
// VirtualAddress represents a virtual address.
|
2016-06-13 19:52:49 -07: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 14:55:05 -07:00
|
|
|
Aliases map[string][]string
|
2016-06-13 19:52:49 -07:00
|
|
|
VirtualAddresses map[string]*VirtualAddress
|
|
|
|
ExposedPorts []*PortConfig
|
|
|
|
}
|