diff options
Diffstat (limited to 'libpod/network')
-rw-r--r-- | libpod/network/types/network.go | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/libpod/network/types/network.go b/libpod/network/types/network.go index 56bde716e..ad46c9ac1 100644 --- a/libpod/network/types/network.go +++ b/libpod/network/types/network.go @@ -199,6 +199,20 @@ type PortMapping struct { Protocol string `json:"protocol,omitempty"` } +// OCICNIPortMapping maps to the standard CNI portmapping Capability. +// Deprecated, do not use this struct for new fields. This only exists +// for backwards compatibility. +type OCICNIPortMapping struct { + // HostPort is the port number on the host. + HostPort int32 `json:"hostPort"` + // ContainerPort is the port number inside the sandbox. + ContainerPort int32 `json:"containerPort"` + // Protocol is the protocol of the port mapping. + Protocol string `json:"protocol"` + // HostIP is the host ip to use. + HostIP string `json:"hostIP"` +} + type SetupOptions struct { NetworkOptions } |