aboutsummaryrefslogtreecommitdiff
path: root/libpod/pod.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-02-10 14:07:04 +0100
committerGitHub <noreply@github.com>2020-02-10 14:07:04 +0100
commite2a01603f2a22808134c73f6b34fa264c5ec9714 (patch)
tree9b92810fcc7e8f6c97a31e00d2807a1c7f43ea82 /libpod/pod.go
parentee811431d29962c3a801903ca3ca342a2000f65e (diff)
parent07a8ab09e05052e6776395ba3b0275d7f9921ef2 (diff)
downloadpodman-e2a01603f2a22808134c73f6b34fa264c5ec9714.tar.gz
podman-e2a01603f2a22808134c73f6b34fa264c5ec9714.tar.bz2
podman-e2a01603f2a22808134c73f6b34fa264c5ec9714.zip
Merge pull request #5064 from mheon/pod_network_opts
Add backend code for pod network options
Diffstat (limited to 'libpod/pod.go')
-rw-r--r--libpod/pod.go14
1 files changed, 12 insertions, 2 deletions
diff --git a/libpod/pod.go b/libpod/pod.go
index 3b9bb9c60..4f85caf08 100644
--- a/libpod/pod.go
+++ b/libpod/pod.go
@@ -1,6 +1,7 @@
package libpod
import (
+ "net"
"time"
"github.com/containers/libpod/libpod/define"
@@ -97,8 +98,17 @@ type PodContainerInfo struct {
// InfraContainerConfig is the configuration for the pod's infra container
type InfraContainerConfig struct {
- HasInfraContainer bool `json:"makeInfraContainer"`
- PortBindings []ocicni.PortMapping `json:"infraPortBindings"`
+ HasInfraContainer bool `json:"makeInfraContainer"`
+ PortBindings []ocicni.PortMapping `json:"infraPortBindings"`
+ StaticIP net.IP `json:"staticIP,omitempty"`
+ StaticMAC net.HardwareAddr `json:"staticMAC,omitempty"`
+ UseImageResolvConf bool `json:"useImageResolvConf,omitempty"`
+ DNSServer []string `json:"dnsServer,omitempty"`
+ DNSSearch []string `json:"dnsSearch,omitempty"`
+ DNSOption []string `json:"dnsOption,omitempty"`
+ UseImageHosts bool `json:"useImageHosts,omitempty"`
+ HostAdd []string `json:"hostsAdd,omitempty"`
+ Networks []string `json:"networks,omitempty"`
}
// ID retrieves the pod's ID