diff options
author | Lars Karlitski <lars@karlitski.net> | 2019-02-04 20:08:34 +0100 |
---|---|---|
committer | Lars Karlitski <lars@karlitski.net> | 2019-02-12 14:48:19 +0100 |
commit | 5a325181709041ec01a4e60ed039bbd8cb7a20db (patch) | |
tree | 12b0640763b42ba1a1c4a1ca568b0cfff6b61e96 /cmd/podman | |
parent | 8a51b11058d4e5581d53177a1cee5e05aac57500 (diff) | |
download | podman-5a325181709041ec01a4e60ed039bbd8cb7a20db.tar.gz podman-5a325181709041ec01a4e60ed039bbd8cb7a20db.tar.bz2 podman-5a325181709041ec01a4e60ed039bbd8cb7a20db.zip |
varlink: Rename `ContainerInList` to `Container`
Container more clearly describes what the type represents.
Signed-off-by: Lars Karlitski <lars@karlitski.net>
Diffstat (limited to 'cmd/podman')
-rw-r--r-- | cmd/podman/varlink/io.podman.varlink | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/cmd/podman/varlink/io.podman.varlink b/cmd/podman/varlink/io.podman.varlink index 98e68f5dc..b53bc0788 100644 --- a/cmd/podman/varlink/io.podman.varlink +++ b/cmd/podman/varlink/io.podman.varlink @@ -56,8 +56,7 @@ type ImageSearch ( star_count: int ) -# ListContainerData is the returned struct for an individual container -type ListContainerData ( +type Container ( id: string, image: string, imageid: string, @@ -401,14 +400,15 @@ method GetVersion() -> ( # build information of Podman, and system-wide registries. method GetInfo() -> (info: PodmanInfo) -# ListContainers returns a list of containers in no particular order. There are -# returned as an array of ListContainerData structs. See also [GetContainer](#GetContainer). -method ListContainers() -> (containers: []ListContainerData) +# ListContainers returns information about all containers. +# See also [GetContainer](#GetContainer). +method ListContainers() -> (containers: []Container) -# GetContainer takes a name or ID of a container and returns single ListContainerData -# structure. A [ContainerNotFound](#ContainerNotFound) error will be returned if the container cannot be found. -# See also [ListContainers](ListContainers) and [InspectContainer](#InspectContainer). -method GetContainer(name: string) -> (container: ListContainerData) +# GetContainer returns information about a single container. If a container +# with the given id doesn't exist, a [ContainerNotFound](#ContainerNotFound) +# error will be returned. See also [ListContainers](ListContainers) and +# [InspectContainer](#InspectContainer). +method GetContainer(id: string) -> (container: Container) # CreateContainer creates a new container from an image. It uses a [Create](#Create) type for input. The minimum # input required for CreateContainer is an image name. If the image name is not found, an [ImageNotFound](#ImageNotFound) @@ -1050,7 +1050,7 @@ method VolumeRemove(options: VolumeRemoveOpts) -> (volumeNames: []string) error ImageNotFound (id: string) # ContainerNotFound means the container could not be found by the provided name or ID in local storage. -error ContainerNotFound (name: string) +error ContainerNotFound (id: string) # NoContainerRunning means none of the containers requested are running in a command that requires a running container. error NoContainerRunning () |