From 27baf9970e1267f4ad48692a4465e7b61310af4a Mon Sep 17 00:00:00 2001 From: Lars Karlitski Date: Mon, 4 Feb 2019 19:04:08 +0100 Subject: varlink: Simplify GetVersion() call Not having the `Version` wrapper type makes it easier for clients to work with the returned data. Signed-off-by: Lars Karlitski --- cmd/podman/varlink/io.podman.varlink | 22 +++++++++------------- 1 file changed, 9 insertions(+), 13 deletions(-) (limited to 'cmd') diff --git a/cmd/podman/varlink/io.podman.varlink b/cmd/podman/varlink/io.podman.varlink index 29c993dd6..51f0592dd 100644 --- a/cmd/podman/varlink/io.podman.varlink +++ b/cmd/podman/varlink/io.podman.varlink @@ -3,16 +3,6 @@ interface io.podman -# Version is the structure returned by GetVersion -type Version ( - version: string, - go_version: string, - git_commit: string, - built: string, # as RFC3339 - os_arch: string, - remote_api_version: int -) - # ContainerChanges describes the return struct for ListContainerChanges type ContainerChanges ( changed: []string, @@ -399,9 +389,15 @@ type Runlabel( opts: [string]string ) -# GetVersion returns a Version structure describing the libpod setup on their -# system. -method GetVersion() -> (version: Version) +# GetVersion returns version and build information of the podman service +method GetVersion() -> ( + version: string, + go_version: string, + git_commit: string, + built: string, # as RFC3339 + os_arch: string, + remote_api_version: int +) # GetInfo returns a [PodmanInfo](#PodmanInfo) struct that describes podman and its host such as storage stats, # build information of Podman, and system-wide registries. -- cgit v1.2.3-54-g00ecf