Browse code

Extract EngineDescription to a separate definition

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>

Sebastiaan van Stijn authored on 2017/08/11 09:26:01
Showing 1 changed files
... ...
@@ -2050,26 +2050,7 @@ definitions:
2050 2050
           Resources:
2051 2051
             $ref: "#/definitions/ResourceObject"
2052 2052
           Engine:
2053
-            type: "object"
2054
-            properties:
2055
-              EngineVersion:
2056
-                type: "string"
2057
-                example: "17.06.0"
2058
-              Labels:
2059
-                type: "object"
2060
-                additionalProperties:
2061
-                  type: "string"
2062
-                example:
2063
-                  foo: "bar"
2064
-              Plugins:
2065
-                type: "array"
2066
-                items:
2067
-                  type: "object"
2068
-                  properties:
2069
-                    Type:
2070
-                      type: "string"
2071
-                    Name:
2072
-                      type: "string"
2053
+            $ref: "#/definitions/EngineDescription"
2073 2054
           TLSInfo:
2074 2055
             $ref: "#/definitions/TLSInfo"
2075 2056
       Status:
... ...
@@ -2186,6 +2167,66 @@ definitions:
2186 2186
         type: "string"
2187 2187
         example: "linux"
2188 2188
 
2189
+  EngineDescription:
2190
+    description: "EngineDescription provides information about an engine."
2191
+    type: "object"
2192
+    properties:
2193
+      EngineVersion:
2194
+        type: "string"
2195
+        example: "17.06.0"
2196
+      Labels:
2197
+        type: "object"
2198
+        additionalProperties:
2199
+          type: "string"
2200
+        example:
2201
+          foo: "bar"
2202
+      Plugins:
2203
+        type: "array"
2204
+        items:
2205
+          type: "object"
2206
+          properties:
2207
+            Type:
2208
+              type: "string"
2209
+            Name:
2210
+              type: "string"
2211
+        example:
2212
+          - Type: "Log"
2213
+            Name: "awslogs"
2214
+          - Type: "Log"
2215
+            Name: "fluentd"
2216
+          - Type: "Log"
2217
+            Name: "gcplogs"
2218
+          - Type: "Log"
2219
+            Name: "gelf"
2220
+          - Type: "Log"
2221
+            Name: "journald"
2222
+          - Type: "Log"
2223
+            Name: "json-file"
2224
+          - Type: "Log"
2225
+            Name: "logentries"
2226
+          - Type: "Log"
2227
+            Name: "splunk"
2228
+          - Type: "Log"
2229
+            Name: "syslog"
2230
+          - Type: "Network"
2231
+            Name: "bridge"
2232
+          - Type: "Network"
2233
+            Name: "host"
2234
+          - Type: "Network"
2235
+            Name: "ipvlan"
2236
+          - Type: "Network"
2237
+            Name: "macvlan"
2238
+          - Type: "Network"
2239
+            Name: "null"
2240
+          - Type: "Network"
2241
+            Name: "overlay"
2242
+          - Type: "Volume"
2243
+            Name: "local"
2244
+          - Type: "Volume"
2245
+            Name: "localhost:5000/vieux/sshfs:latest"
2246
+          - Type: "Volume"
2247
+            Name: "vieux/sshfs:latest"
2248
+
2189 2249
   TLSInfo:
2190 2250
     description: "Information about the issuer of leaf TLS certificates and the trusted root CA certificate"
2191 2251
     type: "object"