diff options
author | Jhon Honce <jhonce@redhat.com> | 2019-02-18 16:01:31 -0700 |
---|---|---|
committer | Jhon Honce <jhonce@redhat.com> | 2019-03-02 08:57:20 -0700 |
commit | 4d13a80fa46ce57e3c889934536320525338b3a4 (patch) | |
tree | 8d3d5bd4f0209aa8ce4e3371478e6edc305209e6 /API.md | |
parent | 9adcda73892fa0a33cbdf971ad97cf079e8e425f (diff) | |
download | podman-4d13a80fa46ce57e3c889934536320525338b3a4.tar.gz podman-4d13a80fa46ce57e3c889934536320525338b3a4.tar.bz2 podman-4d13a80fa46ce57e3c889934536320525338b3a4.zip |
Support podman-remote stop container(s)
* Clean up adapter code
* Add GetContainersByContext to Varlink API
* Add missing comments
* Restore save command
* Restore error type mapping when using varlink
Signed-off-by: Jhon Honce <jhonce@redhat.com>
Diffstat (limited to 'API.md')
-rwxr-xr-x | API.md | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -43,6 +43,8 @@ in the [API.md](https://github.com/containers/libpod/blob/master/API.md) file in [func GetContainerStats(name: string) ContainerStats](#GetContainerStats) +[func GetContainersByContext(all: bool, latest: bool, args: []string) []string](#GetContainersByContext) + [func GetImage(id: string) Image](#GetImage) [func GetInfo() PodmanInfo](#GetInfo) @@ -460,6 +462,13 @@ $ varlink call -m unix:/run/podman/io.podman/io.podman.GetContainerStats '{"name } } ~~~ +### <a name="GetContainersByContext"></a>func GetContainersByContext +<div style="background-color: #E8E8E8; padding: 15px; margin: 10px; border-radius: 10px;"> + +method GetContainersByContext(all: [bool](https://godoc.org/builtin#bool), latest: [bool](https://godoc.org/builtin#bool), args: [[]string](#[]string)) [[]string](#[]string)</div> +GetContainersByContext allows you to get a list of container ids depending on all, latest, or a list of +container names. The definition of latest container means the latest by creation date. In a multi- +user environment, results might differ from what you expect. ### <a name="GetImage"></a>func GetImage <div style="background-color: #E8E8E8; padding: 15px; margin: 10px; border-radius: 10px;"> |