diff options
author | Tom Deseyn <tom.deseyn@gmail.com> | 2021-01-27 13:48:16 +0100 |
---|---|---|
committer | Jhon Honce <jhonce@redhat.com> | 2021-04-05 13:56:51 -0700 |
commit | 1214b1a38b1877fecfdf232d8b3fc7f2a1dab9a2 (patch) | |
tree | 905979835298fb7e650fe5aa7b24993a7ff48649 /pkg/api/server/register_images.go | |
parent | 2b13c5d92aa64165aa08b4adc96d3324dc9988ec (diff) | |
download | podman-1214b1a38b1877fecfdf232d8b3fc7f2a1dab9a2.tar.gz podman-1214b1a38b1877fecfdf232d8b3fc7f2a1dab9a2.tar.bz2 podman-1214b1a38b1877fecfdf232d8b3fc7f2a1dab9a2.zip |
swagger: add operationIds that match with docker
Signed-off-by: Tom Deseyn <tom.deseyn@gmail.com>
Diffstat (limited to 'pkg/api/server/register_images.go')
-rw-r--r-- | pkg/api/server/register_images.go | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/pkg/api/server/register_images.go b/pkg/api/server/register_images.go index 423766bd8..9046cdd11 100644 --- a/pkg/api/server/register_images.go +++ b/pkg/api/server/register_images.go @@ -18,6 +18,7 @@ func (s *APIServer) registerImagesHandlers(r *mux.Router) error { // tags: // - images (compat) // summary: Create an image + // operationId: ImageCreate // description: Create an image by either pulling it from a registry or importing it. // produces: // - application/json @@ -61,6 +62,7 @@ func (s *APIServer) registerImagesHandlers(r *mux.Router) error { // tags: // - images (compat) // summary: List Images + // operationId: ImageList // description: Returns a list of images on the server. Note that it uses a different, smaller representation of an image than inspecting a single image. // parameters: // - name: all @@ -98,6 +100,7 @@ func (s *APIServer) registerImagesHandlers(r *mux.Router) error { // tags: // - images (compat) // summary: Import image + // operationId: ImageLoad // description: Load a set of images and tags into a repository. // parameters: // - in: query @@ -124,6 +127,7 @@ func (s *APIServer) registerImagesHandlers(r *mux.Router) error { // tags: // - images (compat) // summary: Prune unused images + // operationId: ImagePrune // description: Remove images from local storage that are not being used by a container // parameters: // - in: query @@ -151,6 +155,7 @@ func (s *APIServer) registerImagesHandlers(r *mux.Router) error { // tags: // - images (compat) // summary: Search images + // operationId: ImageSearch // description: Search registries for an image // parameters: // - in: query @@ -190,6 +195,7 @@ func (s *APIServer) registerImagesHandlers(r *mux.Router) error { // tags: // - images (compat) // summary: Remove Image + // operationId: ImageDelete // description: Delete an image from local storage // parameters: // - in: path @@ -224,6 +230,7 @@ func (s *APIServer) registerImagesHandlers(r *mux.Router) error { // tags: // - images (compat) // summary: Push Image + // operationId: ImagePush // description: Push an image to a container registry // parameters: // - in: path @@ -271,6 +278,7 @@ func (s *APIServer) registerImagesHandlers(r *mux.Router) error { // tags: // - images (compat) // summary: Export an image + // operationId: ImageGet // description: Export an image in tarball format // parameters: // - in: path @@ -296,6 +304,7 @@ func (s *APIServer) registerImagesHandlers(r *mux.Router) error { // tags: // - images (compat) // summary: Export several images + // operationId: ImageGetAll // description: Get a tarball containing all images and metadata for several image repositories // parameters: // - in: query @@ -321,6 +330,7 @@ func (s *APIServer) registerImagesHandlers(r *mux.Router) error { // tags: // - images (compat) // summary: History of an image + // operationId: ImageHistory // description: Return parent layers of an image. // parameters: // - in: path @@ -345,6 +355,7 @@ func (s *APIServer) registerImagesHandlers(r *mux.Router) error { // tags: // - images (compat) // summary: Inspect an image + // operationId: ImageInspect // description: Return low-level information about an image. // parameters: // - in: path @@ -369,6 +380,7 @@ func (s *APIServer) registerImagesHandlers(r *mux.Router) error { // tags: // - images (compat) // summary: Tag an image + // operationId: ImageTag // description: Tag an image so that it becomes part of a repository. // parameters: // - in: path @@ -405,6 +417,7 @@ func (s *APIServer) registerImagesHandlers(r *mux.Router) error { // tags: // - containers (compat) // summary: New Image + // operationId: ImageCommit // description: Create a new image from a container // parameters: // - in: query @@ -453,6 +466,7 @@ func (s *APIServer) registerImagesHandlers(r *mux.Router) error { // tags: // - images (compat) // summary: Create image + // operationId: ImageBuild // description: Build an image from the given Dockerfile(s) // parameters: // - in: query |