summaryrefslogtreecommitdiff
path: root/pkg/domain/infra/abi
diff options
context:
space:
mode:
authorJhon Honce <jhonce@redhat.com>2020-05-08 10:16:14 -0700
committerJhon Honce <jhonce@redhat.com>2020-05-08 15:57:26 -0700
commit931bd5ace6d6efa19e0b123d8d70b273ea79d5ab (patch)
treeb60a06da9fcc73f66be53eae6db86db8342f7fab /pkg/domain/infra/abi
parent5c7ac1ba7812a99e59251cf49f7fb2a9c2429e11 (diff)
downloadpodman-931bd5ace6d6efa19e0b123d8d70b273ea79d5ab.tar.gz
podman-931bd5ace6d6efa19e0b123d8d70b273ea79d5ab.tar.bz2
podman-931bd5ace6d6efa19e0b123d8d70b273ea79d5ab.zip
V2 Impliment tunnelled podman version
Signed-off-by: Jhon Honce <jhonce@redhat.com>
Diffstat (limited to 'pkg/domain/infra/abi')
-rw-r--r--pkg/domain/infra/abi/system.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/pkg/domain/infra/abi/system.go b/pkg/domain/infra/abi/system.go
index fc92da1b2..d701d65de 100644
--- a/pkg/domain/infra/abi/system.go
+++ b/pkg/domain/infra/abi/system.go
@@ -407,3 +407,13 @@ func (ic *ContainerEngine) Unshare(ctx context.Context, args []string) error {
cmd.Stderr = os.Stderr
return cmd.Run()
}
+
+func (ic ContainerEngine) Version(ctx context.Context) (*entities.SystemVersionReport, error) {
+ var report entities.SystemVersionReport
+ v, err := define.GetVersion()
+ if err != nil {
+ return nil, err
+ }
+ report.Client = &v
+ return &report, err
+}