summaryrefslogtreecommitdiff
path: root/libpod
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-06-04 14:43:52 +0200
committerGitHub <noreply@github.com>2020-06-04 14:43:52 +0200
commit9d138724ab38842381fbc391734ea50d58161bf5 (patch)
tree3df62afcfc5db21d4e25df3156e1a766159d606e /libpod
parent08ce2c1b2f5d3338959476d0c0c0e6d36f7e3e43 (diff)
parentd023909c0be103f1b02f2ddac0b937fff2d4e4f0 (diff)
downloadpodman-9d138724ab38842381fbc391734ea50d58161bf5.tar.gz
podman-9d138724ab38842381fbc391734ea50d58161bf5.tar.bz2
podman-9d138724ab38842381fbc391734ea50d58161bf5.zip
Merge pull request #6486 from baude/v2infoaddsocket
add socket information to podman info
Diffstat (limited to 'libpod')
-rw-r--r--libpod/define/info.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/libpod/define/info.go b/libpod/define/info.go
index 906aa523f..f136936f7 100644
--- a/libpod/define/info.go
+++ b/libpod/define/info.go
@@ -27,6 +27,7 @@ type HostInfo struct {
MemTotal int64 `json:"memTotal"`
OCIRuntime *OCIRuntimeInfo `json:"ociRuntime"`
OS string `json:"os"`
+ RemoteSocket *RemoteSocket `json:"remoteSocket,omitempty"`
Rootless bool `json:"rootless"`
RuntimeInfo map[string]interface{} `json:"runtimeInfo,omitempty"`
Slirp4NetNS SlirpInfo `json:"slirp4netns,omitempty"`
@@ -36,6 +37,12 @@ type HostInfo struct {
Linkmode string `json:"linkmode"`
}
+// RemoteSocket describes information about the API socket
+type RemoteSocket struct {
+ Path string `json:"path,omitempty"`
+ Exists bool `json:"exists,omitempty"`
+}
+
// SlirpInfo describes the slirp exectuable that
// is being being used.
type SlirpInfo struct {