소스 검색

api: Document `version` in `/build`

It was introduced in API v1.38 but wasn't documented.

Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
Paweł Gronowski 1 년 전
부모
커밋
0c3b8ccda7
8개의 변경된 파일80개의 추가작업 그리고 0개의 파일을 삭제
  1. 10 0
      api/swagger.yaml
  2. 10 0
      docs/api/v1.38.yaml
  3. 10 0
      docs/api/v1.39.yaml
  4. 10 0
      docs/api/v1.40.yaml
  5. 10 0
      docs/api/v1.41.yaml
  6. 10 0
      docs/api/v1.42.yaml
  7. 10 0
      docs/api/v1.43.yaml
  8. 10 0
      docs/api/v1.44.yaml

+ 10 - 0
api/swagger.yaml

@@ -8331,6 +8331,16 @@ paths:
           description: "BuildKit output configuration"
           description: "BuildKit output configuration"
           type: "string"
           type: "string"
           default: ""
           default: ""
+        - name: "version"
+          in: "query"
+          type: "string"
+          default: "1"
+          enum: ["1", "2"]
+          description: |
+            Version of the builder backend to use.
+
+            - `1` is the first generation classic (deprecated) builder in the Docker daemon (default)
+            - `2` is [BuildKit](https://github.com/moby/buildkit)
       responses:
       responses:
         200:
         200:
           description: "no error"
           description: "no error"

+ 10 - 0
docs/api/v1.38.yaml

@@ -6356,6 +6356,16 @@ paths:
           description: "Target build stage"
           description: "Target build stage"
           type: "string"
           type: "string"
           default: ""
           default: ""
+        - name: "version"
+          in: "query"
+          type: "string"
+          default: "1"
+          enum: ["1", "2"]
+          description: |
+            Version of the builder backend to use.
+
+            - `1` is the first generation classic (deprecated) builder in the Docker daemon (default)
+            - `2` is [BuildKit](https://github.com/moby/buildkit)
       responses:
       responses:
         200:
         200:
           description: "no error"
           description: "no error"

+ 10 - 0
docs/api/v1.39.yaml

@@ -7390,6 +7390,16 @@ paths:
           description: "Target build stage"
           description: "Target build stage"
           type: "string"
           type: "string"
           default: ""
           default: ""
+        - name: "version"
+          in: "query"
+          type: "string"
+          default: "1"
+          enum: ["1", "2"]
+          description: |
+            Version of the builder backend to use.
+
+            - `1` is the first generation classic (deprecated) builder in the Docker daemon (default)
+            - `2` is [BuildKit](https://github.com/moby/buildkit)
       responses:
       responses:
         200:
         200:
           description: "no error"
           description: "no error"

+ 10 - 0
docs/api/v1.40.yaml

@@ -7701,6 +7701,16 @@ paths:
           description: "BuildKit output configuration"
           description: "BuildKit output configuration"
           type: "string"
           type: "string"
           default: ""
           default: ""
+        - name: "version"
+          in: "query"
+          type: "string"
+          default: "1"
+          enum: ["1", "2"]
+          description: |
+            Version of the builder backend to use.
+
+            - `1` is the first generation classic (deprecated) builder in the Docker daemon (default)
+            - `2` is [BuildKit](https://github.com/moby/buildkit)
       responses:
       responses:
         200:
         200:
           description: "no error"
           description: "no error"

+ 10 - 0
docs/api/v1.41.yaml

@@ -7906,6 +7906,16 @@ paths:
           description: "BuildKit output configuration"
           description: "BuildKit output configuration"
           type: "string"
           type: "string"
           default: ""
           default: ""
+        - name: "version"
+          in: "query"
+          type: "string"
+          default: "1"
+          enum: ["1", "2"]
+          description: |
+            Version of the builder backend to use.
+
+            - `1` is the first generation classic (deprecated) builder in the Docker daemon (default)
+            - `2` is [BuildKit](https://github.com/moby/buildkit)
       responses:
       responses:
         200:
         200:
           description: "no error"
           description: "no error"

+ 10 - 0
docs/api/v1.42.yaml

@@ -8156,6 +8156,16 @@ paths:
           description: "BuildKit output configuration"
           description: "BuildKit output configuration"
           type: "string"
           type: "string"
           default: ""
           default: ""
+        - name: "version"
+          in: "query"
+          type: "string"
+          default: "1"
+          enum: ["1", "2"]
+          description: |
+            Version of the builder backend to use.
+
+            - `1` is the first generation classic (deprecated) builder in the Docker daemon (default)
+            - `2` is [BuildKit](https://github.com/moby/buildkit)
       responses:
       responses:
         200:
         200:
           description: "no error"
           description: "no error"

+ 10 - 0
docs/api/v1.43.yaml

@@ -8174,6 +8174,16 @@ paths:
           description: "BuildKit output configuration"
           description: "BuildKit output configuration"
           type: "string"
           type: "string"
           default: ""
           default: ""
+        - name: "version"
+          in: "query"
+          type: "string"
+          default: "1"
+          enum: ["1", "2"]
+          description: |
+            Version of the builder backend to use.
+
+            - `1` is the first generation classic (deprecated) builder in the Docker daemon (default)
+            - `2` is [BuildKit](https://github.com/moby/buildkit)
       responses:
       responses:
         200:
         200:
           description: "no error"
           description: "no error"

+ 10 - 0
docs/api/v1.44.yaml

@@ -8327,6 +8327,16 @@ paths:
           description: "BuildKit output configuration"
           description: "BuildKit output configuration"
           type: "string"
           type: "string"
           default: ""
           default: ""
+        - name: "version"
+          in: "query"
+          type: "string"
+          default: "1"
+          enum: ["1", "2"]
+          description: |
+            Version of the builder backend to use.
+
+            - `1` is the first generation classic (deprecated) builder in the Docker daemon (default)
+            - `2` is [BuildKit](https://github.com/moby/buildkit)
       responses:
       responses:
         200:
         200:
           description: "no error"
           description: "no error"