diff options
author | Matthew Heon <matthew.heon@gmail.com> | 2018-01-08 10:39:27 -0500 |
---|---|---|
committer | Atomic Bot <atomic-devel@projectatomic.io> | 2018-01-08 16:12:50 +0000 |
commit | f881a8d17c677192ea862bcfc25b829f3cfd7392 (patch) | |
tree | 1075d1ccb2c5cb5e91d5f6f4f2a4fe578a0f4e81 /libpod/inspect_data.go | |
parent | d0fb2e48e5d8ea47332b0a9608129ab268338c7e (diff) | |
download | podman-f881a8d17c677192ea862bcfc25b829f3cfd7392.tar.gz podman-f881a8d17c677192ea862bcfc25b829f3cfd7392.tar.bz2 podman-f881a8d17c677192ea862bcfc25b829f3cfd7392.zip |
Add basic network inspection info
Signed-off-by: Matthew Heon <matthew.heon@gmail.com>
Closes: #196
Approved by: rhatdan
Diffstat (limited to 'libpod/inspect_data.go')
-rw-r--r-- | libpod/inspect_data.go | 35 |
1 files changed, 18 insertions, 17 deletions
diff --git a/libpod/inspect_data.go b/libpod/inspect_data.go index 072b94ab2..5f9e3166d 100644 --- a/libpod/inspect_data.go +++ b/libpod/inspect_data.go @@ -3,6 +3,7 @@ package libpod import ( "time" + "github.com/cri-o/ocicni/pkg/ocicni" digest "github.com/opencontainers/go-digest" "github.com/opencontainers/image-spec/specs-go/v1" specs "github.com/opencontainers/runtime-spec/specs-go" @@ -55,23 +56,23 @@ type ContainerInspectState struct { // NetworkSettings holds information about the newtwork settings of the container type NetworkSettings struct { - Bridge string `json:"Bridge"` - SandboxID string `json:"SandboxID"` - HairpinMode bool `json:"HairpinMode"` - LinkLocalIPv6Address string `json:"LinkLocalIPv6Address"` - LinkLocalIPv6PrefixLen int `json:"LinkLocalIPv6PrefixLen"` - Ports map[string]struct{} `json:"Ports"` - SandboxKey string `json:"SandboxKey"` - SecondaryIPAddresses string `json:"SecondaryIPAddresses"` //idk type - SecondaryIPv6Addresses string `json:"SecondaryIPv6Addresses"` //idk type - EndpointID string `json:"EndpointID"` - Gateway string `json:"Gateway"` - GlobalIPv6Addresses string `json:"GlobalIPv6Addresses"` - GlobalIPv6PrefixLen int `json:"GlobalIPv6PrefixLen"` - IPAddress string `json:"IPAddress"` - IPPrefixLen int `json:"IPPrefixLen"` - IPv6Gateway string `json:"IPv6Gateway"` - MacAddress string `json:"MacAddress"` + Bridge string `json:"Bridge"` + SandboxID string `json:"SandboxID"` + HairpinMode bool `json:"HairpinMode"` + LinkLocalIPv6Address string `json:"LinkLocalIPv6Address"` + LinkLocalIPv6PrefixLen int `json:"LinkLocalIPv6PrefixLen"` + Ports []ocicni.PortMapping `json:"Ports"` + SandboxKey string `json:"SandboxKey"` + SecondaryIPAddresses []string `json:"SecondaryIPAddresses"` + SecondaryIPv6Addresses []string `json:"SecondaryIPv6Addresses"` + EndpointID string `json:"EndpointID"` + Gateway string `json:"Gateway"` + GlobalIPv6Addresses []string `json:"GlobalIPv6Addresses"` + GlobalIPv6PrefixLen int `json:"GlobalIPv6PrefixLen"` + IPAddress string `json:"IPAddress"` + IPPrefixLen int `json:"IPPrefixLen"` + IPv6Gateway string `json:"IPv6Gateway"` + MacAddress string `json:"MacAddress"` } // ImageData holds the inspect information of an image |