From 241326a9a8c20ad7f2bcf651416b836e7778e090 Mon Sep 17 00:00:00 2001 From: Brent Baude Date: Thu, 16 Apr 2020 12:25:26 -0500 Subject: Podman V2 birth remote podman v1 and replace with podman v2. Signed-off-by: Brent Baude --- pkg/adapter/info_remote.go | 64 ---------------------------------------------- 1 file changed, 64 deletions(-) delete mode 100644 pkg/adapter/info_remote.go (limited to 'pkg/adapter/info_remote.go') 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 -} -- cgit v1.2.3-54-g00ecf