From 03da8b641df1c03aea6f9faa3ddc2b0df64ec68b Mon Sep 17 00:00:00 2001 From: Matthew Heon Date: Mon, 21 Oct 2019 14:08:41 -0400 Subject: Rewrite backend for remote 'volume inspect' We need to use the new Inspect() endpoint instead of trying to JSON the actual volume structs. Currently, the output seems completely nonsensical; it seems like we're JSONing the struct for the Varlink connection itself? This should restore sanity and match the format of remote and local inspect on volumes. Signed-off-by: Matthew Heon --- API.md | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'API.md') diff --git a/API.md b/API.md index a2a093bec..1cbdacb12 100755 --- a/API.md +++ b/API.md @@ -107,6 +107,8 @@ in the [API.md](https://github.com/containers/libpod/blob/master/API.md) file in [func InspectPod(name: string) string](#InspectPod) +[func InspectVolume(name: string) string](#InspectVolume) + [func KillContainer(name: string, signal: int) string](#KillContainer) [func KillPod(name: string, signal: int) string](#KillPod) @@ -804,6 +806,12 @@ method InspectPod(name: [string](https://godoc.org/builtin#string)) [string](htt InspectPod takes the name or ID of an image and returns a string representation of data associated with the pod. You must serialize the string into JSON to use it further. A [PodNotFound](#PodNotFound) error will be returned if the pod cannot be found. +### func InspectVolume +
+ +method InspectVolume(name: [string](https://godoc.org/builtin#string)) [string](https://godoc.org/builtin#string)
+InspectVolume inspects a single volume. Returns inspect JSON in the form of a +string. ### func KillContainer
-- cgit v1.2.3-54-g00ecf