[dependency] Add portmap capability support (Other changes were dependent on changes made in this commit)

Signed-off-by: Mathieu Rohon <mathieu.rohon@orange.com>
This commit is contained in:
Mathieu Rohon
2018-09-26 09:52:37 +02:00
committed by dougbtv
parent 8d2445bb4c
commit a51309c532
5 changed files with 69 additions and 8 deletions

View File

@@ -51,6 +51,17 @@ type NetConf struct {
NamespaceIsolation bool `json:"namespaceIsolation"`
}
type RuntimeConfig struct {
PortMaps []PortMapEntry `json:"portMappings,omitempty"`
}
type PortMapEntry struct {
HostPort int `json:"hostPort"`
ContainerPort int `json:"containerPort"`
Protocol string `json:"protocol"`
HostIP string `json:"hostIP,omitempty"`
}
type NetworkStatus struct {
Name string `json:"name"`
Interface string `json:"interface,omitempty"`