mirror of
https://github.com/containers/podman.git
synced 2025-06-21 17:38:12 +08:00
swagger: add operationIds that match with docker
Signed-off-by: Tom Deseyn <tom.deseyn@gmail.com>
This commit is contained in:
@ -11,6 +11,7 @@ func (s *APIServer) registerArchiveHandlers(r *mux.Router) error {
|
|||||||
// swagger:operation PUT /containers/{name}/archive compat putArchive
|
// swagger:operation PUT /containers/{name}/archive compat putArchive
|
||||||
// ---
|
// ---
|
||||||
// summary: Put files into a container
|
// summary: Put files into a container
|
||||||
|
// operationId: PutContainerArchive
|
||||||
// description: Put a tar archive of files into a container
|
// description: Put a tar archive of files into a container
|
||||||
// tags:
|
// tags:
|
||||||
// - containers (compat)
|
// - containers (compat)
|
||||||
@ -55,6 +56,7 @@ func (s *APIServer) registerArchiveHandlers(r *mux.Router) error {
|
|||||||
// swagger:operation GET /containers/{name}/archive compat getArchive
|
// swagger:operation GET /containers/{name}/archive compat getArchive
|
||||||
// ---
|
// ---
|
||||||
// summary: Get files from a container
|
// summary: Get files from a container
|
||||||
|
// operationId: ContainerArchive
|
||||||
// description: Get a tar archive of files from a container
|
// description: Get a tar archive of files from a container
|
||||||
// tags:
|
// tags:
|
||||||
// - containers (compat)
|
// - containers (compat)
|
||||||
|
@ -12,6 +12,7 @@ func (s *APIServer) registerContainersHandlers(r *mux.Router) error {
|
|||||||
// swagger:operation POST /containers/create compat createContainer
|
// swagger:operation POST /containers/create compat createContainer
|
||||||
// ---
|
// ---
|
||||||
// summary: Create a container
|
// summary: Create a container
|
||||||
|
// operationId: ContainerCreate
|
||||||
// tags:
|
// tags:
|
||||||
// - containers (compat)
|
// - containers (compat)
|
||||||
// produces:
|
// produces:
|
||||||
@ -40,6 +41,7 @@ func (s *APIServer) registerContainersHandlers(r *mux.Router) error {
|
|||||||
// tags:
|
// tags:
|
||||||
// - containers (compat)
|
// - containers (compat)
|
||||||
// summary: List containers
|
// summary: List containers
|
||||||
|
// operationId: ContainerList
|
||||||
// description: Returns a list of containers
|
// description: Returns a list of containers
|
||||||
// parameters:
|
// parameters:
|
||||||
// - in: query
|
// - in: query
|
||||||
@ -97,6 +99,7 @@ func (s *APIServer) registerContainersHandlers(r *mux.Router) error {
|
|||||||
// tags:
|
// tags:
|
||||||
// - containers (compat)
|
// - containers (compat)
|
||||||
// summary: Delete stopped containers
|
// summary: Delete stopped containers
|
||||||
|
// operationId: ContainerPrune
|
||||||
// description: Remove containers not in use
|
// description: Remove containers not in use
|
||||||
// parameters:
|
// parameters:
|
||||||
// - in: query
|
// - in: query
|
||||||
@ -121,6 +124,7 @@ func (s *APIServer) registerContainersHandlers(r *mux.Router) error {
|
|||||||
// tags:
|
// tags:
|
||||||
// - containers (compat)
|
// - containers (compat)
|
||||||
// summary: Remove a container
|
// summary: Remove a container
|
||||||
|
// operationId: ContainerDelete
|
||||||
// parameters:
|
// parameters:
|
||||||
// - in: path
|
// - in: path
|
||||||
// name: name
|
// name: name
|
||||||
@ -162,6 +166,7 @@ func (s *APIServer) registerContainersHandlers(r *mux.Router) error {
|
|||||||
// tags:
|
// tags:
|
||||||
// - containers (compat)
|
// - containers (compat)
|
||||||
// summary: Inspect container
|
// summary: Inspect container
|
||||||
|
// operationId: ContainerInspect
|
||||||
// description: Return low-level information about a container.
|
// description: Return low-level information about a container.
|
||||||
// parameters:
|
// parameters:
|
||||||
// - in: path
|
// - in: path
|
||||||
@ -191,6 +196,7 @@ func (s *APIServer) registerContainersHandlers(r *mux.Router) error {
|
|||||||
// tags:
|
// tags:
|
||||||
// - containers (compat)
|
// - containers (compat)
|
||||||
// summary: Kill container
|
// summary: Kill container
|
||||||
|
// operationId: ContainerKill
|
||||||
// description: Signal to send to the container as an integer or string (e.g. SIGINT)
|
// description: Signal to send to the container as an integer or string (e.g. SIGINT)
|
||||||
// parameters:
|
// parameters:
|
||||||
// - in: path
|
// - in: path
|
||||||
@ -228,6 +234,7 @@ func (s *APIServer) registerContainersHandlers(r *mux.Router) error {
|
|||||||
// tags:
|
// tags:
|
||||||
// - containers (compat)
|
// - containers (compat)
|
||||||
// summary: Get container logs
|
// summary: Get container logs
|
||||||
|
// operationId: ContainerLogs
|
||||||
// description: Get stdout and stderr logs from a container.
|
// description: Get stdout and stderr logs from a container.
|
||||||
// parameters:
|
// parameters:
|
||||||
// - in: path
|
// - in: path
|
||||||
@ -282,6 +289,7 @@ func (s *APIServer) registerContainersHandlers(r *mux.Router) error {
|
|||||||
// tags:
|
// tags:
|
||||||
// - containers (compat)
|
// - containers (compat)
|
||||||
// summary: Pause container
|
// summary: Pause container
|
||||||
|
// operationId: ContainerPause
|
||||||
// description: Use the cgroups freezer to suspend all processes in a container.
|
// description: Use the cgroups freezer to suspend all processes in a container.
|
||||||
// parameters:
|
// parameters:
|
||||||
// - in: path
|
// - in: path
|
||||||
@ -306,6 +314,7 @@ func (s *APIServer) registerContainersHandlers(r *mux.Router) error {
|
|||||||
// tags:
|
// tags:
|
||||||
// - containers (compat)
|
// - containers (compat)
|
||||||
// summary: Restart container
|
// summary: Restart container
|
||||||
|
// operationId: ContainerRestart
|
||||||
// parameters:
|
// parameters:
|
||||||
// - in: path
|
// - in: path
|
||||||
// name: name
|
// name: name
|
||||||
@ -333,6 +342,7 @@ func (s *APIServer) registerContainersHandlers(r *mux.Router) error {
|
|||||||
// tags:
|
// tags:
|
||||||
// - containers (compat)
|
// - containers (compat)
|
||||||
// summary: Start a container
|
// summary: Start a container
|
||||||
|
// operationId: ContainerStart
|
||||||
// parameters:
|
// parameters:
|
||||||
// - in: path
|
// - in: path
|
||||||
// name: name
|
// name: name
|
||||||
@ -363,6 +373,7 @@ func (s *APIServer) registerContainersHandlers(r *mux.Router) error {
|
|||||||
// tags:
|
// tags:
|
||||||
// - containers (compat)
|
// - containers (compat)
|
||||||
// summary: Get stats for a container
|
// summary: Get stats for a container
|
||||||
|
// operationId: ContainerStats
|
||||||
// description: This returns a live stream of a container’s resource usage statistics.
|
// description: This returns a live stream of a container’s resource usage statistics.
|
||||||
// parameters:
|
// parameters:
|
||||||
// - in: path
|
// - in: path
|
||||||
@ -392,6 +403,7 @@ func (s *APIServer) registerContainersHandlers(r *mux.Router) error {
|
|||||||
// tags:
|
// tags:
|
||||||
// - containers (compat)
|
// - containers (compat)
|
||||||
// summary: Stop a container
|
// summary: Stop a container
|
||||||
|
// operationId: ContainerStop
|
||||||
// description: Stop a container
|
// description: Stop a container
|
||||||
// parameters:
|
// parameters:
|
||||||
// - in: path
|
// - in: path
|
||||||
@ -422,6 +434,7 @@ func (s *APIServer) registerContainersHandlers(r *mux.Router) error {
|
|||||||
// tags:
|
// tags:
|
||||||
// - containers (compat)
|
// - containers (compat)
|
||||||
// summary: List processes running inside a container
|
// summary: List processes running inside a container
|
||||||
|
// operationId: ContainerTop
|
||||||
// parameters:
|
// parameters:
|
||||||
// - in: path
|
// - in: path
|
||||||
// name: name
|
// name: name
|
||||||
@ -449,6 +462,7 @@ func (s *APIServer) registerContainersHandlers(r *mux.Router) error {
|
|||||||
// tags:
|
// tags:
|
||||||
// - containers (compat)
|
// - containers (compat)
|
||||||
// summary: Unpause container
|
// summary: Unpause container
|
||||||
|
// operationId: ContainerUnpause
|
||||||
// description: Resume a paused container
|
// description: Resume a paused container
|
||||||
// parameters:
|
// parameters:
|
||||||
// - in: path
|
// - in: path
|
||||||
@ -473,6 +487,7 @@ func (s *APIServer) registerContainersHandlers(r *mux.Router) error {
|
|||||||
// tags:
|
// tags:
|
||||||
// - containers (compat)
|
// - containers (compat)
|
||||||
// summary: Wait on a container
|
// summary: Wait on a container
|
||||||
|
// operationId: ContainerWait
|
||||||
// description: Block until a container stops or given condition is met.
|
// description: Block until a container stops or given condition is met.
|
||||||
// parameters:
|
// parameters:
|
||||||
// - in: path
|
// - in: path
|
||||||
@ -513,6 +528,7 @@ func (s *APIServer) registerContainersHandlers(r *mux.Router) error {
|
|||||||
// tags:
|
// tags:
|
||||||
// - containers (compat)
|
// - containers (compat)
|
||||||
// summary: Attach to a container
|
// summary: Attach to a container
|
||||||
|
// operationId: ContainerAttach
|
||||||
// description: Hijacks the connection to forward the container's standard streams to the client.
|
// description: Hijacks the connection to forward the container's standard streams to the client.
|
||||||
// parameters:
|
// parameters:
|
||||||
// - in: path
|
// - in: path
|
||||||
@ -570,6 +586,7 @@ func (s *APIServer) registerContainersHandlers(r *mux.Router) error {
|
|||||||
// tags:
|
// tags:
|
||||||
// - containers (compat)
|
// - containers (compat)
|
||||||
// summary: Resize a container's TTY
|
// summary: Resize a container's TTY
|
||||||
|
// operationId: ContainerResize
|
||||||
// description: Resize the terminal attached to a container (for use with Attach).
|
// description: Resize the terminal attached to a container (for use with Attach).
|
||||||
// parameters:
|
// parameters:
|
||||||
// - in: path
|
// - in: path
|
||||||
@ -609,6 +626,7 @@ func (s *APIServer) registerContainersHandlers(r *mux.Router) error {
|
|||||||
// tags:
|
// tags:
|
||||||
// - containers (compat)
|
// - containers (compat)
|
||||||
// summary: Export a container
|
// summary: Export a container
|
||||||
|
// operationId: ContainerExport
|
||||||
// description: Export the contents of a container as a tarball.
|
// description: Export the contents of a container as a tarball.
|
||||||
// parameters:
|
// parameters:
|
||||||
// - in: path
|
// - in: path
|
||||||
@ -632,6 +650,7 @@ func (s *APIServer) registerContainersHandlers(r *mux.Router) error {
|
|||||||
// tags:
|
// tags:
|
||||||
// - containers (compat)
|
// - containers (compat)
|
||||||
// summary: Rename an existing container
|
// summary: Rename an existing container
|
||||||
|
// operationId: ContainerRename
|
||||||
// description: Change the name of an existing container.
|
// description: Change the name of an existing container.
|
||||||
// parameters:
|
// parameters:
|
||||||
// - in: path
|
// - in: path
|
||||||
@ -1475,6 +1494,7 @@ func (s *APIServer) registerContainersHandlers(r *mux.Router) error {
|
|||||||
// - containers
|
// - containers
|
||||||
// - containers (compat)
|
// - containers (compat)
|
||||||
// summary: Report on changes to container's filesystem; adds, deletes or modifications.
|
// summary: Report on changes to container's filesystem; adds, deletes or modifications.
|
||||||
|
// operationId: ContainerChanges
|
||||||
// description: |
|
// description: |
|
||||||
// Returns which files in a container's filesystem have been added, deleted, or modified. The Kind of modification can be one of:
|
// Returns which files in a container's filesystem have been added, deleted, or modified. The Kind of modification can be one of:
|
||||||
//
|
//
|
||||||
|
@ -13,6 +13,7 @@ func (s *APIServer) registerEventsHandlers(r *mux.Router) error {
|
|||||||
// tags:
|
// tags:
|
||||||
// - system (compat)
|
// - system (compat)
|
||||||
// summary: Get events
|
// summary: Get events
|
||||||
|
// operationId: SystemEvents
|
||||||
// description: Returns events filtered on query parameters
|
// description: Returns events filtered on query parameters
|
||||||
// produces:
|
// produces:
|
||||||
// - application/json
|
// - application/json
|
||||||
|
@ -13,6 +13,7 @@ func (s *APIServer) registerExecHandlers(r *mux.Router) error {
|
|||||||
// tags:
|
// tags:
|
||||||
// - exec (compat)
|
// - exec (compat)
|
||||||
// summary: Create an exec instance
|
// summary: Create an exec instance
|
||||||
|
// operationId: ContainerExec
|
||||||
// description: Create an exec session to run a command inside a running container. Exec sessions will be automatically removed 5 minutes after they exit.
|
// description: Create an exec session to run a command inside a running container. Exec sessions will be automatically removed 5 minutes after they exit.
|
||||||
// parameters:
|
// parameters:
|
||||||
// - in: path
|
// - in: path
|
||||||
@ -82,6 +83,7 @@ func (s *APIServer) registerExecHandlers(r *mux.Router) error {
|
|||||||
// tags:
|
// tags:
|
||||||
// - exec (compat)
|
// - exec (compat)
|
||||||
// summary: Start an exec instance
|
// summary: Start an exec instance
|
||||||
|
// operationId: ExecStart
|
||||||
// description: Starts a previously set up exec instance. If detach is true, this endpoint returns immediately after starting the command. Otherwise, it sets up an interactive session with the command.
|
// description: Starts a previously set up exec instance. If detach is true, this endpoint returns immediately after starting the command. Otherwise, it sets up an interactive session with the command.
|
||||||
// parameters:
|
// parameters:
|
||||||
// - in: path
|
// - in: path
|
||||||
@ -120,6 +122,7 @@ func (s *APIServer) registerExecHandlers(r *mux.Router) error {
|
|||||||
// tags:
|
// tags:
|
||||||
// - exec (compat)
|
// - exec (compat)
|
||||||
// summary: Resize an exec instance
|
// summary: Resize an exec instance
|
||||||
|
// operationId: ExecResize
|
||||||
// description: |
|
// description: |
|
||||||
// Resize the TTY session used by an exec instance. This endpoint only works if tty was specified as part of creating and starting the exec instance.
|
// Resize the TTY session used by an exec instance. This endpoint only works if tty was specified as part of creating and starting the exec instance.
|
||||||
// parameters:
|
// parameters:
|
||||||
@ -158,6 +161,7 @@ func (s *APIServer) registerExecHandlers(r *mux.Router) error {
|
|||||||
// tags:
|
// tags:
|
||||||
// - exec (compat)
|
// - exec (compat)
|
||||||
// summary: Inspect an exec instance
|
// summary: Inspect an exec instance
|
||||||
|
// operationId: ExecInspect
|
||||||
// description: Return low-level information about an exec instance.
|
// description: Return low-level information about an exec instance.
|
||||||
// parameters:
|
// parameters:
|
||||||
// - in: path
|
// - in: path
|
||||||
|
@ -18,6 +18,7 @@ func (s *APIServer) registerImagesHandlers(r *mux.Router) error {
|
|||||||
// tags:
|
// tags:
|
||||||
// - images (compat)
|
// - images (compat)
|
||||||
// summary: Create an image
|
// summary: Create an image
|
||||||
|
// operationId: ImageCreate
|
||||||
// description: Create an image by either pulling it from a registry or importing it.
|
// description: Create an image by either pulling it from a registry or importing it.
|
||||||
// produces:
|
// produces:
|
||||||
// - application/json
|
// - application/json
|
||||||
@ -61,6 +62,7 @@ func (s *APIServer) registerImagesHandlers(r *mux.Router) error {
|
|||||||
// tags:
|
// tags:
|
||||||
// - images (compat)
|
// - images (compat)
|
||||||
// summary: List Images
|
// 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.
|
// 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:
|
// parameters:
|
||||||
// - name: all
|
// - name: all
|
||||||
@ -98,6 +100,7 @@ func (s *APIServer) registerImagesHandlers(r *mux.Router) error {
|
|||||||
// tags:
|
// tags:
|
||||||
// - images (compat)
|
// - images (compat)
|
||||||
// summary: Import image
|
// summary: Import image
|
||||||
|
// operationId: ImageLoad
|
||||||
// description: Load a set of images and tags into a repository.
|
// description: Load a set of images and tags into a repository.
|
||||||
// parameters:
|
// parameters:
|
||||||
// - in: query
|
// - in: query
|
||||||
@ -124,6 +127,7 @@ func (s *APIServer) registerImagesHandlers(r *mux.Router) error {
|
|||||||
// tags:
|
// tags:
|
||||||
// - images (compat)
|
// - images (compat)
|
||||||
// summary: Prune unused images
|
// summary: Prune unused images
|
||||||
|
// operationId: ImagePrune
|
||||||
// description: Remove images from local storage that are not being used by a container
|
// description: Remove images from local storage that are not being used by a container
|
||||||
// parameters:
|
// parameters:
|
||||||
// - in: query
|
// - in: query
|
||||||
@ -151,6 +155,7 @@ func (s *APIServer) registerImagesHandlers(r *mux.Router) error {
|
|||||||
// tags:
|
// tags:
|
||||||
// - images (compat)
|
// - images (compat)
|
||||||
// summary: Search images
|
// summary: Search images
|
||||||
|
// operationId: ImageSearch
|
||||||
// description: Search registries for an image
|
// description: Search registries for an image
|
||||||
// parameters:
|
// parameters:
|
||||||
// - in: query
|
// - in: query
|
||||||
@ -190,6 +195,7 @@ func (s *APIServer) registerImagesHandlers(r *mux.Router) error {
|
|||||||
// tags:
|
// tags:
|
||||||
// - images (compat)
|
// - images (compat)
|
||||||
// summary: Remove Image
|
// summary: Remove Image
|
||||||
|
// operationId: ImageDelete
|
||||||
// description: Delete an image from local storage
|
// description: Delete an image from local storage
|
||||||
// parameters:
|
// parameters:
|
||||||
// - in: path
|
// - in: path
|
||||||
@ -224,6 +230,7 @@ func (s *APIServer) registerImagesHandlers(r *mux.Router) error {
|
|||||||
// tags:
|
// tags:
|
||||||
// - images (compat)
|
// - images (compat)
|
||||||
// summary: Push Image
|
// summary: Push Image
|
||||||
|
// operationId: ImagePush
|
||||||
// description: Push an image to a container registry
|
// description: Push an image to a container registry
|
||||||
// parameters:
|
// parameters:
|
||||||
// - in: path
|
// - in: path
|
||||||
@ -271,6 +278,7 @@ func (s *APIServer) registerImagesHandlers(r *mux.Router) error {
|
|||||||
// tags:
|
// tags:
|
||||||
// - images (compat)
|
// - images (compat)
|
||||||
// summary: Export an image
|
// summary: Export an image
|
||||||
|
// operationId: ImageGet
|
||||||
// description: Export an image in tarball format
|
// description: Export an image in tarball format
|
||||||
// parameters:
|
// parameters:
|
||||||
// - in: path
|
// - in: path
|
||||||
@ -296,6 +304,7 @@ func (s *APIServer) registerImagesHandlers(r *mux.Router) error {
|
|||||||
// tags:
|
// tags:
|
||||||
// - images (compat)
|
// - images (compat)
|
||||||
// summary: Export several images
|
// summary: Export several images
|
||||||
|
// operationId: ImageGetAll
|
||||||
// description: Get a tarball containing all images and metadata for several image repositories
|
// description: Get a tarball containing all images and metadata for several image repositories
|
||||||
// parameters:
|
// parameters:
|
||||||
// - in: query
|
// - in: query
|
||||||
@ -321,6 +330,7 @@ func (s *APIServer) registerImagesHandlers(r *mux.Router) error {
|
|||||||
// tags:
|
// tags:
|
||||||
// - images (compat)
|
// - images (compat)
|
||||||
// summary: History of an image
|
// summary: History of an image
|
||||||
|
// operationId: ImageHistory
|
||||||
// description: Return parent layers of an image.
|
// description: Return parent layers of an image.
|
||||||
// parameters:
|
// parameters:
|
||||||
// - in: path
|
// - in: path
|
||||||
@ -345,6 +355,7 @@ func (s *APIServer) registerImagesHandlers(r *mux.Router) error {
|
|||||||
// tags:
|
// tags:
|
||||||
// - images (compat)
|
// - images (compat)
|
||||||
// summary: Inspect an image
|
// summary: Inspect an image
|
||||||
|
// operationId: ImageInspect
|
||||||
// description: Return low-level information about an image.
|
// description: Return low-level information about an image.
|
||||||
// parameters:
|
// parameters:
|
||||||
// - in: path
|
// - in: path
|
||||||
@ -369,6 +380,7 @@ func (s *APIServer) registerImagesHandlers(r *mux.Router) error {
|
|||||||
// tags:
|
// tags:
|
||||||
// - images (compat)
|
// - images (compat)
|
||||||
// summary: Tag an image
|
// summary: Tag an image
|
||||||
|
// operationId: ImageTag
|
||||||
// description: Tag an image so that it becomes part of a repository.
|
// description: Tag an image so that it becomes part of a repository.
|
||||||
// parameters:
|
// parameters:
|
||||||
// - in: path
|
// - in: path
|
||||||
@ -405,6 +417,7 @@ func (s *APIServer) registerImagesHandlers(r *mux.Router) error {
|
|||||||
// tags:
|
// tags:
|
||||||
// - containers (compat)
|
// - containers (compat)
|
||||||
// summary: New Image
|
// summary: New Image
|
||||||
|
// operationId: ImageCommit
|
||||||
// description: Create a new image from a container
|
// description: Create a new image from a container
|
||||||
// parameters:
|
// parameters:
|
||||||
// - in: query
|
// - in: query
|
||||||
@ -453,6 +466,7 @@ func (s *APIServer) registerImagesHandlers(r *mux.Router) error {
|
|||||||
// tags:
|
// tags:
|
||||||
// - images (compat)
|
// - images (compat)
|
||||||
// summary: Create image
|
// summary: Create image
|
||||||
|
// operationId: ImageBuild
|
||||||
// description: Build an image from the given Dockerfile(s)
|
// description: Build an image from the given Dockerfile(s)
|
||||||
// parameters:
|
// parameters:
|
||||||
// - in: query
|
// - in: query
|
||||||
|
@ -14,6 +14,7 @@ func (s *APIServer) registerInfoHandlers(r *mux.Router) error {
|
|||||||
// tags:
|
// tags:
|
||||||
// - system (compat)
|
// - system (compat)
|
||||||
// summary: Get info
|
// summary: Get info
|
||||||
|
// operationId: SystemInfo
|
||||||
// description: Returns information on the system and libpod configuration
|
// description: Returns information on the system and libpod configuration
|
||||||
// produces:
|
// produces:
|
||||||
// - application/json
|
// - application/json
|
||||||
|
@ -9,11 +9,26 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func (s *APIServer) registerNetworkHandlers(r *mux.Router) error {
|
func (s *APIServer) registerNetworkHandlers(r *mux.Router) error {
|
||||||
|
// swagger:operation POST /networks/prune compat compatPruneNetwork
|
||||||
|
// ---
|
||||||
|
// tags:
|
||||||
|
// - networks (compat)
|
||||||
|
// Summary: Delete unused networks
|
||||||
|
// operationId: NetworkPrune
|
||||||
|
// description: Not supported
|
||||||
|
// produces:
|
||||||
|
// - application/json
|
||||||
|
// responses:
|
||||||
|
// 404:
|
||||||
|
// $ref: "#/responses/NoSuchNetwork"
|
||||||
|
r.HandleFunc(VersionedPath("/networks/prune"), compat.UnsupportedHandler).Methods(http.MethodPost)
|
||||||
|
r.HandleFunc("/networks/prune", compat.UnsupportedHandler).Methods(http.MethodPost)
|
||||||
// swagger:operation DELETE /networks/{name} compat compatRemoveNetwork
|
// swagger:operation DELETE /networks/{name} compat compatRemoveNetwork
|
||||||
// ---
|
// ---
|
||||||
// tags:
|
// tags:
|
||||||
// - networks (compat)
|
// - networks (compat)
|
||||||
// summary: Remove a network
|
// summary: Remove a network
|
||||||
|
// operationId: NetworkDelete
|
||||||
// description: Remove a network
|
// description: Remove a network
|
||||||
// parameters:
|
// parameters:
|
||||||
// - in: path
|
// - in: path
|
||||||
@ -37,6 +52,7 @@ func (s *APIServer) registerNetworkHandlers(r *mux.Router) error {
|
|||||||
// tags:
|
// tags:
|
||||||
// - networks (compat)
|
// - networks (compat)
|
||||||
// summary: Inspect a network
|
// summary: Inspect a network
|
||||||
|
// operationId: NetworkInspect
|
||||||
// description: Display low level configuration network
|
// description: Display low level configuration network
|
||||||
// parameters:
|
// parameters:
|
||||||
// - in: path
|
// - in: path
|
||||||
@ -60,6 +76,7 @@ func (s *APIServer) registerNetworkHandlers(r *mux.Router) error {
|
|||||||
// tags:
|
// tags:
|
||||||
// - networks (compat)
|
// - networks (compat)
|
||||||
// summary: List networks
|
// summary: List networks
|
||||||
|
// operationId: NetworkList
|
||||||
// description: Display summary of network configurations
|
// description: Display summary of network configurations
|
||||||
// parameters:
|
// parameters:
|
||||||
// - in: query
|
// - in: query
|
||||||
@ -85,6 +102,7 @@ func (s *APIServer) registerNetworkHandlers(r *mux.Router) error {
|
|||||||
// tags:
|
// tags:
|
||||||
// - networks (compat)
|
// - networks (compat)
|
||||||
// summary: Create network
|
// summary: Create network
|
||||||
|
// operationId: NetworkCreate
|
||||||
// description: Create a network configuration
|
// description: Create a network configuration
|
||||||
// produces:
|
// produces:
|
||||||
// - application/json
|
// - application/json
|
||||||
@ -108,6 +126,7 @@ func (s *APIServer) registerNetworkHandlers(r *mux.Router) error {
|
|||||||
// tags:
|
// tags:
|
||||||
// - networks (compat)
|
// - networks (compat)
|
||||||
// summary: Connect container to network
|
// summary: Connect container to network
|
||||||
|
// operationId: NetworkConnect
|
||||||
// description: Connect a container to a network. This endpoint is current a no-op
|
// description: Connect a container to a network. This endpoint is current a no-op
|
||||||
// produces:
|
// produces:
|
||||||
// - application/json
|
// - application/json
|
||||||
@ -136,6 +155,7 @@ func (s *APIServer) registerNetworkHandlers(r *mux.Router) error {
|
|||||||
// tags:
|
// tags:
|
||||||
// - networks (compat)
|
// - networks (compat)
|
||||||
// summary: Disconnect container from network
|
// summary: Disconnect container from network
|
||||||
|
// operationId: NetworkDisconnect
|
||||||
// description: Disconnect a container from a network. This endpoint is current a no-op
|
// description: Disconnect a container from a network. This endpoint is current a no-op
|
||||||
// produces:
|
// produces:
|
||||||
// - application/json
|
// - application/json
|
||||||
@ -219,6 +239,28 @@ func (s *APIServer) registerNetworkHandlers(r *mux.Router) error {
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
r.HandleFunc(VersionedPath("/libpod/networks/{name}"), s.APIHandler(libpod.RemoveNetwork)).Methods(http.MethodDelete)
|
r.HandleFunc(VersionedPath("/libpod/networks/{name}"), s.APIHandler(libpod.RemoveNetwork)).Methods(http.MethodDelete)
|
||||||
|
// swagger:operation GET /libpod/networks/{name}/json libpod libpodInspectNetwork
|
||||||
|
// ---
|
||||||
|
// tags:
|
||||||
|
// - networks
|
||||||
|
// summary: Inspect a network
|
||||||
|
// description: Display low level configuration for a CNI network
|
||||||
|
// parameters:
|
||||||
|
// - in: path
|
||||||
|
// name: name
|
||||||
|
// type: string
|
||||||
|
// required: true
|
||||||
|
// description: the name of the network
|
||||||
|
// produces:
|
||||||
|
// - application/json
|
||||||
|
// responses:
|
||||||
|
// 200:
|
||||||
|
// $ref: "#/responses/NetworkInspectReport"
|
||||||
|
// 404:
|
||||||
|
// $ref: "#/responses/NoSuchNetwork"
|
||||||
|
// 500:
|
||||||
|
// $ref: "#/responses/InternalError"
|
||||||
|
r.HandleFunc(VersionedPath("/libpod/networks/{name}/json"), s.APIHandler(libpod.InspectNetwork)).Methods(http.MethodGet)
|
||||||
// swagger:operation GET /libpod/networks/{name}/exists libpod libpodExistsNetwork
|
// swagger:operation GET /libpod/networks/{name}/exists libpod libpodExistsNetwork
|
||||||
// ---
|
// ---
|
||||||
// tags:
|
// tags:
|
||||||
|
@ -11,6 +11,7 @@ func (s *APIServer) registerVersionHandlers(r *mux.Router) error {
|
|||||||
// swagger:operation GET /version compat CompatSystemVersion
|
// swagger:operation GET /version compat CompatSystemVersion
|
||||||
// ---
|
// ---
|
||||||
// summary: Component Version information
|
// summary: Component Version information
|
||||||
|
// operationId: SystemVersion
|
||||||
// tags:
|
// tags:
|
||||||
// - system (compat)
|
// - system (compat)
|
||||||
// produces:
|
// produces:
|
||||||
|
@ -145,6 +145,7 @@ func (s *APIServer) registerVolumeHandlers(r *mux.Router) error {
|
|||||||
// tags:
|
// tags:
|
||||||
// - volumes (compat)
|
// - volumes (compat)
|
||||||
// summary: List volumes
|
// summary: List volumes
|
||||||
|
// operationId: VolumeList
|
||||||
// description: Returns a list of volume
|
// description: Returns a list of volume
|
||||||
// produces:
|
// produces:
|
||||||
// - application/json
|
// - application/json
|
||||||
@ -173,6 +174,7 @@ func (s *APIServer) registerVolumeHandlers(r *mux.Router) error {
|
|||||||
// tags:
|
// tags:
|
||||||
// - volumes (compat)
|
// - volumes (compat)
|
||||||
// summary: Create a volume
|
// summary: Create a volume
|
||||||
|
// operationId: VolumeCreate
|
||||||
// parameters:
|
// parameters:
|
||||||
// - in: body
|
// - in: body
|
||||||
// name: create
|
// name: create
|
||||||
@ -196,6 +198,7 @@ func (s *APIServer) registerVolumeHandlers(r *mux.Router) error {
|
|||||||
// tags:
|
// tags:
|
||||||
// - volumes (compat)
|
// - volumes (compat)
|
||||||
// summary: Inspect volume
|
// summary: Inspect volume
|
||||||
|
// operationId: VolumeInspect
|
||||||
// parameters:
|
// parameters:
|
||||||
// - in: path
|
// - in: path
|
||||||
// name: name
|
// name: name
|
||||||
@ -219,6 +222,7 @@ func (s *APIServer) registerVolumeHandlers(r *mux.Router) error {
|
|||||||
// tags:
|
// tags:
|
||||||
// - volumes (compat)
|
// - volumes (compat)
|
||||||
// summary: Remove volume
|
// summary: Remove volume
|
||||||
|
// operationId: VolumeDelete
|
||||||
// parameters:
|
// parameters:
|
||||||
// - in: path
|
// - in: path
|
||||||
// name: name
|
// name: name
|
||||||
@ -251,6 +255,7 @@ func (s *APIServer) registerVolumeHandlers(r *mux.Router) error {
|
|||||||
// tags:
|
// tags:
|
||||||
// - volumes (compat)
|
// - volumes (compat)
|
||||||
// summary: Prune volumes
|
// summary: Prune volumes
|
||||||
|
// operationId: VolumePrune
|
||||||
// produces:
|
// produces:
|
||||||
// - application/json
|
// - application/json
|
||||||
// parameters:
|
// parameters:
|
||||||
|
Reference in New Issue
Block a user