diff options
author | Brent Baude <bbaude@redhat.com> | 2020-04-16 12:25:26 -0500 |
---|---|---|
committer | Brent Baude <bbaude@redhat.com> | 2020-04-16 15:53:58 -0500 |
commit | 241326a9a8c20ad7f2bcf651416b836e7778e090 (patch) | |
tree | 4001e8e47a022bb1b9bfbf2332c42e1aeb802f9e /pkg/adapter/info_remote.go | |
parent | 88c6fd06cd54fb9a8826306dfdf1a77e400de5de (diff) | |
download | podman-241326a9a8c20ad7f2bcf651416b836e7778e090.tar.gz podman-241326a9a8c20ad7f2bcf651416b836e7778e090.tar.bz2 podman-241326a9a8c20ad7f2bcf651416b836e7778e090.zip |
Podman V2 birth
remote podman v1 and replace with podman v2.
Signed-off-by: Brent Baude <bbaude@redhat.com>
Diffstat (limited to 'pkg/adapter/info_remote.go')
-rw-r--r-- | pkg/adapter/info_remote.go | 64 |
1 files changed, 0 insertions, 64 deletions
diff --git a/pkg/adapter/info_remote.go b/pkg/adapter/info_remote.go deleted file mode 100644 index 549b01f54..000000000 --- a/pkg/adapter/info_remote.go +++ /dev/null @@ -1,64 +0,0 @@ -// +build remoteclient - -package adapter - -import ( - "github.com/containers/libpod/libpod/define" - iopodman "github.com/containers/libpod/pkg/varlink" -) - -// Info returns information for the host system and its components -func (r RemoteRuntime) Info() (*define.Info, error) { - // TODO the varlink implementation for info should be updated to match the output for regular info - var ( - reply define.Info - ) - - info, err := iopodman.GetInfo().Call(r.Conn) - if err != nil { - return nil, err - } - hostInfo := define.HostInfo{ - Arch: info.Host.Arch, - BuildahVersion: info.Host.Buildah_version, - CPUs: int(info.Host.Cpus), - Distribution: define.DistributionInfo{ - Distribution: info.Host.Distribution.Distribution, - Version: info.Host.Distribution.Version, - }, - EventLogger: info.Host.Eventlogger, - Hostname: info.Host.Hostname, - Kernel: info.Host.Kernel, - MemFree: info.Host.Mem_free, - MemTotal: info.Host.Mem_total, - OS: info.Host.Os, - SwapFree: info.Host.Swap_free, - SwapTotal: info.Host.Swap_total, - Uptime: info.Host.Uptime, - } - storeInfo := define.StoreInfo{ - ContainerStore: define.ContainerStore{ - Number: int(info.Store.Containers), - }, - GraphDriverName: info.Store.Graph_driver_name, - GraphRoot: info.Store.Graph_root, - ImageStore: define.ImageStore{ - Number: int(info.Store.Images), - }, - RunRoot: info.Store.Run_root, - } - reply.Host = &hostInfo - reply.Store = &storeInfo - regs := make(map[string]interface{}) - if len(info.Registries.Search) > 0 { - regs["search"] = info.Registries.Search - } - if len(info.Registries.Blocked) > 0 { - regs["blocked"] = info.Registries.Blocked - } - if len(info.Registries.Insecure) > 0 { - regs["insecure"] = info.Registries.Insecure - } - reply.Registries = regs - return &reply, nil -} |