diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2020-02-17 17:24:28 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-17 17:24:28 +0100 |
commit | 640b11f0028057ca2090d61c4e460c1afadb226c (patch) | |
tree | 797e7b98b6efe2b0bdb74e93146b53c798367308 /pkg/api/server/register_images.go | |
parent | ff0f8388138f7b66c4312db0e984f0bedcac2558 (diff) | |
parent | 93358ef915f639e52088b0f6aec52e77d3da0af7 (diff) | |
download | podman-640b11f0028057ca2090d61c4e460c1afadb226c.tar.gz podman-640b11f0028057ca2090d61c4e460c1afadb226c.tar.bz2 podman-640b11f0028057ca2090d61c4e460c1afadb226c.zip |
Merge pull request #5093 from openSUSE/image-tree
Refactor image tree for API usage
Diffstat (limited to 'pkg/api/server/register_images.go')
-rw-r--r-- | pkg/api/server/register_images.go | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/pkg/api/server/register_images.go b/pkg/api/server/register_images.go index f082c5fec..4706a7c69 100644 --- a/pkg/api/server/register_images.go +++ b/pkg/api/server/register_images.go @@ -578,6 +578,31 @@ func (s *APIServer) registerImagesHandlers(r *mux.Router) error { // 500: // $ref: '#/responses/InternalError' r.Handle(VersionedPath("/libpod/images/{name}/exists"), APIHandler(s.Context, libpod.ImageExists)) + // swagger:operation POST /libpod/images/{name}/tree libpod libpodImageTree + // --- + // tags: + // - images + // summary: Image tree + // description: Retrieve the image tree for the provided image name or ID + // parameters: + // - in: path + // name: name + // type: string + // required: true + // description: the name or ID of the container + // - in: query + // name: whatrequires + // type: boolean + // description: show all child images and layers of the specified image + // produces: + // - application/json + // responses: + // 200: + // $ref: '#/responses/LibpodImageTreeResponse' + // 401: + // $ref: '#/responses/NoSuchImage' + // 500: + // $ref: '#/responses/InternalError' r.Handle(VersionedPath("/libpod/images/{name}/tree"), APIHandler(s.Context, libpod.ImageTree)) // swagger:operation GET /libpod/images/{name}/history libpod libpodImageHistory // --- |