summaryrefslogtreecommitdiff
path: root/pkg/domain/infra/abi
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-05-09 23:04:23 +0200
committerGitHub <noreply@github.com>2020-05-09 23:04:23 +0200
commit3ff96383f306cecfeed75986078144ad757e3d70 (patch)
tree301a71ee7621be9d6bfd1b77552c1574f5fc18d2 /pkg/domain/infra/abi
parent2a6487c4aaa312e9284d223540e971b109d0fcf2 (diff)
parent931bd5ace6d6efa19e0b123d8d70b273ea79d5ab (diff)
downloadpodman-3ff96383f306cecfeed75986078144ad757e3d70.tar.gz
podman-3ff96383f306cecfeed75986078144ad757e3d70.tar.bz2
podman-3ff96383f306cecfeed75986078144ad757e3d70.zip
Merge pull request #6148 from jwhonce/wip/version
V2 Implement tunnelled podman version
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
+}