From 7774a975a3ffe65d9ae9ebcdcc06bc5b9a8b3da0 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Fri, 2 Oct 2026 00:23:10 +0000 Subject: [PATCH] Update module github.com/moby/moby/client to v0.6.1 Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- go.mod | 4 +- go.sum | 8 +- vendor/github.com/moby/moby/api/Dockerfile | 4 +- vendor/github.com/moby/moby/api/swagger.yaml | 799 +++++++++--------- .../moby/moby/api/types/build/disk_usage.go | 3 - .../moby/api/types/common/error_response.go | 3 - .../moby/moby/api/types/common/id_response.go | 3 - .../moby/api/types/container/change_type.go | 3 - .../api/types/container/create_response.go | 3 - .../moby/api/types/container/disk_usage.go | 3 - .../api/types/container/filesystem_change.go | 3 - .../moby/api/types/container/port_summary.go | 3 - .../moby/api/types/container/top_response.go | 3 - .../api/types/container/update_response.go | 3 - .../api/types/container/wait_exit_error.go | 3 - .../moby/api/types/container/wait_response.go | 3 - .../moby/api/types/image/delete_response.go | 3 - .../moby/moby/api/types/image/disk_usage.go | 3 - .../api/types/image/history_response_item.go | 3 - .../api/types/network/config_reference.go | 3 - .../moby/api/types/network/connect_request.go | 3 - .../moby/api/types/network/create_response.go | 3 - .../api/types/network/disconnect_request.go | 3 - .../api/types/network/endpoint_resource.go | 3 - .../moby/moby/api/types/network/inspect.go | 3 - .../moby/api/types/network/ipam_status.go | 3 - .../moby/moby/api/types/network/network.go | 3 - .../moby/moby/api/types/network/peer_info.go | 3 - .../moby/api/types/network/service_info.go | 3 - .../moby/moby/api/types/network/status.go | 3 - .../moby/api/types/network/subnet_status.go | 3 - .../moby/moby/api/types/network/summary.go | 3 - .../moby/moby/api/types/network/task.go | 3 - .../moby/moby/api/types/plugin/device.go | 3 - .../moby/moby/api/types/plugin/env.go | 3 - .../moby/moby/api/types/plugin/mount.go | 3 - .../moby/moby/api/types/plugin/plugin.go | 3 - .../moby/api/types/registry/auth_response.go | 3 - .../moby/api/types/storage/driver_data.go | 3 - .../api/types/storage/root_f_s_storage.go | 3 - .../storage/root_f_s_storage_snapshot.go | 3 - .../moby/moby/api/types/storage/storage.go | 3 - .../types/swarm/service_create_response.go | 3 - .../types/swarm/service_update_response.go | 3 - .../moby/api/types/volume/create_request.go | 3 - .../moby/moby/api/types/volume/disk_usage.go | 3 - .../moby/api/types/volume/list_response.go | 3 - .../moby/moby/api/types/volume/volume.go | 3 - vendor/github.com/moby/moby/client/client.go | 10 +- .../moby/moby/client/client_hook.go | 70 ++ .../moby/moby/client/client_options.go | 38 +- .../moby/moby/client/client_responsehook.go | 23 - .../moby/moby/client/container_attach.go | 5 +- .../moby/moby/client/container_exec.go | 6 +- vendor/github.com/moby/moby/client/hijack.go | 24 +- .../moby/moby/client/plugin_create.go | 4 +- vendor/modules.txt | 4 +- 57 files changed, 556 insertions(+), 575 deletions(-) create mode 100644 vendor/github.com/moby/moby/client/client_hook.go delete mode 100644 vendor/github.com/moby/moby/client/client_responsehook.go diff --git a/go.mod b/go.mod index 064de88b2c..76df19ae56 100644 --- a/go.mod +++ b/go.mod @@ -40,8 +40,8 @@ require ( github.com/mattn/go-sqlite3 v1.14.52 github.com/mdlayher/vsock v1.3.0 github.com/moby/docker-image-spec v1.3.1 - github.com/moby/moby/api v1.56.0 - github.com/moby/moby/client v0.6.0 + github.com/moby/moby/api v1.56.1 + github.com/moby/moby/client v0.6.1 github.com/moby/sys/capability v0.4.0 github.com/moby/sys/user v0.4.1 github.com/moby/term v0.5.2 diff --git a/go.sum b/go.sum index 8576c66d34..c10e7dd700 100644 --- a/go.sum +++ b/go.sum @@ -251,10 +251,10 @@ github.com/moby/docker-image-spec v1.3.1 h1:jMKff3w6PgbfSa69GfNg+zN/XLhfXJGnEx3N github.com/moby/docker-image-spec v1.3.1/go.mod h1:eKmb5VW8vQEh/BAr2yvVNvuiJuY6UIocYsFu/DxxRpo= github.com/moby/go-archive v0.3.3 h1:OxxR9paxsluYi+zDUEXTTaIxtkK3viymW+Ka7vRhhME= github.com/moby/go-archive v0.3.3/go.mod h1:Npdv43fFqlhZW7Xo8fbm3ZMYFvAGNviUPqX21VERbcE= -github.com/moby/moby/api v1.56.0 h1:GQzua3NA599ASSIICx0iFgiJeO9YkdDARvQsm23ZZuQ= -github.com/moby/moby/api v1.56.0/go.mod h1:sZ+THbVWkjOmBPPfbnzdD/G1LuIexWhqlSHHPTDQ1Uk= -github.com/moby/moby/client v0.6.0 h1:AJjEB21QPbXSXjDsZorFBoDZPhMrfbpaPLgSMAW9Bgs= -github.com/moby/moby/client v0.6.0/go.mod h1:OCo00wNRyA3m4lmJ228W3JbyCN4ZNNYjpOXiJydBdcQ= +github.com/moby/moby/api v1.56.1 h1:PpWkvVPB7Fr/No8w+TfyJ/I6rWZ2YPZhT3JorIg+06c= +github.com/moby/moby/api v1.56.1/go.mod h1:sZ+THbVWkjOmBPPfbnzdD/G1LuIexWhqlSHHPTDQ1Uk= +github.com/moby/moby/client v0.6.1 h1:gvfKmdcWw+9MzXYP0vAUKQtBTGu1L8475K2nsmL7O98= +github.com/moby/moby/client v0.6.1/go.mod h1:XHgTFqz9NCgS/VuoxXMmEDVmVgXQ4vFEc15wsCIwb24= github.com/moby/patternmatcher v0.6.1 h1:qlhtafmr6kgMIJjKJMDmMWq7WLkKIo23hsrpR3x084U= github.com/moby/patternmatcher v0.6.1/go.mod h1:hDPoyOpDY7OrrMDLaYoY3hf52gNCR/YOUYxkhApJIxc= github.com/moby/sys/capability v0.4.0 h1:4D4mI6KlNtWMCM1Z/K0i7RV1FkX+DBDHKVJpCndZoHk= diff --git a/vendor/github.com/moby/moby/api/Dockerfile b/vendor/github.com/moby/moby/api/Dockerfile index 14fa5af050..b6b10b2509 100644 --- a/vendor/github.com/moby/moby/api/Dockerfile +++ b/vendor/github.com/moby/moby/api/Dockerfile @@ -3,7 +3,7 @@ ARG GO_VERSION=1.26.8 FROM golang:${GO_VERSION}-alpine AS base -RUN apk add --no-cache bash make yamllint +RUN apk add --no-cache bash libfyaml make yamllint CMD ["/bin/bash"] # go-swagger @@ -12,7 +12,7 @@ WORKDIR /go/src/github.com/go-swagger/go-swagger # GO_SWAGGER_VERSION specifies the version of the go-swagger binary to install. # Go-swagger is used in CI for generating types from swagger.yaml in # api/scripts/generate-swagger-api.sh -ARG GO_SWAGGER_VERSION=v0.33.1 +ARG GO_SWAGGER_VERSION=v0.36.6 ARG TARGETPLATFORM RUN --mount=type=cache,target=/root/.cache/go-build,id=swagger-build-$TARGETPLATFORM \ --mount=type=cache,target=/go/pkg/mod \ diff --git a/vendor/github.com/moby/moby/api/swagger.yaml b/vendor/github.com/moby/moby/api/swagger.yaml index 8ed37b2501..8c4d51989f 100644 --- a/vendor/github.com/moby/moby/api/swagger.yaml +++ b/vendor/github.com/moby/moby/api/swagger.yaml @@ -1382,10 +1382,9 @@ definitions: enum: - {} default: {} - example: { - "80/tcp": {}, + example: + "80/tcp": {} "443/tcp": {} - } Tty: description: | Attach standard streams to a TTY, including `stdin` if it is not closed. @@ -1518,10 +1517,9 @@ definitions: enum: - {} default: {} - example: { - "80/tcp": {}, + example: + "80/tcp": {} "443/tcp": {} - } Env: description: | A list of environment variables to set inside the container in the @@ -1748,11 +1746,10 @@ definitions: x-nullable: false additionalProperties: type: "string" - example: { - "MergedDir": "/var/lib/docker/overlay2/ef749362d13333e65fc95c572eb525abbe0052e16e086cb64bc3b98ae9aa6d74/merged", - "UpperDir": "/var/lib/docker/overlay2/ef749362d13333e65fc95c572eb525abbe0052e16e086cb64bc3b98ae9aa6d74/diff", + example: + "MergedDir": "/var/lib/docker/overlay2/ef749362d13333e65fc95c572eb525abbe0052e16e086cb64bc3b98ae9aa6d74/merged" + "UpperDir": "/var/lib/docker/overlay2/ef749362d13333e65fc95c572eb525abbe0052e16e086cb64bc3b98ae9aa6d74/diff" "WorkDir": "/var/lib/docker/overlay2/ef749362d13333e65fc95c572eb525abbe0052e16e086cb64bc3b98ae9aa6d74/work" - } Storage: description: | @@ -6353,10 +6350,9 @@ definitions: items: $ref: "#/definitions/ContainerBlkioStatEntry" example: - io_service_bytes_recursive: [ - {"major": 254, "minor": 0, "op": "read", "value": 7593984}, - {"major": 254, "minor": 0, "op": "write", "value": 100} - ] + io_service_bytes_recursive: + - {"major": 254, "minor": 0, "op": "read", "value": 7593984} + - {"major": 254, "minor": 0, "op": "write", "value": 100} io_serviced_recursive: null io_queue_recursive: null io_service_time_recursive: null @@ -7707,7 +7703,6 @@ definitions: description: | List of ID's and addresses of other managers in the swarm. type: "array" - default: null x-nullable: true items: $ref: "#/definitions/PeerNode" @@ -8280,7 +8275,7 @@ definitions: type: "object" x-nullable: true x-omitempty: true - required: ["Platform", "Containers", "Size", "UnpackedSize"] + required: ["Platform", "Containers", "Size"] properties: Platform: $ref: "#/definitions/OCIPlatform" @@ -8394,17 +8389,17 @@ paths: - `volume`=(`` or ``) type: "string" responses: - 200: + "200": description: "no error" schema: type: "array" items: $ref: "#/definitions/ContainerSummary" - 400: + "400": description: "bad parameter" schema: $ref: "#/definitions/ErrorResponse" - 500: + "500": description: "server error" schema: $ref: "#/definitions/ErrorResponse" @@ -8588,26 +8583,26 @@ paths: required: true responses: - 201: + "201": description: "Container created successfully" schema: $ref: "#/definitions/ContainerCreateResponse" - 400: + "400": description: "bad parameter" schema: $ref: "#/definitions/ErrorResponse" - 404: + "404": description: "no such image" schema: $ref: "#/definitions/ErrorResponse" examples: application/json: message: "No such image: c2ada9df5af8" - 409: + "409": description: "conflict" schema: $ref: "#/definitions/ErrorResponse" - 500: + "500": description: "server error" schema: $ref: "#/definitions/ErrorResponse" @@ -8620,18 +8615,18 @@ paths: produces: - "application/json" responses: - 200: + "200": description: "no error" schema: $ref: "#/definitions/ContainerInspectResponse" - 404: + "404": description: "no such container" schema: $ref: "#/definitions/ErrorResponse" examples: application/json: message: "No such container: c2ada9df5af8" - 500: + "500": description: "server error" schema: $ref: "#/definitions/ErrorResponse" @@ -8655,18 +8650,18 @@ paths: is not supported on Windows. operationId: "ContainerTop" responses: - 200: + "200": description: "no error" schema: $ref: "#/definitions/ContainerTopResponse" - 404: + "404": description: "no such container" schema: $ref: "#/definitions/ErrorResponse" examples: application/json: message: "No such container: c2ada9df5af8" - 500: + "500": description: "server error" schema: $ref: "#/definitions/ErrorResponse" @@ -8695,7 +8690,7 @@ paths: - "application/vnd.docker.multiplexed-stream" operationId: "ContainerLogs" responses: - 200: + "200": description: | logs returned as a stream in response body. For the stream format, [see the documentation for the attach endpoint](#operation/ContainerAttach). @@ -8704,14 +8699,14 @@ paths: schema: type: "string" format: "binary" - 404: + "404": description: "no such container" schema: $ref: "#/definitions/ErrorResponse" examples: application/json: message: "No such container: c2ada9df5af8" - 500: + "500": description: "server error" schema: $ref: "#/definitions/ErrorResponse" @@ -8772,7 +8767,7 @@ paths: operationId: "ContainerChanges" produces: ["application/json"] responses: - 200: + "200": description: "The list of changes" schema: type: "array" @@ -8786,14 +8781,14 @@ paths: Kind: 1 - Path: "/test" Kind: 1 - 404: + "404": description: "no such container" schema: $ref: "#/definitions/ErrorResponse" examples: application/json: message: "No such container: c2ada9df5af8" - 500: + "500": description: "server error" schema: $ref: "#/definitions/ErrorResponse" @@ -8812,16 +8807,16 @@ paths: produces: - "application/octet-stream" responses: - 200: + "200": description: "no error" - 404: + "404": description: "no such container" schema: $ref: "#/definitions/ErrorResponse" examples: application/json: message: "No such container: c2ada9df5af8" - 500: + "500": description: "server error" schema: $ref: "#/definitions/ErrorResponse" @@ -8866,18 +8861,18 @@ paths: operationId: "ContainerStats" produces: ["application/json"] responses: - 200: + "200": description: "no error" schema: $ref: "#/definitions/ContainerStatsResponse" - 404: + "404": description: "no such container" schema: $ref: "#/definitions/ErrorResponse" examples: application/json: message: "No such container: c2ada9df5af8" - 500: + "500": description: "server error" schema: $ref: "#/definitions/ErrorResponse" @@ -8910,18 +8905,18 @@ paths: consumes: - "application/octet-stream" produces: - - "text/plain" + - "application/json" responses: - 200: + "200": description: "no error" - 404: + "404": description: "no such container" schema: $ref: "#/definitions/ErrorResponse" examples: application/json: message: "No such container: c2ada9df5af8" - 500: + "500": description: "cannot resize container" schema: $ref: "#/definitions/ErrorResponse" @@ -8947,22 +8942,22 @@ paths: summary: "Start a container" operationId: "ContainerStart" responses: - 204: + "204": description: "no error" - 304: + "304": description: "container already started" - 400: + "400": description: "bad parameter, including an invalid checkpoint ID" schema: $ref: "#/definitions/ErrorResponse" - 404: + "404": description: "no such container" schema: $ref: "#/definitions/ErrorResponse" examples: application/json: message: "No such container: c2ada9df5af8" - 500: + "500": description: "server error" schema: $ref: "#/definitions/ErrorResponse" @@ -8979,24 +8974,26 @@ paths: single character `[a-Z]` or `ctrl-` where `` is one of: `a-z`, `@`, `^`, `[`, `,` or `_`. type: "string" + produces: + - "application/json" tags: ["Container"] /containers/{id}/stop: post: summary: "Stop a container" operationId: "ContainerStop" responses: - 204: + "204": description: "no error" - 304: + "304": description: "container already stopped" - 404: + "404": description: "no such container" schema: $ref: "#/definitions/ErrorResponse" examples: application/json: message: "No such container: c2ada9df5af8" - 500: + "500": description: "server error" schema: $ref: "#/definitions/ErrorResponse" @@ -9015,22 +9012,24 @@ paths: in: "query" description: "Number of seconds to wait before killing the container" type: "integer" + produces: + - "application/json" tags: ["Container"] /containers/{id}/restart: post: summary: "Restart a container" operationId: "ContainerRestart" responses: - 204: + "204": description: "no error" - 404: + "404": description: "no such container" schema: $ref: "#/definitions/ErrorResponse" examples: application/json: message: "No such container: c2ada9df5af8" - 500: + "500": description: "server error" schema: $ref: "#/definitions/ErrorResponse" @@ -9049,6 +9048,8 @@ paths: in: "query" description: "Number of seconds to wait before killing the container" type: "integer" + produces: + - "application/json" tags: ["Container"] /containers/{id}/kill: post: @@ -9058,23 +9059,23 @@ paths: container. operationId: "ContainerKill" responses: - 204: + "204": description: "no error" - 404: + "404": description: "no such container" schema: $ref: "#/definitions/ErrorResponse" examples: application/json: message: "No such container: c2ada9df5af8" - 409: + "409": description: "container is not running" schema: $ref: "#/definitions/ErrorResponse" examples: application/json: message: "Container d37cde0fe4ad63c3a7252023b2f9800282894247d145cb5933ddf6e52cc03a28 is not running" - 500: + "500": description: "server error" schema: $ref: "#/definitions/ErrorResponse" @@ -9090,6 +9091,8 @@ paths: Signal to send to the container as an integer or string (e.g. `SIGINT`). type: "string" default: "SIGKILL" + produces: + - "application/json" tags: ["Container"] /containers/{id}/update: post: @@ -9101,18 +9104,18 @@ paths: consumes: ["application/json"] produces: ["application/json"] responses: - 200: + "200": description: "The container has been updated." schema: $ref: "#/definitions/ContainerUpdateResponse" - 404: + "404": description: "no such container" schema: $ref: "#/definitions/ErrorResponse" examples: application/json: message: "No such container: c2ada9df5af8" - 500: + "500": description: "server error" schema: $ref: "#/definitions/ErrorResponse" @@ -9153,20 +9156,20 @@ paths: summary: "Rename a container" operationId: "ContainerRename" responses: - 204: + "204": description: "no error" - 404: + "404": description: "no such container" schema: $ref: "#/definitions/ErrorResponse" examples: application/json: message: "No such container: c2ada9df5af8" - 409: + "409": description: "name already in use" schema: $ref: "#/definitions/ErrorResponse" - 500: + "500": description: "server error" schema: $ref: "#/definitions/ErrorResponse" @@ -9181,6 +9184,8 @@ paths: required: true description: "New name for the container" type: "string" + produces: + - "application/json" tags: ["Container"] /containers/{id}/pause: post: @@ -9194,16 +9199,16 @@ paths: suspended, and subsequently resumed. operationId: "ContainerPause" responses: - 204: + "204": description: "no error" - 404: + "404": description: "no such container" schema: $ref: "#/definitions/ErrorResponse" examples: application/json: message: "No such container: c2ada9df5af8" - 500: + "500": description: "server error" schema: $ref: "#/definitions/ErrorResponse" @@ -9213,6 +9218,8 @@ paths: required: true description: "ID or name of the container" type: "string" + produces: + - "application/json" tags: ["Container"] /containers/{id}/unpause: post: @@ -9220,16 +9227,16 @@ paths: description: "Resume a container which has been paused." operationId: "ContainerUnpause" responses: - 204: + "204": description: "no error" - 404: + "404": description: "no such container" schema: $ref: "#/definitions/ErrorResponse" examples: application/json: message: "No such container: c2ada9df5af8" - 500: + "500": description: "server error" schema: $ref: "#/definitions/ErrorResponse" @@ -9239,6 +9246,8 @@ paths: required: true description: "ID or name of the container" type: "string" + produces: + - "application/json" tags: ["Container"] /containers/{id}/attach: post: @@ -9344,22 +9353,22 @@ paths: - "application/vnd.docker.raw-stream" - "application/vnd.docker.multiplexed-stream" responses: - 101: + "101": description: "no error, hints proxy about hijacking" - 200: + "200": description: "no error, no upgrade header found" - 400: + "400": description: "bad parameter" schema: $ref: "#/definitions/ErrorResponse" - 404: + "404": description: "no such container" schema: $ref: "#/definitions/ErrorResponse" examples: application/json: message: "No such container: c2ada9df5af8" - 500: + "500": description: "server error" schema: $ref: "#/definitions/ErrorResponse" @@ -9416,22 +9425,22 @@ paths: summary: "Attach to a container via a websocket" operationId: "ContainerAttachWebsocket" responses: - 101: + "101": description: "no error, hints proxy about hijacking" - 200: + "200": description: "no error, no upgrade header found" - 400: + "400": description: "bad parameter" schema: $ref: "#/definitions/ErrorResponse" - 404: + "404": description: "no such container" schema: $ref: "#/definitions/ErrorResponse" examples: application/json: message: "No such container: c2ada9df5af8" - 500: + "500": description: "server error" schema: $ref: "#/definitions/ErrorResponse" @@ -9481,22 +9490,22 @@ paths: operationId: "ContainerWait" produces: ["application/json"] responses: - 200: + "200": description: "The container has exit." schema: $ref: "#/definitions/ContainerWaitResponse" - 400: + "400": description: "bad parameter" schema: $ref: "#/definitions/ErrorResponse" - 404: + "404": description: "no such container" schema: $ref: "#/definitions/ErrorResponse" examples: application/json: message: "No such container: c2ada9df5af8" - 500: + "500": description: "server error" schema: $ref: "#/definitions/ErrorResponse" @@ -9524,20 +9533,20 @@ paths: summary: "Remove a container" operationId: "ContainerDelete" responses: - 204: + "204": description: "no error" - 400: + "400": description: "bad parameter" schema: $ref: "#/definitions/ErrorResponse" - 404: + "404": description: "no such container" schema: $ref: "#/definitions/ErrorResponse" examples: application/json: message: "No such container: c2ada9df5af8" - 409: + "409": description: "conflict" schema: $ref: "#/definitions/ErrorResponse" @@ -9546,7 +9555,7 @@ paths: message: | You cannot remove a running container: c2ada9df5af8. Stop the container before attempting removal or force remove - 500: + "500": description: "server error" schema: $ref: "#/definitions/ErrorResponse" @@ -9571,6 +9580,8 @@ paths: description: "Remove the specified link associated with the container." type: "boolean" default: false + produces: + - "application/json" tags: ["Container"] /containers/{id}/archive: head: @@ -9581,7 +9592,7 @@ paths: about the path. operationId: "ContainerArchiveInfo" responses: - 200: + "200": description: "no error" headers: X-Docker-Container-Path-Stat: @@ -9589,18 +9600,18 @@ paths: description: | A base64 - encoded JSON object with some filesystem header information about the path - 400: + "400": description: "Bad parameter" schema: $ref: "#/definitions/ErrorResponse" - 404: + "404": description: "Container or path does not exist" schema: $ref: "#/definitions/ErrorResponse" examples: application/json: message: "No such container: c2ada9df5af8" - 500: + "500": description: "Server error" schema: $ref: "#/definitions/ErrorResponse" @@ -9620,22 +9631,23 @@ paths: summary: "Get an archive of a filesystem resource in a container" description: "Get a tar archive of a resource in the filesystem of container id." operationId: "ContainerArchive" - produces: ["application/x-tar"] + produces: + - "application/x-tar" responses: - 200: + "200": description: "no error" - 400: + "400": description: "Bad parameter" schema: $ref: "#/definitions/ErrorResponse" - 404: + "404": description: "Container or path does not exist" schema: $ref: "#/definitions/ErrorResponse" examples: application/json: message: "No such container: c2ada9df5af8" - 500: + "500": description: "server error" schema: $ref: "#/definitions/ErrorResponse" @@ -9660,27 +9672,27 @@ paths: operationId: "PutContainerArchive" consumes: ["application/x-tar", "application/octet-stream"] responses: - 200: + "200": description: "The content was extracted successfully" - 400: + "400": description: "Bad parameter" schema: $ref: "#/definitions/ErrorResponse" examples: application/json: message: "not a directory" - 403: + "403": description: "Permission denied, the volume or container rootfs is marked as read-only." schema: $ref: "#/definitions/ErrorResponse" - 404: + "404": description: "No such container or path does not exist inside the container" schema: $ref: "#/definitions/ErrorResponse" examples: application/json: message: "No such container: c2ada9df5af8" - 500: + "500": description: "Server error" schema: $ref: "#/definitions/ErrorResponse" @@ -9736,7 +9748,7 @@ paths: - `label` (`label=`, `label==`, `label!=`, or `label!==`) Prune containers with (or without, in case `label!=...` is used) the specified labels. type: "string" responses: - 200: + "200": description: "No error" schema: type: "object" @@ -9751,7 +9763,7 @@ paths: description: "Disk space reclaimed in bytes" type: "integer" format: "int64" - 500: + "500": description: "Server error" schema: $ref: "#/definitions/ErrorResponse" @@ -9764,13 +9776,13 @@ paths: produces: - "application/json" responses: - 200: + "200": description: "Summary image data for the images matching the query" schema: type: "array" items: $ref: "#/definitions/ImageSummary" - 500: + "500": description: "server error" schema: $ref: "#/definitions/ErrorResponse" @@ -10014,13 +10026,13 @@ paths: - `1` is the first generation classic (deprecated) builder in the Docker daemon (default) - `2` is [BuildKit](https://github.com/moby/buildkit) responses: - 200: + "200": description: "no error" - 400: + "400": description: "Bad parameter" schema: $ref: "#/definitions/ErrorResponse" - 500: + "500": description: "server error" schema: $ref: "#/definitions/ErrorResponse" @@ -10069,7 +10081,7 @@ paths: - `shared` - `private` responses: - 200: + "200": description: "No error" schema: type: "object" @@ -10084,7 +10096,7 @@ paths: description: "Disk space reclaimed in bytes" type: "integer" format: "int64" - 500: + "500": description: "Server error" schema: $ref: "#/definitions/ErrorResponse" @@ -10100,13 +10112,13 @@ paths: produces: - "application/json" responses: - 200: + "200": description: "no error" - 404: + "404": description: "repository does not exist or no read access" schema: $ref: "#/definitions/ErrorResponse" - 500: + "500": description: "server error" schema: $ref: "#/definitions/ErrorResponse" @@ -10157,10 +10169,12 @@ paths: Apply `Dockerfile` instructions to the image that is created, for example: `changes=ENV DEBUG=true`. Note that `ENV DEBUG=true` should be URI component encoded. + Repeat the parameter to apply multiple instructions. Supported `Dockerfile` instructions: `CMD`|`ENTRYPOINT`|`ENV`|`EXPOSE`|`ONBUILD`|`USER`|`VOLUME`|`WORKDIR` type: "array" + collectionFormat: "multi" items: type: "string" - name: "platform" @@ -10192,18 +10206,18 @@ paths: produces: - "application/json" responses: - 200: + "200": description: "No error" schema: $ref: "#/definitions/ImageInspect" - 404: + "404": description: "No such image" schema: $ref: "#/definitions/ErrorResponse" examples: application/json: message: "No such image: someimage (tag: latest)" - 500: + "500": description: "Server error" schema: $ref: "#/definitions/ErrorResponse" @@ -10256,25 +10270,25 @@ paths: produces: - "application/json" responses: - 200: + "200": description: "No error" schema: type: "array" items: $ref: "#/definitions/AttestationStatement" - 400: + "400": description: "Bad parameter (e.g. malformed `platform` value)" schema: $ref: "#/definitions/ErrorResponse" - 404: + "404": description: "No such image, or no manifest found for the requested platform" schema: $ref: "#/definitions/ErrorResponse" - 500: + "500": description: "Server error" schema: $ref: "#/definitions/ErrorResponse" - 501: + "501": description: | The daemon's image backend does not support attestations. This is returned by the legacy (graphdriver) image store, which does @@ -10336,7 +10350,7 @@ paths: operationId: "ImageHistory" produces: ["application/json"] responses: - 200: + "200": description: "List of image layers" schema: type: "array" @@ -10366,11 +10380,11 @@ paths: - "scratch:latest" Size: 0 Comment: "Imported from -" - 404: + "404": description: "No such image" schema: $ref: "#/definitions/ErrorResponse" - 500: + "500": description: "Server error" schema: $ref: "#/definitions/ErrorResponse" @@ -10410,13 +10424,13 @@ paths: consumes: - "application/octet-stream" responses: - 200: + "200": description: "No error" - 404: + "404": description: "No such image" schema: $ref: "#/definitions/ErrorResponse" - 500: + "500": description: "Server error" schema: $ref: "#/definitions/ErrorResponse" @@ -10475,21 +10489,21 @@ paths: or tag already exists, it will be overwritten. operationId: "ImageTag" responses: - 201: + "201": description: "No error" - 400: + "400": description: "Bad parameter" schema: $ref: "#/definitions/ErrorResponse" - 404: + "404": description: "No such image" schema: $ref: "#/definitions/ErrorResponse" - 409: + "409": description: "Conflict" schema: $ref: "#/definitions/ErrorResponse" - 500: + "500": description: "Server error" schema: $ref: "#/definitions/ErrorResponse" @@ -10520,7 +10534,7 @@ paths: operationId: "ImageDelete" produces: ["application/json"] responses: - 200: + "200": description: "The image was deleted successfully" schema: type: "array" @@ -10531,15 +10545,15 @@ paths: - Untagged: "3e2f21a89f" - Deleted: "3e2f21a89f" - Deleted: "53b4f83ac9" - 404: + "404": description: "No such image" schema: $ref: "#/definitions/ErrorResponse" - 409: + "409": description: "Conflict" schema: $ref: "#/definitions/ErrorResponse" - 500: + "500": description: "Server error" schema: $ref: "#/definitions/ErrorResponse" @@ -10563,9 +10577,10 @@ paths: in: "query" description: | Select platform-specific content to delete. - Multiple values are accepted. + Repeat the parameter to select multiple platforms. Each platform is a OCI platform encoded as a JSON string. type: "array" + collectionFormat: "multi" items: # This should be OCIPlatform # but $ref is not supported for array in query in Swagger 2.0 @@ -10580,7 +10595,7 @@ paths: produces: - "application/json" responses: - 200: + "200": description: "No error" schema: type: "array" @@ -10622,7 +10637,7 @@ paths: is_automated: false name: "postgres" star_count: 12408 - 500: + "500": description: "Server error" schema: $ref: "#/definitions/ErrorResponse" @@ -10664,7 +10679,7 @@ paths: - `label` (`label=`, `label==`, `label!=`, or `label!==`) Prune images with (or without, in case `label!=...` is used) the specified labels. type: "string" responses: - 200: + "200": description: "No error" schema: type: "object" @@ -10679,7 +10694,7 @@ paths: description: "Disk space reclaimed in bytes" type: "integer" format: "int64" - 500: + "500": description: "Server error" schema: $ref: "#/definitions/ErrorResponse" @@ -10694,17 +10709,17 @@ paths: consumes: ["application/json"] produces: ["application/json"] responses: - 200: + "200": description: "An identity token was generated successfully." schema: $ref: "#/definitions/AuthResponse" - 204: + "204": description: "No error" - 401: + "401": description: "Auth error" schema: $ref: "#/definitions/ErrorResponse" - 500: + "500": description: "Server error" schema: $ref: "#/definitions/ErrorResponse" @@ -10722,11 +10737,11 @@ paths: produces: - "application/json" responses: - 200: + "200": description: "No error" schema: $ref: "#/definitions/SystemInfo" - 500: + "500": description: "Server error" schema: $ref: "#/definitions/ErrorResponse" @@ -10738,11 +10753,11 @@ paths: operationId: "SystemVersion" produces: ["application/json"] responses: - 200: + "200": description: "no error" schema: $ref: "#/definitions/SystemVersion" - 500: + "500": description: "server error" schema: $ref: "#/definitions/ErrorResponse" @@ -10752,9 +10767,10 @@ paths: summary: "Ping" description: "This is a dummy endpoint you can use to test if the server is accessible." operationId: "SystemPing" - produces: ["text/plain"] + produces: + - "text/plain" responses: - 200: + "200": description: "no error" schema: type: "string" @@ -10792,7 +10808,7 @@ paths: Pragma: type: "string" default: "no-cache" - 500: + "500": description: "server error" schema: $ref: "#/definitions/ErrorResponse" @@ -10810,7 +10826,7 @@ paths: operationId: "SystemPingHead" produces: ["text/plain"] responses: - 200: + "200": description: "no error" schema: type: "string" @@ -10838,7 +10854,7 @@ paths: Pragma: type: "string" default: "no-cache" - 500: + "500": description: "server error" schema: $ref: "#/definitions/ErrorResponse" @@ -10852,18 +10868,18 @@ paths: produces: - "application/json" responses: - 201: + "201": description: "no error" schema: $ref: "#/definitions/IDResponse" - 404: + "404": description: "no such container" schema: $ref: "#/definitions/ErrorResponse" examples: application/json: message: "No such container: c2ada9df5af8" - 500: + "500": description: "server error" schema: $ref: "#/definitions/ErrorResponse" @@ -10937,15 +10953,15 @@ paths: - "application/x-ndjson" - "application/json-seq" responses: - 200: + "200": description: "no error" schema: $ref: "#/definitions/EventMessage" - 400: + "400": description: "bad parameter" schema: $ref: "#/definitions/ErrorResponse" - 500: + "500": description: "server error" schema: $ref: "#/definitions/ErrorResponse" @@ -10984,7 +11000,7 @@ paths: summary: "Get data usage information" operationId: "SystemDataUsage" responses: - 200: + "200": description: "no error" schema: type: "object" @@ -10998,7 +11014,7 @@ paths: $ref: "#/definitions/VolumesDiskUsage" BuildCacheUsage: $ref: "#/definitions/BuildCacheDiskUsage" - 500: + "500": description: "server error" schema: $ref: "#/definitions/ErrorResponse" @@ -11046,12 +11062,12 @@ paths: produces: - "application/x-tar" responses: - 200: + "200": description: "no error" schema: type: "string" format: "binary" - 500: + "500": description: "server error" schema: $ref: "#/definitions/ErrorResponse" @@ -11093,20 +11109,21 @@ paths: produces: - "application/x-tar" responses: - 200: + "200": description: "no error" schema: type: "string" format: "binary" - 500: + "500": description: "server error" schema: $ref: "#/definitions/ErrorResponse" parameters: - name: "names" in: "query" - description: "Image names to filter by" + description: "Image names to filter by. Repeat the parameter for multiple images." type: "array" + collectionFormat: "multi" items: type: "string" - name: "platform" @@ -11136,9 +11153,9 @@ paths: produces: - "application/json" responses: - 200: + "200": description: "no error" - 500: + "500": description: "server error" schema: $ref: "#/definitions/ErrorResponse" @@ -11178,22 +11195,22 @@ paths: produces: - "application/json" responses: - 201: + "201": description: "no error" schema: $ref: "#/definitions/IDResponse" - 404: + "404": description: "no such container" schema: $ref: "#/definitions/ErrorResponse" examples: application/json: message: "No such container: c2ada9df5af8" - 409: + "409": description: "container is paused" schema: $ref: "#/definitions/ErrorResponse" - 500: + "500": description: "Server error" schema: $ref: "#/definitions/ErrorResponse" @@ -11290,13 +11307,13 @@ paths: - "application/vnd.docker.raw-stream" - "application/vnd.docker.multiplexed-stream" responses: - 200: + "200": description: "No error" - 404: + "404": description: "No such exec instance" schema: $ref: "#/definitions/ErrorResponse" - 409: + "409": description: "Container is stopped or paused" schema: $ref: "#/definitions/ErrorResponse" @@ -11339,17 +11356,17 @@ paths: if `tty` was specified as part of creating and starting the exec instance. operationId: "ExecResize" responses: - 200: + "200": description: "No error" - 400: + "400": description: "bad parameter" schema: $ref: "#/definitions/ErrorResponse" - 404: + "404": description: "No such exec instance" schema: $ref: "#/definitions/ErrorResponse" - 500: + "500": description: "Server error" schema: $ref: "#/definitions/ErrorResponse" @@ -11378,7 +11395,7 @@ paths: produces: - "application/json" responses: - 200: + "200": description: "No error" schema: type: "object" @@ -11427,11 +11444,11 @@ paths: user: "1000" Running: false Pid: 42000 - 404: + "404": description: "No such exec instance" schema: $ref: "#/definitions/ErrorResponse" - 500: + "500": description: "Server error" schema: $ref: "#/definitions/ErrorResponse" @@ -11449,11 +11466,11 @@ paths: operationId: "VolumeList" produces: ["application/json"] responses: - 200: + "200": description: "Summary volume data that matches the query" schema: $ref: "#/definitions/VolumeListResponse" - 500: + "500": description: "Server error" schema: $ref: "#/definitions/ErrorResponse" @@ -11483,11 +11500,11 @@ paths: consumes: ["application/json"] produces: ["application/json"] responses: - 201: + "201": description: "The volume was created successfully" schema: $ref: "#/definitions/Volume" - 500: + "500": description: "Server error" schema: $ref: "#/definitions/ErrorResponse" @@ -11506,15 +11523,15 @@ paths: operationId: "VolumeInspect" produces: ["application/json"] responses: - 200: + "200": description: "No error" schema: $ref: "#/definitions/Volume" - 404: + "404": description: "No such volume" schema: $ref: "#/definitions/ErrorResponse" - 500: + "500": description: "Server error" schema: $ref: "#/definitions/ErrorResponse" @@ -11533,21 +11550,21 @@ paths: consumes: ["application/json"] produces: ["application/json"] responses: - 200: + "200": description: "no error" - 400: + "400": description: "bad parameter" schema: $ref: "#/definitions/ErrorResponse" - 404: + "404": description: "no such volume" schema: $ref: "#/definitions/ErrorResponse" - 500: + "500": description: "server error" schema: $ref: "#/definitions/ErrorResponse" - 503: + "503": description: "node is not part of a swarm" schema: $ref: "#/definitions/ErrorResponse" @@ -11589,17 +11606,17 @@ paths: description: "Instruct the driver to remove the volume." operationId: "VolumeDelete" responses: - 204: + "204": description: "The volume was removed" - 404: + "404": description: "No such volume or volume driver" schema: $ref: "#/definitions/ErrorResponse" - 409: + "409": description: "Volume is in use and cannot be removed" schema: $ref: "#/definitions/ErrorResponse" - 500: + "500": description: "Server error" schema: $ref: "#/definitions/ErrorResponse" @@ -11614,6 +11631,8 @@ paths: description: "Force the removal of the volume" type: "boolean" default: false + produces: + - "application/json" tags: ["Volume"] /volumes/prune: @@ -11633,7 +11652,7 @@ paths: - `all` (`all=true`) - Consider all (local) volumes for pruning and not just anonymous volumes. type: "string" responses: - 200: + "200": description: "No error" schema: type: "object" @@ -11648,7 +11667,7 @@ paths: description: "Disk space reclaimed in bytes" type: "integer" format: "int64" - 500: + "500": description: "Server error" schema: $ref: "#/definitions/ErrorResponse" @@ -11667,7 +11686,7 @@ paths: produces: - "application/json" responses: - 200: + "200": description: "No error" schema: type: "array" @@ -11727,7 +11746,7 @@ paths: Config: [] Containers: {} Options: {} - 500: + "500": description: "Server error" schema: $ref: "#/definitions/ErrorResponse" @@ -11760,15 +11779,15 @@ paths: produces: - "application/json" responses: - 200: + "200": description: "No error" schema: $ref: "#/definitions/NetworkInspect" - 404: + "404": description: "Network not found" schema: $ref: "#/definitions/ErrorResponse" - 500: + "500": description: "Server error" schema: $ref: "#/definitions/ErrorResponse" @@ -11793,17 +11812,17 @@ paths: summary: "Remove a network" operationId: "NetworkDelete" responses: - 204: + "204": description: "No error" - 403: + "403": description: "operation not supported for pre-defined networks" schema: $ref: "#/definitions/ErrorResponse" - 404: + "404": description: "no such network" schema: $ref: "#/definitions/ErrorResponse" - 500: + "500": description: "Server error" schema: $ref: "#/definitions/ErrorResponse" @@ -11813,6 +11832,8 @@ paths: description: "Network ID or name" required: true type: "string" + produces: + - "application/json" tags: ["Network"] /networks/create: @@ -11824,25 +11845,25 @@ paths: produces: - "application/json" responses: - 201: + "201": description: "Network created successfully" schema: $ref: "#/definitions/NetworkCreateResponse" - 400: + "400": description: "bad parameter" schema: $ref: "#/definitions/ErrorResponse" - 403: + "403": description: | Forbidden operation. This happens when trying to create a network named after a pre-defined network, or when trying to create an overlay network on a daemon which is not part of a Swarm cluster. schema: $ref: "#/definitions/ErrorResponse" - 404: + "404": description: "plugin not found" schema: $ref: "#/definitions/ErrorResponse" - 500: + "500": description: "Server error" schema: $ref: "#/definitions/ErrorResponse" @@ -11941,21 +11962,21 @@ paths: consumes: - "application/json" responses: - 200: + "200": description: "No error" - 400: + "400": description: "bad parameter" schema: $ref: "#/definitions/ErrorResponse" - 403: + "403": description: "Operation forbidden" schema: $ref: "#/definitions/ErrorResponse" - 404: + "404": description: "Network or container not found" schema: $ref: "#/definitions/ErrorResponse" - 500: + "500": description: "Server error" schema: $ref: "#/definitions/ErrorResponse" @@ -11979,17 +12000,17 @@ paths: consumes: - "application/json" responses: - 200: + "200": description: "No error" - 403: + "403": description: "Operation not supported for swarm scoped networks" schema: $ref: "#/definitions/ErrorResponse" - 404: + "404": description: "Network or container not found" schema: $ref: "#/definitions/ErrorResponse" - 500: + "500": description: "Server error" schema: $ref: "#/definitions/ErrorResponse" @@ -12022,7 +12043,7 @@ paths: - `label` (`label=`, `label==`, `label!=`, or `label!==`) Prune networks with (or without, in case `label!=...` is used) the specified labels. type: "string" responses: - 200: + "200": description: "No error" schema: type: "object" @@ -12033,7 +12054,7 @@ paths: type: "array" items: type: "string" - 500: + "500": description: "Server error" schema: $ref: "#/definitions/ErrorResponse" @@ -12045,13 +12066,13 @@ paths: description: "Returns information about installed plugins." produces: ["application/json"] responses: - 200: + "200": description: "No error" schema: type: "array" items: $ref: "#/definitions/Plugin" - 500: + "500": description: "Server error" schema: $ref: "#/definitions/ErrorResponse" @@ -12074,7 +12095,7 @@ paths: summary: "Get plugin privileges" operationId: "GetPluginPrivileges" responses: - 200: + "200": description: "no error" schema: type: "array" @@ -12093,7 +12114,7 @@ paths: Description: "" Value: - "/dev/cpu_dma_latency" - 500: + "500": description: "server error" schema: $ref: "#/definitions/ErrorResponse" @@ -12118,9 +12139,9 @@ paths: produces: - "application/json" responses: - 204: + "204": description: "no error" - 500: + "500": description: "server error" schema: $ref: "#/definitions/ErrorResponse" @@ -12175,15 +12196,15 @@ paths: summary: "Inspect a plugin" operationId: "PluginInspect" responses: - 200: + "200": description: "no error" schema: $ref: "#/definitions/Plugin" - 404: + "404": description: "plugin is not installed" schema: $ref: "#/definitions/ErrorResponse" - 500: + "500": description: "server error" schema: $ref: "#/definitions/ErrorResponse" @@ -12201,15 +12222,15 @@ paths: summary: "Remove a plugin" operationId: "PluginDelete" responses: - 200: + "200": description: "no error" schema: $ref: "#/definitions/Plugin" - 404: + "404": description: "plugin is not installed" schema: $ref: "#/definitions/ErrorResponse" - 500: + "500": description: "server error" schema: $ref: "#/definitions/ErrorResponse" @@ -12234,13 +12255,13 @@ paths: summary: "Enable a plugin" operationId: "PluginEnable" responses: - 200: + "200": description: "no error" - 404: + "404": description: "plugin is not installed" schema: $ref: "#/definitions/ErrorResponse" - 500: + "500": description: "server error" schema: $ref: "#/definitions/ErrorResponse" @@ -12263,13 +12284,13 @@ paths: summary: "Disable a plugin" operationId: "PluginDisable" responses: - 200: + "200": description: "no error" - 404: + "404": description: "plugin is not installed" schema: $ref: "#/definitions/ErrorResponse" - 500: + "500": description: "server error" schema: $ref: "#/definitions/ErrorResponse" @@ -12293,13 +12314,13 @@ paths: summary: "Upgrade a plugin" operationId: "PluginUpgrade" responses: - 204: + "204": description: "no error" - 404: + "404": description: "plugin not installed" schema: $ref: "#/definitions/ErrorResponse" - 500: + "500": description: "server error" schema: $ref: "#/definitions/ErrorResponse" @@ -12347,6 +12368,8 @@ paths: Description: "" Value: - "/dev/cpu_dma_latency" + produces: + - "application/json" tags: ["Plugin"] /plugins/create: post: @@ -12355,9 +12378,9 @@ paths: consumes: - "application/x-tar" responses: - 204: + "204": description: "no error" - 500: + "500": description: "server error" schema: $ref: "#/definitions/ErrorResponse" @@ -12375,6 +12398,8 @@ paths: schema: type: "string" format: "binary" + produces: + - "application/json" tags: ["Plugin"] /plugins/{name}/push: post: @@ -12391,13 +12416,13 @@ paths: required: true type: "string" responses: - 200: + "200": description: "no error" - 404: + "404": description: "plugin not installed" schema: $ref: "#/definitions/ErrorResponse" - 500: + "500": description: "server error" schema: $ref: "#/definitions/ErrorResponse" @@ -12424,33 +12449,35 @@ paths: type: "string" example: ["DEBUG=1"] responses: - 204: + "204": description: "No error" - 404: + "404": description: "Plugin not installed" schema: $ref: "#/definitions/ErrorResponse" - 500: + "500": description: "Server error" schema: $ref: "#/definitions/ErrorResponse" + produces: + - "application/json" tags: ["Plugin"] /nodes: get: summary: "List nodes" operationId: "NodeList" responses: - 200: + "200": description: "no error" schema: type: "array" items: $ref: "#/definitions/Node" - 500: + "500": description: "server error" schema: $ref: "#/definitions/ErrorResponse" - 503: + "503": description: "node is not part of a swarm" schema: $ref: "#/definitions/ErrorResponse" @@ -12474,19 +12501,19 @@ paths: summary: "Inspect a node" operationId: "NodeInspect" responses: - 200: + "200": description: "no error" schema: $ref: "#/definitions/Node" - 404: + "404": description: "no such node" schema: $ref: "#/definitions/ErrorResponse" - 500: + "500": description: "server error" schema: $ref: "#/definitions/ErrorResponse" - 503: + "503": description: "node is not part of a swarm" schema: $ref: "#/definitions/ErrorResponse" @@ -12501,17 +12528,17 @@ paths: summary: "Delete a node" operationId: "NodeDelete" responses: - 200: + "200": description: "no error" - 404: + "404": description: "no such node" schema: $ref: "#/definitions/ErrorResponse" - 500: + "500": description: "server error" schema: $ref: "#/definitions/ErrorResponse" - 503: + "503": description: "node is not part of a swarm" schema: $ref: "#/definitions/ErrorResponse" @@ -12532,21 +12559,21 @@ paths: summary: "Update a node" operationId: "NodeUpdate" responses: - 200: + "200": description: "no error" - 400: + "400": description: "bad parameter" schema: $ref: "#/definitions/ErrorResponse" - 404: + "404": description: "no such node" schema: $ref: "#/definitions/ErrorResponse" - 500: + "500": description: "server error" schema: $ref: "#/definitions/ErrorResponse" - 503: + "503": description: "node is not part of a swarm" schema: $ref: "#/definitions/ErrorResponse" @@ -12574,19 +12601,19 @@ paths: summary: "Inspect swarm" operationId: "SwarmInspect" responses: - 200: + "200": description: "no error" schema: $ref: "#/definitions/Swarm" - 404: + "404": description: "no such swarm" schema: $ref: "#/definitions/ErrorResponse" - 500: + "500": description: "server error" schema: $ref: "#/definitions/ErrorResponse" - 503: + "503": description: "node is not part of a swarm" schema: $ref: "#/definitions/ErrorResponse" @@ -12599,21 +12626,21 @@ paths: - "application/json" - "text/plain" responses: - 200: + "200": description: "no error" schema: description: "The node ID" type: "string" example: "7v2t30z9blmxuhnyo6s4cpenp" - 400: + "400": description: "bad parameter" schema: $ref: "#/definitions/ErrorResponse" - 500: + "500": description: "server error" schema: $ref: "#/definitions/ErrorResponse" - 503: + "503": description: "node is already part of a swarm" schema: $ref: "#/definitions/ErrorResponse" @@ -12702,17 +12729,17 @@ paths: summary: "Join an existing swarm" operationId: "SwarmJoin" responses: - 200: + "200": description: "no error" - 400: + "400": description: "bad parameter" schema: $ref: "#/definitions/ErrorResponse" - 500: + "500": description: "server error" schema: $ref: "#/definitions/ErrorResponse" - 503: + "503": description: "node is already part of a swarm" schema: $ref: "#/definitions/ErrorResponse" @@ -12778,13 +12805,13 @@ paths: summary: "Leave a swarm" operationId: "SwarmLeave" responses: - 200: + "200": description: "no error" - 500: + "500": description: "server error" schema: $ref: "#/definitions/ErrorResponse" - 503: + "503": description: "node is not part of a swarm" schema: $ref: "#/definitions/ErrorResponse" @@ -12802,17 +12829,17 @@ paths: summary: "Update a swarm" operationId: "SwarmUpdate" responses: - 200: + "200": description: "no error" - 400: + "400": description: "bad parameter" schema: $ref: "#/definitions/ErrorResponse" - 500: + "500": description: "server error" schema: $ref: "#/definitions/ErrorResponse" - 503: + "503": description: "node is not part of a swarm" schema: $ref: "#/definitions/ErrorResponse" @@ -12853,7 +12880,7 @@ paths: consumes: - "application/json" responses: - 200: + "200": description: "no error" schema: type: "object" @@ -12864,11 +12891,11 @@ paths: type: "string" example: UnlockKey: "SWMKEY-1-7c37Cc8654o6p38HnroywCi19pllOnGtbdZEgtKxZu8" - 500: + "500": description: "server error" schema: $ref: "#/definitions/ErrorResponse" - 503: + "503": description: "node is not part of a swarm" schema: $ref: "#/definitions/ErrorResponse" @@ -12895,13 +12922,13 @@ paths: example: UnlockKey: "SWMKEY-1-7c37Cc8654o6p38HnroywCi19pllOnGtbdZEgtKxZu8" responses: - 200: + "200": description: "no error" - 500: + "500": description: "server error" schema: $ref: "#/definitions/ErrorResponse" - 503: + "503": description: "node is not part of a swarm" schema: $ref: "#/definitions/ErrorResponse" @@ -12911,17 +12938,17 @@ paths: summary: "List services" operationId: "ServiceList" responses: - 200: + "200": description: "no error" schema: type: "array" items: $ref: "#/definitions/Service" - 500: + "500": description: "server error" schema: $ref: "#/definitions/ErrorResponse" - 503: + "503": description: "node is not part of a swarm" schema: $ref: "#/definitions/ErrorResponse" @@ -12954,27 +12981,27 @@ paths: produces: - "application/json" responses: - 201: + "201": description: "no error" schema: $ref: "#/definitions/ServiceCreateResponse" - 400: + "400": description: "bad parameter" schema: $ref: "#/definitions/ErrorResponse" - 403: + "403": description: "network is not eligible for services" schema: $ref: "#/definitions/ErrorResponse" - 409: + "409": description: "name conflicts with an existing service" schema: $ref: "#/definitions/ErrorResponse" - 500: + "500": description: "server error" schema: $ref: "#/definitions/ErrorResponse" - 503: + "503": description: "node is not part of a swarm" schema: $ref: "#/definitions/ErrorResponse" @@ -13069,19 +13096,19 @@ paths: summary: "Inspect a service" operationId: "ServiceInspect" responses: - 200: + "200": description: "no error" schema: $ref: "#/definitions/Service" - 404: + "404": description: "no such service" schema: $ref: "#/definitions/ErrorResponse" - 500: + "500": description: "server error" schema: $ref: "#/definitions/ErrorResponse" - 503: + "503": description: "node is not part of a swarm" schema: $ref: "#/definitions/ErrorResponse" @@ -13101,17 +13128,17 @@ paths: summary: "Delete a service" operationId: "ServiceDelete" responses: - 200: + "200": description: "no error" - 404: + "404": description: "no such service" schema: $ref: "#/definitions/ErrorResponse" - 500: + "500": description: "server error" schema: $ref: "#/definitions/ErrorResponse" - 503: + "503": description: "node is not part of a swarm" schema: $ref: "#/definitions/ErrorResponse" @@ -13129,23 +13156,23 @@ paths: consumes: ["application/json"] produces: ["application/json"] responses: - 200: + "200": description: "no error" schema: $ref: "#/definitions/ServiceUpdateResponse" - 400: + "400": description: "bad parameter" schema: $ref: "#/definitions/ErrorResponse" - 404: + "404": description: "no such service" schema: $ref: "#/definitions/ErrorResponse" - 500: + "500": description: "server error" schema: $ref: "#/definitions/ErrorResponse" - 503: + "503": description: "node is not part of a swarm" schema: $ref: "#/definitions/ErrorResponse" @@ -13246,23 +13273,23 @@ paths: - "application/vnd.docker.multiplexed-stream" operationId: "ServiceLogs" responses: - 200: + "200": description: "logs returned as a stream in response body" schema: type: "string" format: "binary" - 404: + "404": description: "no such service" schema: $ref: "#/definitions/ErrorResponse" examples: application/json: message: "No such service: c2ada9df5af8" - 500: + "500": description: "server error" schema: $ref: "#/definitions/ErrorResponse" - 503: + "503": description: "node is not part of a swarm" schema: $ref: "#/definitions/ErrorResponse" @@ -13317,7 +13344,7 @@ paths: produces: - "application/json" responses: - 200: + "200": description: "no error" schema: type: "array" @@ -13434,11 +13461,11 @@ paths: Gateway: "10.255.0.1" Addresses: - "10.255.0.5/16" - 500: + "500": description: "server error" schema: $ref: "#/definitions/ErrorResponse" - 503: + "503": description: "node is not part of a swarm" schema: $ref: "#/definitions/ErrorResponse" @@ -13466,19 +13493,19 @@ paths: produces: - "application/json" responses: - 200: + "200": description: "no error" schema: $ref: "#/definitions/Task" - 404: + "404": description: "no such task" schema: $ref: "#/definitions/ErrorResponse" - 500: + "500": description: "server error" schema: $ref: "#/definitions/ErrorResponse" - 503: + "503": description: "node is not part of a swarm" schema: $ref: "#/definitions/ErrorResponse" @@ -13503,23 +13530,23 @@ paths: - "application/vnd.docker.raw-stream" - "application/vnd.docker.multiplexed-stream" responses: - 200: + "200": description: "logs returned as a stream in response body" schema: type: "string" format: "binary" - 404: + "404": description: "no such task" schema: $ref: "#/definitions/ErrorResponse" examples: application/json: message: "No such task: c2ada9df5af8" - 500: + "500": description: "server error" schema: $ref: "#/definitions/ErrorResponse" - 503: + "503": description: "node is not part of a swarm" schema: $ref: "#/definitions/ErrorResponse" @@ -13574,7 +13601,7 @@ paths: produces: - "application/json" responses: - 200: + "200": description: "no error" schema: type: "array" @@ -13604,11 +13631,11 @@ paths: Name: "app-dev.crt" Labels: foo: "bar" - 500: + "500": description: "server error" schema: $ref: "#/definitions/ErrorResponse" - 503: + "503": description: "node is not part of a swarm" schema: $ref: "#/definitions/ErrorResponse" @@ -13636,19 +13663,19 @@ paths: produces: - "application/json" responses: - 201: + "201": description: "no error" schema: $ref: "#/definitions/IDResponse" - 409: + "409": description: "name conflicts with an existing object" schema: $ref: "#/definitions/ErrorResponse" - 500: + "500": description: "server error" schema: $ref: "#/definitions/ErrorResponse" - 503: + "503": description: "node is not part of a swarm" schema: $ref: "#/definitions/ErrorResponse" @@ -13677,7 +13704,7 @@ paths: produces: - "application/json" responses: - 200: + "200": description: "no error" schema: $ref: "#/definitions/Secret" @@ -13698,15 +13725,15 @@ paths: OptionA: "value for driver option A" OptionB: "value for driver option B" - 404: + "404": description: "secret not found" schema: $ref: "#/definitions/ErrorResponse" - 500: + "500": description: "server error" schema: $ref: "#/definitions/ErrorResponse" - 503: + "503": description: "node is not part of a swarm" schema: $ref: "#/definitions/ErrorResponse" @@ -13723,17 +13750,17 @@ paths: produces: - "application/json" responses: - 204: + "204": description: "no error" - 404: + "404": description: "secret not found" schema: $ref: "#/definitions/ErrorResponse" - 500: + "500": description: "server error" schema: $ref: "#/definitions/ErrorResponse" - 503: + "503": description: "node is not part of a swarm" schema: $ref: "#/definitions/ErrorResponse" @@ -13749,21 +13776,21 @@ paths: summary: "Update a Secret" operationId: "SecretUpdate" responses: - 200: + "200": description: "no error" - 400: + "400": description: "bad parameter" schema: $ref: "#/definitions/ErrorResponse" - 404: + "404": description: "no such secret" schema: $ref: "#/definitions/ErrorResponse" - 500: + "500": description: "server error" schema: $ref: "#/definitions/ErrorResponse" - 503: + "503": description: "node is not part of a swarm" schema: $ref: "#/definitions/ErrorResponse" @@ -13797,7 +13824,7 @@ paths: produces: - "application/json" responses: - 200: + "200": description: "no error" schema: type: "array" @@ -13811,11 +13838,11 @@ paths: UpdatedAt: "2016-11-05T01:20:17.327670065Z" Spec: Name: "server.conf" - 500: + "500": description: "server error" schema: $ref: "#/definitions/ErrorResponse" - 503: + "503": description: "node is not part of a swarm" schema: $ref: "#/definitions/ErrorResponse" @@ -13842,19 +13869,19 @@ paths: produces: - "application/json" responses: - 201: + "201": description: "no error" schema: $ref: "#/definitions/IDResponse" - 409: + "409": description: "name conflicts with an existing object" schema: $ref: "#/definitions/ErrorResponse" - 500: + "500": description: "server error" schema: $ref: "#/definitions/ErrorResponse" - 503: + "503": description: "node is not part of a swarm" schema: $ref: "#/definitions/ErrorResponse" @@ -13878,7 +13905,7 @@ paths: produces: - "application/json" responses: - 200: + "200": description: "no error" schema: $ref: "#/definitions/Config" @@ -13891,15 +13918,15 @@ paths: UpdatedAt: "2016-11-05T01:20:17.327670065Z" Spec: Name: "app-dev.crt" - 404: + "404": description: "config not found" schema: $ref: "#/definitions/ErrorResponse" - 500: + "500": description: "server error" schema: $ref: "#/definitions/ErrorResponse" - 503: + "503": description: "node is not part of a swarm" schema: $ref: "#/definitions/ErrorResponse" @@ -13916,17 +13943,17 @@ paths: produces: - "application/json" responses: - 204: + "204": description: "no error" - 404: + "404": description: "config not found" schema: $ref: "#/definitions/ErrorResponse" - 500: + "500": description: "server error" schema: $ref: "#/definitions/ErrorResponse" - 503: + "503": description: "node is not part of a swarm" schema: $ref: "#/definitions/ErrorResponse" @@ -13942,21 +13969,21 @@ paths: summary: "Update a Config" operationId: "ConfigUpdate" responses: - 200: + "200": description: "no error" - 400: + "400": description: "bad parameter" schema: $ref: "#/definitions/ErrorResponse" - 404: + "404": description: "no such config" schema: $ref: "#/definitions/ErrorResponse" - 500: + "500": description: "server error" schema: $ref: "#/definitions/ErrorResponse" - 503: + "503": description: "node is not part of a swarm" schema: $ref: "#/definitions/ErrorResponse" @@ -13992,18 +14019,18 @@ paths: produces: - "application/json" responses: - 200: + "200": description: "descriptor and platform information" schema: $ref: "#/definitions/DistributionInspect" - 401: + "401": description: "Failed authentication or no image found" schema: $ref: "#/definitions/ErrorResponse" examples: application/json: message: "No such image: someimage (tag: latest)" - 500: + "500": description: "Server error" schema: $ref: "#/definitions/ErrorResponse" @@ -14049,13 +14076,13 @@ paths: produces: - "application/vnd.docker.raw-stream" responses: - 101: + "101": description: "no error, hijacking successful" - 400: + "400": description: "bad parameter" schema: $ref: "#/definitions/ErrorResponse" - 500: + "500": description: "server error" schema: $ref: "#/definitions/ErrorResponse" diff --git a/vendor/github.com/moby/moby/api/types/build/disk_usage.go b/vendor/github.com/moby/moby/api/types/build/disk_usage.go index 3613797dba..bf178f81e6 100644 --- a/vendor/github.com/moby/moby/api/types/build/disk_usage.go +++ b/vendor/github.com/moby/moby/api/types/build/disk_usage.go @@ -2,9 +2,6 @@ package build -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - // DiskUsage represents system data usage for build cache resources. // // swagger:model DiskUsage diff --git a/vendor/github.com/moby/moby/api/types/common/error_response.go b/vendor/github.com/moby/moby/api/types/common/error_response.go index b49d3eea0a..9c7f2fdc2d 100644 --- a/vendor/github.com/moby/moby/api/types/common/error_response.go +++ b/vendor/github.com/moby/moby/api/types/common/error_response.go @@ -2,9 +2,6 @@ package common -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - // ErrorResponse Represents an error. // Example: {"message":"Something went wrong."} // diff --git a/vendor/github.com/moby/moby/api/types/common/id_response.go b/vendor/github.com/moby/moby/api/types/common/id_response.go index 7dfe4bf12b..546f5e8d1f 100644 --- a/vendor/github.com/moby/moby/api/types/common/id_response.go +++ b/vendor/github.com/moby/moby/api/types/common/id_response.go @@ -2,9 +2,6 @@ package common -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - // IDResponse Response to an API call that returns just an Id // // swagger:model IDResponse diff --git a/vendor/github.com/moby/moby/api/types/container/change_type.go b/vendor/github.com/moby/moby/api/types/container/change_type.go index 52fc99235b..1f2ac105f7 100644 --- a/vendor/github.com/moby/moby/api/types/container/change_type.go +++ b/vendor/github.com/moby/moby/api/types/container/change_type.go @@ -2,9 +2,6 @@ package container -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - // ChangeType Kind of change // // Can be one of: diff --git a/vendor/github.com/moby/moby/api/types/container/create_response.go b/vendor/github.com/moby/moby/api/types/container/create_response.go index 39d761aa96..9fc92fb6fe 100644 --- a/vendor/github.com/moby/moby/api/types/container/create_response.go +++ b/vendor/github.com/moby/moby/api/types/container/create_response.go @@ -2,9 +2,6 @@ package container -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - // CreateResponse ContainerCreateResponse // // # OK response to ContainerCreate operation diff --git a/vendor/github.com/moby/moby/api/types/container/disk_usage.go b/vendor/github.com/moby/moby/api/types/container/disk_usage.go index c36721d3b0..0c0a772d62 100644 --- a/vendor/github.com/moby/moby/api/types/container/disk_usage.go +++ b/vendor/github.com/moby/moby/api/types/container/disk_usage.go @@ -2,9 +2,6 @@ package container -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - // DiskUsage represents system data usage information for container resources. // // swagger:model DiskUsage diff --git a/vendor/github.com/moby/moby/api/types/container/filesystem_change.go b/vendor/github.com/moby/moby/api/types/container/filesystem_change.go index b9ec83e521..d895095259 100644 --- a/vendor/github.com/moby/moby/api/types/container/filesystem_change.go +++ b/vendor/github.com/moby/moby/api/types/container/filesystem_change.go @@ -2,9 +2,6 @@ package container -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - // FilesystemChange Change in the container's filesystem. // // swagger:model FilesystemChange diff --git a/vendor/github.com/moby/moby/api/types/container/port_summary.go b/vendor/github.com/moby/moby/api/types/container/port_summary.go index 68148eece4..0cb7455f36 100644 --- a/vendor/github.com/moby/moby/api/types/container/port_summary.go +++ b/vendor/github.com/moby/moby/api/types/container/port_summary.go @@ -2,9 +2,6 @@ package container -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - import ( "net/netip" ) diff --git a/vendor/github.com/moby/moby/api/types/container/top_response.go b/vendor/github.com/moby/moby/api/types/container/top_response.go index 966603617f..50124e8a76 100644 --- a/vendor/github.com/moby/moby/api/types/container/top_response.go +++ b/vendor/github.com/moby/moby/api/types/container/top_response.go @@ -2,9 +2,6 @@ package container -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - // TopResponse ContainerTopResponse // // Container "top" response. diff --git a/vendor/github.com/moby/moby/api/types/container/update_response.go b/vendor/github.com/moby/moby/api/types/container/update_response.go index 2f7263b141..94e5eccb20 100644 --- a/vendor/github.com/moby/moby/api/types/container/update_response.go +++ b/vendor/github.com/moby/moby/api/types/container/update_response.go @@ -2,9 +2,6 @@ package container -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - // UpdateResponse ContainerUpdateResponse // // Response for a successful container-update. diff --git a/vendor/github.com/moby/moby/api/types/container/wait_exit_error.go b/vendor/github.com/moby/moby/api/types/container/wait_exit_error.go index 96a7770c34..50f353f95e 100644 --- a/vendor/github.com/moby/moby/api/types/container/wait_exit_error.go +++ b/vendor/github.com/moby/moby/api/types/container/wait_exit_error.go @@ -2,9 +2,6 @@ package container -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - // WaitExitError container waiting error, if any // // swagger:model WaitExitError diff --git a/vendor/github.com/moby/moby/api/types/container/wait_response.go b/vendor/github.com/moby/moby/api/types/container/wait_response.go index 68d3c38724..ff9281dd91 100644 --- a/vendor/github.com/moby/moby/api/types/container/wait_response.go +++ b/vendor/github.com/moby/moby/api/types/container/wait_response.go @@ -2,9 +2,6 @@ package container -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - // WaitResponse ContainerWaitResponse // // # OK response to ContainerWait operation diff --git a/vendor/github.com/moby/moby/api/types/image/delete_response.go b/vendor/github.com/moby/moby/api/types/image/delete_response.go index b19119a381..c0a0a5af3d 100644 --- a/vendor/github.com/moby/moby/api/types/image/delete_response.go +++ b/vendor/github.com/moby/moby/api/types/image/delete_response.go @@ -2,9 +2,6 @@ package image -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - // DeleteResponse delete response // // swagger:model DeleteResponse diff --git a/vendor/github.com/moby/moby/api/types/image/disk_usage.go b/vendor/github.com/moby/moby/api/types/image/disk_usage.go index 7297813c1d..bbe2d57672 100644 --- a/vendor/github.com/moby/moby/api/types/image/disk_usage.go +++ b/vendor/github.com/moby/moby/api/types/image/disk_usage.go @@ -2,9 +2,6 @@ package image -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - // DiskUsage represents system data usage for image resources. // // swagger:model DiskUsage diff --git a/vendor/github.com/moby/moby/api/types/image/history_response_item.go b/vendor/github.com/moby/moby/api/types/image/history_response_item.go index 3de3181ab9..c7b1eddcd9 100644 --- a/vendor/github.com/moby/moby/api/types/image/history_response_item.go +++ b/vendor/github.com/moby/moby/api/types/image/history_response_item.go @@ -2,9 +2,6 @@ package image -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - // HistoryResponseItem HistoryResponseItem // // individual image layer information in response to ImageHistory operation diff --git a/vendor/github.com/moby/moby/api/types/network/config_reference.go b/vendor/github.com/moby/moby/api/types/network/config_reference.go index 1158afe655..0c940a9e74 100644 --- a/vendor/github.com/moby/moby/api/types/network/config_reference.go +++ b/vendor/github.com/moby/moby/api/types/network/config_reference.go @@ -2,9 +2,6 @@ package network -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - // ConfigReference The config-only network source to provide the configuration for // this network. // diff --git a/vendor/github.com/moby/moby/api/types/network/connect_request.go b/vendor/github.com/moby/moby/api/types/network/connect_request.go index 2ff14d3603..68fbf16844 100644 --- a/vendor/github.com/moby/moby/api/types/network/connect_request.go +++ b/vendor/github.com/moby/moby/api/types/network/connect_request.go @@ -2,9 +2,6 @@ package network -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - // ConnectRequest NetworkConnectRequest represents the data to be used to connect a container to a network. // // swagger:model ConnectRequest diff --git a/vendor/github.com/moby/moby/api/types/network/create_response.go b/vendor/github.com/moby/moby/api/types/network/create_response.go index 1997059912..429b278e48 100644 --- a/vendor/github.com/moby/moby/api/types/network/create_response.go +++ b/vendor/github.com/moby/moby/api/types/network/create_response.go @@ -2,9 +2,6 @@ package network -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - // CreateResponse NetworkCreateResponse // // # OK response to NetworkCreate operation diff --git a/vendor/github.com/moby/moby/api/types/network/disconnect_request.go b/vendor/github.com/moby/moby/api/types/network/disconnect_request.go index 7b1f521e77..aeebee70a9 100644 --- a/vendor/github.com/moby/moby/api/types/network/disconnect_request.go +++ b/vendor/github.com/moby/moby/api/types/network/disconnect_request.go @@ -2,9 +2,6 @@ package network -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - // DisconnectRequest NetworkDisconnectRequest represents the data to be used to disconnect a container from a network. // // swagger:model DisconnectRequest diff --git a/vendor/github.com/moby/moby/api/types/network/endpoint_resource.go b/vendor/github.com/moby/moby/api/types/network/endpoint_resource.go index bf493ad5dd..a9ab27ae3c 100644 --- a/vendor/github.com/moby/moby/api/types/network/endpoint_resource.go +++ b/vendor/github.com/moby/moby/api/types/network/endpoint_resource.go @@ -2,9 +2,6 @@ package network -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - import ( "net/netip" ) diff --git a/vendor/github.com/moby/moby/api/types/network/inspect.go b/vendor/github.com/moby/moby/api/types/network/inspect.go index cded5e6081..c07026ac40 100644 --- a/vendor/github.com/moby/moby/api/types/network/inspect.go +++ b/vendor/github.com/moby/moby/api/types/network/inspect.go @@ -2,9 +2,6 @@ package network -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - // Inspect The body of the "get network" http response message. // // swagger:model Inspect diff --git a/vendor/github.com/moby/moby/api/types/network/ipam_status.go b/vendor/github.com/moby/moby/api/types/network/ipam_status.go index 7eb4e8487e..50e410ff8f 100644 --- a/vendor/github.com/moby/moby/api/types/network/ipam_status.go +++ b/vendor/github.com/moby/moby/api/types/network/ipam_status.go @@ -2,9 +2,6 @@ package network -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - // IPAMStatus IPAM status // // swagger:model IPAMStatus diff --git a/vendor/github.com/moby/moby/api/types/network/network.go b/vendor/github.com/moby/moby/api/types/network/network.go index a7d9c0f6ad..b2d4d43cd2 100644 --- a/vendor/github.com/moby/moby/api/types/network/network.go +++ b/vendor/github.com/moby/moby/api/types/network/network.go @@ -2,9 +2,6 @@ package network -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - import ( timeext "time" ) diff --git a/vendor/github.com/moby/moby/api/types/network/peer_info.go b/vendor/github.com/moby/moby/api/types/network/peer_info.go index dc88ec16fa..8638e61623 100644 --- a/vendor/github.com/moby/moby/api/types/network/peer_info.go +++ b/vendor/github.com/moby/moby/api/types/network/peer_info.go @@ -2,9 +2,6 @@ package network -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - import ( "net/netip" ) diff --git a/vendor/github.com/moby/moby/api/types/network/service_info.go b/vendor/github.com/moby/moby/api/types/network/service_info.go index fdd92f1611..abb3619533 100644 --- a/vendor/github.com/moby/moby/api/types/network/service_info.go +++ b/vendor/github.com/moby/moby/api/types/network/service_info.go @@ -2,9 +2,6 @@ package network -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - import ( "net/netip" ) diff --git a/vendor/github.com/moby/moby/api/types/network/status.go b/vendor/github.com/moby/moby/api/types/network/status.go index 94f4b4b2ec..b90f1bf1e8 100644 --- a/vendor/github.com/moby/moby/api/types/network/status.go +++ b/vendor/github.com/moby/moby/api/types/network/status.go @@ -2,9 +2,6 @@ package network -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - // Status provides runtime information about the network such as the number of allocated IPs. // // swagger:model Status diff --git a/vendor/github.com/moby/moby/api/types/network/subnet_status.go b/vendor/github.com/moby/moby/api/types/network/subnet_status.go index dd62429f5f..de74c7a2e6 100644 --- a/vendor/github.com/moby/moby/api/types/network/subnet_status.go +++ b/vendor/github.com/moby/moby/api/types/network/subnet_status.go @@ -2,9 +2,6 @@ package network -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - // SubnetStatus subnet status // // swagger:model SubnetStatus diff --git a/vendor/github.com/moby/moby/api/types/network/summary.go b/vendor/github.com/moby/moby/api/types/network/summary.go index 3f50ce2278..50c346ffa5 100644 --- a/vendor/github.com/moby/moby/api/types/network/summary.go +++ b/vendor/github.com/moby/moby/api/types/network/summary.go @@ -2,9 +2,6 @@ package network -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - // Summary Network list response item // // swagger:model Summary diff --git a/vendor/github.com/moby/moby/api/types/network/task.go b/vendor/github.com/moby/moby/api/types/network/task.go index a547523a44..c0eac2322e 100644 --- a/vendor/github.com/moby/moby/api/types/network/task.go +++ b/vendor/github.com/moby/moby/api/types/network/task.go @@ -2,9 +2,6 @@ package network -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - import ( "net/netip" ) diff --git a/vendor/github.com/moby/moby/api/types/plugin/device.go b/vendor/github.com/moby/moby/api/types/plugin/device.go index ae96177047..2044e4b99a 100644 --- a/vendor/github.com/moby/moby/api/types/plugin/device.go +++ b/vendor/github.com/moby/moby/api/types/plugin/device.go @@ -2,9 +2,6 @@ package plugin -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - // Device device // // swagger:model Device diff --git a/vendor/github.com/moby/moby/api/types/plugin/env.go b/vendor/github.com/moby/moby/api/types/plugin/env.go index dcbe0b762d..99ee46dabf 100644 --- a/vendor/github.com/moby/moby/api/types/plugin/env.go +++ b/vendor/github.com/moby/moby/api/types/plugin/env.go @@ -2,9 +2,6 @@ package plugin -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - // Env env // // swagger:model Env diff --git a/vendor/github.com/moby/moby/api/types/plugin/mount.go b/vendor/github.com/moby/moby/api/types/plugin/mount.go index 7970306cc8..9426a94c57 100644 --- a/vendor/github.com/moby/moby/api/types/plugin/mount.go +++ b/vendor/github.com/moby/moby/api/types/plugin/mount.go @@ -2,9 +2,6 @@ package plugin -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - // Mount mount // // swagger:model Mount diff --git a/vendor/github.com/moby/moby/api/types/plugin/plugin.go b/vendor/github.com/moby/moby/api/types/plugin/plugin.go index 3305170d5e..2dcf83be25 100644 --- a/vendor/github.com/moby/moby/api/types/plugin/plugin.go +++ b/vendor/github.com/moby/moby/api/types/plugin/plugin.go @@ -2,9 +2,6 @@ package plugin -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - // Plugin A plugin for the Engine API // // swagger:model Plugin diff --git a/vendor/github.com/moby/moby/api/types/registry/auth_response.go b/vendor/github.com/moby/moby/api/types/registry/auth_response.go index 94c2e1bb36..c7057d8606 100644 --- a/vendor/github.com/moby/moby/api/types/registry/auth_response.go +++ b/vendor/github.com/moby/moby/api/types/registry/auth_response.go @@ -2,9 +2,6 @@ package registry -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - // AuthResponse An identity token was generated successfully. // // swagger:model AuthResponse diff --git a/vendor/github.com/moby/moby/api/types/storage/driver_data.go b/vendor/github.com/moby/moby/api/types/storage/driver_data.go index 65d5b4c20e..5e6cb22ab5 100644 --- a/vendor/github.com/moby/moby/api/types/storage/driver_data.go +++ b/vendor/github.com/moby/moby/api/types/storage/driver_data.go @@ -2,9 +2,6 @@ package storage -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - // DriverData Information about the storage driver used to store the container's and // image's filesystem. // diff --git a/vendor/github.com/moby/moby/api/types/storage/root_f_s_storage.go b/vendor/github.com/moby/moby/api/types/storage/root_f_s_storage.go index d82f2b6bcb..ecf63ea0cc 100644 --- a/vendor/github.com/moby/moby/api/types/storage/root_f_s_storage.go +++ b/vendor/github.com/moby/moby/api/types/storage/root_f_s_storage.go @@ -2,9 +2,6 @@ package storage -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - // RootFSStorage Information about the storage used for the container's root filesystem. // // swagger:model RootFSStorage diff --git a/vendor/github.com/moby/moby/api/types/storage/root_f_s_storage_snapshot.go b/vendor/github.com/moby/moby/api/types/storage/root_f_s_storage_snapshot.go index dd2b82d245..c040636da8 100644 --- a/vendor/github.com/moby/moby/api/types/storage/root_f_s_storage_snapshot.go +++ b/vendor/github.com/moby/moby/api/types/storage/root_f_s_storage_snapshot.go @@ -2,9 +2,6 @@ package storage -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - // RootFSStorageSnapshot Information about a snapshot backend of the container's root filesystem. // // swagger:model RootFSStorageSnapshot diff --git a/vendor/github.com/moby/moby/api/types/storage/storage.go b/vendor/github.com/moby/moby/api/types/storage/storage.go index 77843db970..4cf31c54b5 100644 --- a/vendor/github.com/moby/moby/api/types/storage/storage.go +++ b/vendor/github.com/moby/moby/api/types/storage/storage.go @@ -2,9 +2,6 @@ package storage -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - // Storage Information about the storage used by the container. // // swagger:model Storage diff --git a/vendor/github.com/moby/moby/api/types/swarm/service_create_response.go b/vendor/github.com/moby/moby/api/types/swarm/service_create_response.go index ebbc097d90..2dcc49c903 100644 --- a/vendor/github.com/moby/moby/api/types/swarm/service_create_response.go +++ b/vendor/github.com/moby/moby/api/types/swarm/service_create_response.go @@ -2,9 +2,6 @@ package swarm -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - // ServiceCreateResponse contains the information returned to a client on the // creation of a new service. // diff --git a/vendor/github.com/moby/moby/api/types/swarm/service_update_response.go b/vendor/github.com/moby/moby/api/types/swarm/service_update_response.go index b7649096a0..be5d44c4cf 100644 --- a/vendor/github.com/moby/moby/api/types/swarm/service_update_response.go +++ b/vendor/github.com/moby/moby/api/types/swarm/service_update_response.go @@ -2,9 +2,6 @@ package swarm -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - // ServiceUpdateResponse service update response // Example: {"Warnings":["unable to pin image doesnotexist:latest to digest: image library/doesnotexist:latest not found"]} // diff --git a/vendor/github.com/moby/moby/api/types/volume/create_request.go b/vendor/github.com/moby/moby/api/types/volume/create_request.go index 3217df8270..17c5f86784 100644 --- a/vendor/github.com/moby/moby/api/types/volume/create_request.go +++ b/vendor/github.com/moby/moby/api/types/volume/create_request.go @@ -2,9 +2,6 @@ package volume -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - // CreateRequest VolumeConfig // // # Volume configuration diff --git a/vendor/github.com/moby/moby/api/types/volume/disk_usage.go b/vendor/github.com/moby/moby/api/types/volume/disk_usage.go index e2afbac659..cbf740e33c 100644 --- a/vendor/github.com/moby/moby/api/types/volume/disk_usage.go +++ b/vendor/github.com/moby/moby/api/types/volume/disk_usage.go @@ -2,9 +2,6 @@ package volume -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - // DiskUsage represents system data usage for volume resources. // // swagger:model DiskUsage diff --git a/vendor/github.com/moby/moby/api/types/volume/list_response.go b/vendor/github.com/moby/moby/api/types/volume/list_response.go index f257762f09..02dc415a5f 100644 --- a/vendor/github.com/moby/moby/api/types/volume/list_response.go +++ b/vendor/github.com/moby/moby/api/types/volume/list_response.go @@ -2,9 +2,6 @@ package volume -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - // ListResponse VolumeListResponse // // # Volume list response diff --git a/vendor/github.com/moby/moby/api/types/volume/volume.go b/vendor/github.com/moby/moby/api/types/volume/volume.go index 524ebfb8ac..a3d6d82864 100644 --- a/vendor/github.com/moby/moby/api/types/volume/volume.go +++ b/vendor/github.com/moby/moby/api/types/volume/volume.go @@ -2,9 +2,6 @@ package volume -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - // Volume volume // // swagger:model Volume diff --git a/vendor/github.com/moby/moby/client/client.go b/vendor/github.com/moby/moby/client/client.go index 3dbcacdeb9..f407505e01 100644 --- a/vendor/github.com/moby/moby/client/client.go +++ b/vendor/github.com/moby/moby/client/client.go @@ -60,7 +60,6 @@ import ( "net/url" "path" "runtime" - "slices" "strings" "sync" "sync/atomic" @@ -250,10 +249,11 @@ func New(ops ...Opt) (*Client, error) { c.client.Transport = otelhttp.NewTransport(c.client.Transport, c.traceOpts...) - if len(cfg.responseHooks) > 0 { - c.client.Transport = &responseHookTransport{ - base: c.client.Transport, - hooks: slices.Clone(cfg.responseHooks), + if len(cfg.requestHooks) > 0 || len(cfg.responseHooks) > 0 { + c.client.Transport = &hookTransport{ + base: c.client.Transport, + reqHooks: cfg.requestHooks, + respHooks: cfg.responseHooks, } } diff --git a/vendor/github.com/moby/moby/client/client_hook.go b/vendor/github.com/moby/moby/client/client_hook.go new file mode 100644 index 0000000000..c9afa34ddd --- /dev/null +++ b/vendor/github.com/moby/moby/client/client_hook.go @@ -0,0 +1,70 @@ +package client + +import ( + "errors" + "io" + "net/http" +) + +type hookTransport struct { + base http.RoundTripper + reqHooks []RequestHook + respHooks []ResponseHook +} + +func (t *hookTransport) RoundTrip(req *http.Request) (*http.Response, error) { + if len(t.reqHooks) > 0 { + hookReq := req.Clone(req.Context()) + + if hookReq.Body != nil { + hookReq.Body = hookBody{} + } + if hookReq.GetBody != nil { + hookReq.GetBody = func() (io.ReadCloser, error) { + return hookBody{}, nil + } + } + + for _, h := range t.reqHooks { + if err := h(hookReq); err != nil { + // The base transport never takes ownership, so close the original + // request body before returning the hook error. + if req.Body != nil { + _ = req.Body.Close() + } + return nil, err + } + } + // Restore the actual request body after the hooks have run. The + // modified request metadata is preserved on hookReq. + hookReq.Body = req.Body + hookReq.GetBody = req.GetBody + req = hookReq + } + + resp, err := t.base.RoundTrip(req) + if err != nil { + return resp, err + } + + if len(t.respHooks) > 0 { + hookResp := *resp + if hookResp.Body != nil { + hookResp.Body = hookBody{} + } + + for _, h := range t.respHooks { + h(&hookResp) + } + } + + return resp, nil +} + +type hookBody struct{} + +func (hookBody) Read([]byte) (int, error) { + return 0, errors.New("hooks must not read HTTP message body") +} + +func (hookBody) Close() error { return nil } diff --git a/vendor/github.com/moby/moby/client/client_options.go b/vendor/github.com/moby/moby/client/client_options.go index 3992557230..3499172c4d 100644 --- a/vendor/github.com/moby/moby/client/client_options.go +++ b/vendor/github.com/moby/moby/client/client_options.go @@ -58,13 +58,23 @@ type clientConfig struct { // takes precedence. Either field disables API-version negotiation. envAPIVersion string - // responseHooks is a list of custom response hooks to call on responses. + // requestHooks contains hooks to call before requests are made. + requestHooks []RequestHook + // responseHooks contains hooks to call on responses. responseHooks []ResponseHook // traceOpts is a list of options to configure the tracing span. traceOpts []otelhttp.Option } +// RequestHook is called for each HTTP request made by the client. +// Hooks are invoked in the order they were added. +// +// Hooks may inspect the request and modify request metadata, such as headers, +// before the request is sent. The request body cannot be read or closed by +// the hook. +type RequestHook func(*http.Request) error + // ResponseHook is called for each HTTP response returned by the daemon. // Hooks are invoked in the order they were added. // @@ -411,12 +421,25 @@ func WithTraceOptions(opts ...otelhttp.Option) Opt { } } -// WithResponseHook adds a ResponseHook to the client. ResponseHooks are called +// WithHTTPRequestHook adds a [RequestHook] to the client. RequestHooks are called +// before an HTTP request is made to the daemon. Hooks are invoked in the order +// they were added. +func WithHTTPRequestHook(h RequestHook) Opt { + return func(c *clientConfig) error { + if h == nil { + return errors.New("invalid request hook: hook is nil") + } + c.requestHooks = append(c.requestHooks, h) + return nil + } +} + +// WithHTTPResponseHook adds a [ResponseHook] to the client. ResponseHooks are called // for each HTTP response returned by the daemon. Hooks are invoked in the order // they were added. // // Hooks must not read or close resp.Body. -func WithResponseHook(h ResponseHook) Opt { +func WithHTTPResponseHook(h ResponseHook) Opt { return func(c *clientConfig) error { if h == nil { return errors.New("invalid response hook: hook is nil") @@ -425,3 +448,12 @@ func WithResponseHook(h ResponseHook) Opt { return nil } } + +// WithResponseHook is equivalent to [WithHTTPResponseHook]. +// +// Deprecated: use [WithHTTPResponseHook] instead. +// +//go:fix inline +func WithResponseHook(h ResponseHook) Opt { + return WithHTTPResponseHook(h) +} diff --git a/vendor/github.com/moby/moby/client/client_responsehook.go b/vendor/github.com/moby/moby/client/client_responsehook.go deleted file mode 100644 index 7c93f111c7..0000000000 --- a/vendor/github.com/moby/moby/client/client_responsehook.go +++ /dev/null @@ -1,23 +0,0 @@ -package client - -import ( - "net/http" -) - -type responseHookTransport struct { - base http.RoundTripper - hooks []ResponseHook -} - -func (t *responseHookTransport) RoundTrip(req *http.Request) (*http.Response, error) { - resp, err := t.base.RoundTrip(req) - if err != nil { - return resp, err - } - - for _, h := range t.hooks { - h(resp) - } - - return resp, nil -} diff --git a/vendor/github.com/moby/moby/client/container_attach.go b/vendor/github.com/moby/moby/client/container_attach.go index ce84122d32..9619e812b2 100644 --- a/vendor/github.com/moby/moby/client/container_attach.go +++ b/vendor/github.com/moby/moby/client/container_attach.go @@ -75,9 +75,8 @@ func (cli *Client) ContainerAttach(ctx context.Context, containerID string, opti query.Set("logs", "1") } - hijacked, err := cli.postHijacked(ctx, "/containers/"+containerID+"/attach", query, nil, http.Header{ - "Content-Type": {"text/plain"}, - }) + headers := http.Header{"Content-Type": {"text/plain"}} + hijacked, err := cli.postHijacked(ctx, "/containers/"+containerID+"/attach", query, headers, nil) if err != nil { return ContainerAttachResult{}, err } diff --git a/vendor/github.com/moby/moby/client/container_exec.go b/vendor/github.com/moby/moby/client/container_exec.go index 86c9474b48..d831521842 100644 --- a/vendor/github.com/moby/moby/client/container_exec.go +++ b/vendor/github.com/moby/moby/client/container_exec.go @@ -134,13 +134,11 @@ func (cli *Client) ExecAttach(ctx context.Context, execID string, options ExecAt if err != nil { return ExecAttachResult{}, err } - req := container.ExecStartRequest{ + headers := http.Header{"Content-Type": {"application/json"}} + response, err := cli.postHijacked(ctx, "/exec/"+execID+"/start", nil, headers, container.ExecStartRequest{ Detach: false, Tty: options.TTY, ConsoleSize: consoleSize, - } - response, err := cli.postHijacked(ctx, "/exec/"+execID+"/start", nil, req, http.Header{ - "Content-Type": {"application/json"}, }) return ExecAttachResult{HijackedResponse: response}, err } diff --git a/vendor/github.com/moby/moby/client/hijack.go b/vendor/github.com/moby/moby/client/hijack.go index 3b6b12c8fd..fb3a232608 100644 --- a/vendor/github.com/moby/moby/client/hijack.go +++ b/vendor/github.com/moby/moby/client/hijack.go @@ -13,7 +13,7 @@ import ( ) // postHijacked sends a POST request and hijacks the connection. -func (cli *Client) postHijacked(ctx context.Context, path string, query url.Values, body any, headers map[string][]string) (HijackedResponse, error) { +func (cli *Client) postHijacked(ctx context.Context, path string, query url.Values, headers map[string][]string, body any) (HijackedResponse, error) { jsonBody, err := jsonEncode(body) if err != nil { return HijackedResponse{}, err @@ -22,7 +22,7 @@ func (cli *Client) postHijacked(ctx context.Context, path string, query url.Valu if err != nil { return HijackedResponse{}, err } - conn, mediaType, err := setupHijackConn(cli.dialer(), req, "tcp") + conn, mediaType, err := cli.setupHijackConn(req, "tcp") if err != nil { return HijackedResponse{}, err } @@ -38,16 +38,17 @@ func (cli *Client) DialHijack(ctx context.Context, url, proto string, meta map[s } req = cli.addHeaders(req, meta) - conn, _, err := setupHijackConn(cli.Dialer(), req, proto) + conn, _, err := cli.setupHijackConn(req, proto) return conn, err } -func setupHijackConn(dialer func(context.Context) (net.Conn, error), req *http.Request, proto string) (_ net.Conn, _ string, retErr error) { +func (cli *Client) setupHijackConn(req *http.Request, proto string) (_ net.Conn, _ string, retErr error) { ctx := req.Context() req.Header.Set("Connection", "Upgrade") req.Header.Set("Upgrade", proto) - conn, err := dialer(ctx) + dial := cli.dialer() + conn, err := dial(ctx) if err != nil { return nil, "", fmt.Errorf("cannot connect to the Docker daemon. Is 'docker daemon' running on this host?: %w", err) } @@ -69,8 +70,19 @@ func setupHijackConn(dialer func(context.Context) (net.Conn, error), req *http.R hc := &hijackedConn{conn, bufio.NewReader(conn)} + cfg := &cli.clientConfig + + var rt http.RoundTripper = otelhttp.NewTransport(hc, cli.traceOpts...) + if len(cfg.requestHooks) > 0 || len(cfg.responseHooks) > 0 { + rt = &hookTransport{ + base: rt, + reqHooks: cfg.requestHooks, + respHooks: cfg.responseHooks, + } + } + // Server hijacks the connection, error 'connection closed' expected - resp, err := otelhttp.NewTransport(hc).RoundTrip(req) + resp, err := rt.RoundTrip(req) if err != nil { return nil, "", err } diff --git a/vendor/github.com/moby/moby/client/plugin_create.go b/vendor/github.com/moby/moby/client/plugin_create.go index f4e7c9a02f..774b9e36b5 100644 --- a/vendor/github.com/moby/moby/client/plugin_create.go +++ b/vendor/github.com/moby/moby/client/plugin_create.go @@ -19,12 +19,10 @@ type PluginCreateResult struct { // PluginCreate creates a plugin func (cli *Client) PluginCreate(ctx context.Context, createContext io.Reader, createOptions PluginCreateOptions) (PluginCreateResult, error) { - headers := http.Header(make(map[string][]string)) - headers.Set("Content-Type", "application/x-tar") - query := url.Values{} query.Set("name", createOptions.RepoName) + headers := http.Header{"Content-Type": {"application/x-tar"}} resp, err := cli.postRaw(ctx, "/plugins/create", query, headers, createContext) defer ensureReaderClosed(resp) return PluginCreateResult{}, err diff --git a/vendor/modules.txt b/vendor/modules.txt index 0cd9b09204..522ca08b02 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -408,7 +408,7 @@ github.com/moby/go-archive github.com/moby/go-archive/compression github.com/moby/go-archive/internal/archiveoptions github.com/moby/go-archive/tarheader -# github.com/moby/moby/api v1.56.0 +# github.com/moby/moby/api v1.56.1 ## explicit; go 1.24 github.com/moby/moby/api github.com/moby/moby/api/pkg/stdcopy @@ -429,7 +429,7 @@ github.com/moby/moby/api/types/storage github.com/moby/moby/api/types/swarm github.com/moby/moby/api/types/system github.com/moby/moby/api/types/volume -# github.com/moby/moby/client v0.6.0 +# github.com/moby/moby/client v0.6.1 ## explicit; go 1.24 github.com/moby/moby/client github.com/moby/moby/client/internal