the-moby-effect 1.45.0-alpha.12 → 1.45.0-alpha.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Engines/package.json +6 -0
- package/dist/cjs/Connection.js +0 -1
- package/dist/cjs/Connection.js.map +1 -1
- package/dist/cjs/Demux.js +11 -0
- package/dist/cjs/Demux.js.map +1 -1
- package/dist/cjs/Endpoints.js +13 -0
- package/dist/cjs/Endpoints.js.map +1 -1
- package/dist/cjs/Engines.js +17 -0
- package/dist/cjs/Engines.js.map +1 -0
- package/dist/cjs/Platforms.js +1 -1
- package/dist/cjs/archive/Tar.js +1 -1
- package/dist/cjs/archive/Tar.js.map +1 -1
- package/dist/cjs/blobs/Http.js +1 -1
- package/dist/cjs/blobs/Http.js.map +1 -1
- package/dist/cjs/blobs/Https.js +1 -1
- package/dist/cjs/blobs/Https.js.map +1 -1
- package/dist/cjs/blobs/Socket.js +1 -1
- package/dist/cjs/blobs/Socket.js.map +1 -1
- package/dist/cjs/blobs/Ssh.js +1 -1
- package/dist/cjs/blobs/Ssh.js.map +1 -1
- package/dist/cjs/demux/Compressed.js.map +1 -1
- package/dist/cjs/demux/Demux.js +79 -60
- package/dist/cjs/demux/Demux.js.map +1 -1
- package/dist/cjs/demux/Hijack.js +20 -29
- package/dist/cjs/demux/Hijack.js.map +1 -1
- package/dist/cjs/demux/Multiplexed.js +2 -3
- package/dist/cjs/demux/Multiplexed.js.map +1 -1
- package/dist/cjs/demux/Raw.js +27 -80
- package/dist/cjs/demux/Raw.js.map +1 -1
- package/dist/cjs/demux/Stdio.js +20 -18
- package/dist/cjs/demux/Stdio.js.map +1 -1
- package/dist/cjs/endpoints/Common.js +0 -2
- package/dist/cjs/endpoints/Common.js.map +1 -1
- package/dist/cjs/endpoints/Containers.js +4 -4
- package/dist/cjs/endpoints/Containers.js.map +1 -1
- package/dist/cjs/endpoints/Distribution.js +2 -0
- package/dist/cjs/endpoints/Distribution.js.map +1 -1
- package/dist/cjs/endpoints/Execs.js +2 -0
- package/dist/cjs/endpoints/Execs.js.map +1 -1
- package/dist/cjs/endpoints/Images.js +4 -4
- package/dist/cjs/endpoints/Images.js.map +1 -1
- package/dist/cjs/endpoints/Networks.js +2 -0
- package/dist/cjs/endpoints/Networks.js.map +1 -1
- package/dist/cjs/endpoints/Nodes.js +2 -0
- package/dist/cjs/endpoints/Nodes.js.map +1 -1
- package/dist/cjs/endpoints/Plugins.js +2 -0
- package/dist/cjs/endpoints/Plugins.js.map +1 -1
- package/dist/cjs/endpoints/Secrets.js +2 -0
- package/dist/cjs/endpoints/Secrets.js.map +1 -1
- package/dist/cjs/endpoints/Services.js +2 -0
- package/dist/cjs/endpoints/Services.js.map +1 -1
- package/dist/cjs/endpoints/Session.js +15 -3
- package/dist/cjs/endpoints/Session.js.map +1 -1
- package/dist/cjs/endpoints/Swarm.js +2 -0
- package/dist/cjs/endpoints/Swarm.js.map +1 -1
- package/dist/cjs/endpoints/System.js +2 -0
- package/dist/cjs/endpoints/System.js.map +1 -1
- package/dist/cjs/endpoints/Tasks.js +2 -0
- package/dist/cjs/endpoints/Tasks.js.map +1 -1
- package/dist/cjs/endpoints/Volumes.js +2 -0
- package/dist/cjs/endpoints/Volumes.js.map +1 -1
- package/dist/cjs/engines/Docker.js +61 -12
- package/dist/cjs/engines/Docker.js.map +1 -1
- package/dist/cjs/engines/Moby.js +1 -1
- package/dist/cjs/generated/ImagePruneResponse.generated.js +3 -1
- package/dist/cjs/generated/ImagePruneResponse.generated.js.map +1 -1
- package/dist/cjs/index.js +3 -3
- package/dist/dts/Connection.d.ts.map +1 -1
- package/dist/dts/Demux.d.ts +9 -0
- package/dist/dts/Demux.d.ts.map +1 -1
- package/dist/dts/DockerEngine.d.ts +1 -1
- package/dist/dts/Endpoints.d.ts +11 -0
- package/dist/dts/Endpoints.d.ts.map +1 -1
- package/dist/dts/Engines.d.ts +30 -0
- package/dist/dts/Engines.d.ts.map +1 -0
- package/dist/dts/Platforms.d.ts +1 -1
- package/dist/dts/demux/Compressed.d.ts +7 -0
- package/dist/dts/demux/Compressed.d.ts.map +1 -1
- package/dist/dts/demux/Demux.d.ts +145 -239
- package/dist/dts/demux/Demux.d.ts.map +1 -1
- package/dist/dts/demux/Hijack.d.ts +3 -19
- package/dist/dts/demux/Hijack.d.ts.map +1 -1
- package/dist/dts/demux/Multiplexed.d.ts +2 -3
- package/dist/dts/demux/Multiplexed.d.ts.map +1 -1
- package/dist/dts/demux/Raw.d.ts +25 -186
- package/dist/dts/demux/Raw.d.ts.map +1 -1
- package/dist/dts/demux/Stdio.d.ts +23 -35
- package/dist/dts/demux/Stdio.d.ts.map +1 -1
- package/dist/dts/endpoints/Containers.d.ts +5 -3
- package/dist/dts/endpoints/Containers.d.ts.map +1 -1
- package/dist/dts/endpoints/Distribution.d.ts +2 -0
- package/dist/dts/endpoints/Distribution.d.ts.map +1 -1
- package/dist/dts/endpoints/Execs.d.ts +7 -5
- package/dist/dts/endpoints/Execs.d.ts.map +1 -1
- package/dist/dts/endpoints/Images.d.ts +170 -592
- package/dist/dts/endpoints/Images.d.ts.map +1 -1
- package/dist/dts/endpoints/Networks.d.ts +24 -151
- package/dist/dts/endpoints/Networks.d.ts.map +1 -1
- package/dist/dts/endpoints/Nodes.d.ts +24 -80
- package/dist/dts/endpoints/Nodes.d.ts.map +1 -1
- package/dist/dts/endpoints/Plugins.d.ts +49 -296
- package/dist/dts/endpoints/Plugins.d.ts.map +1 -1
- package/dist/dts/endpoints/Secrets.d.ts +16 -109
- package/dist/dts/endpoints/Secrets.d.ts.map +1 -1
- package/dist/dts/endpoints/Services.d.ts +57 -205
- package/dist/dts/endpoints/Services.d.ts.map +1 -1
- package/dist/dts/endpoints/Session.d.ts +2 -17
- package/dist/dts/endpoints/Session.d.ts.map +1 -1
- package/dist/dts/endpoints/Swarm.d.ts +16 -69
- package/dist/dts/endpoints/Swarm.d.ts.map +1 -1
- package/dist/dts/endpoints/System.d.ts +25 -106
- package/dist/dts/endpoints/System.d.ts.map +1 -1
- package/dist/dts/endpoints/Tasks.d.ts +25 -105
- package/dist/dts/endpoints/Tasks.d.ts.map +1 -1
- package/dist/dts/endpoints/Volumes.d.ts +28 -137
- package/dist/dts/endpoints/Volumes.d.ts.map +1 -1
- package/dist/dts/engines/Docker.d.ts +21 -4
- package/dist/dts/engines/Docker.d.ts.map +1 -1
- package/dist/dts/engines/DockerCompose.d.ts +2 -0
- package/dist/dts/engines/DockerCompose.d.ts.map +1 -1
- package/dist/dts/engines/Moby.d.ts +1 -1
- package/dist/dts/generated/ClusterVolumeSpec.generated.d.ts +1 -1
- package/dist/dts/generated/ImagePruneResponse.generated.d.ts +7 -3
- package/dist/dts/generated/ImagePruneResponse.generated.d.ts.map +1 -1
- package/dist/dts/generated/SwarmInitRequest.generated.d.ts +1 -1
- package/dist/dts/generated/SwarmJoinRequest.generated.d.ts +1 -1
- package/dist/dts/index.d.ts +5 -5
- package/dist/dts/index.d.ts.map +1 -1
- package/dist/esm/Connection.js +0 -1
- package/dist/esm/Connection.js.map +1 -1
- package/dist/esm/Demux.js +9 -0
- package/dist/esm/Demux.js.map +1 -1
- package/dist/esm/DockerEngine.js +1 -1
- package/dist/esm/Endpoints.js +11 -0
- package/dist/esm/Endpoints.js.map +1 -1
- package/dist/esm/Engines.js +30 -0
- package/dist/esm/Engines.js.map +1 -0
- package/dist/esm/Platforms.js +1 -1
- package/dist/esm/archive/Tar.js +1 -1
- package/dist/esm/archive/Tar.js.map +1 -1
- package/dist/esm/blobs/Http.js +1 -1
- package/dist/esm/blobs/Http.js.map +1 -1
- package/dist/esm/blobs/Https.js +1 -1
- package/dist/esm/blobs/Https.js.map +1 -1
- package/dist/esm/blobs/Socket.js +1 -1
- package/dist/esm/blobs/Socket.js.map +1 -1
- package/dist/esm/blobs/Ssh.js +1 -1
- package/dist/esm/blobs/Ssh.js.map +1 -1
- package/dist/esm/demux/Compressed.js.map +1 -1
- package/dist/esm/demux/Demux.js +79 -60
- package/dist/esm/demux/Demux.js.map +1 -1
- package/dist/esm/demux/Hijack.js +19 -30
- package/dist/esm/demux/Hijack.js.map +1 -1
- package/dist/esm/demux/Multiplexed.js +2 -3
- package/dist/esm/demux/Multiplexed.js.map +1 -1
- package/dist/esm/demux/Raw.js +24 -73
- package/dist/esm/demux/Raw.js.map +1 -1
- package/dist/esm/demux/Stdio.js +20 -18
- package/dist/esm/demux/Stdio.js.map +1 -1
- package/dist/esm/endpoints/Common.js +0 -2
- package/dist/esm/endpoints/Common.js.map +1 -1
- package/dist/esm/endpoints/Containers.js +5 -5
- package/dist/esm/endpoints/Containers.js.map +1 -1
- package/dist/esm/endpoints/Distribution.js +2 -0
- package/dist/esm/endpoints/Distribution.js.map +1 -1
- package/dist/esm/endpoints/Execs.js +2 -0
- package/dist/esm/endpoints/Execs.js.map +1 -1
- package/dist/esm/endpoints/Images.js +4 -4
- package/dist/esm/endpoints/Images.js.map +1 -1
- package/dist/esm/endpoints/Networks.js +2 -0
- package/dist/esm/endpoints/Networks.js.map +1 -1
- package/dist/esm/endpoints/Nodes.js +2 -0
- package/dist/esm/endpoints/Nodes.js.map +1 -1
- package/dist/esm/endpoints/Plugins.js +2 -0
- package/dist/esm/endpoints/Plugins.js.map +1 -1
- package/dist/esm/endpoints/Secrets.js +2 -0
- package/dist/esm/endpoints/Secrets.js.map +1 -1
- package/dist/esm/endpoints/Services.js +2 -0
- package/dist/esm/endpoints/Services.js.map +1 -1
- package/dist/esm/endpoints/Session.js +15 -3
- package/dist/esm/endpoints/Session.js.map +1 -1
- package/dist/esm/endpoints/Swarm.js +2 -0
- package/dist/esm/endpoints/Swarm.js.map +1 -1
- package/dist/esm/endpoints/System.js +2 -0
- package/dist/esm/endpoints/System.js.map +1 -1
- package/dist/esm/endpoints/Tasks.js +2 -0
- package/dist/esm/endpoints/Tasks.js.map +1 -1
- package/dist/esm/endpoints/Volumes.js +2 -0
- package/dist/esm/endpoints/Volumes.js.map +1 -1
- package/dist/esm/engines/Docker.js +57 -10
- package/dist/esm/engines/Docker.js.map +1 -1
- package/dist/esm/engines/Moby.js +1 -1
- package/dist/esm/generated/ImagePruneResponse.generated.js +3 -1
- package/dist/esm/generated/ImagePruneResponse.generated.js.map +1 -1
- package/dist/esm/index.js +5 -5
- package/dist/esm/index.js.map +1 -1
- package/package.json +14 -14
- package/src/Connection.ts +0 -1
- package/src/Demux.ts +10 -0
- package/src/DockerEngine.ts +1 -1
- package/src/Endpoints.ts +13 -0
- package/src/Engines.ts +33 -0
- package/src/Platforms.ts +1 -1
- package/src/archive/Tar.ts +1 -1
- package/src/blobs/Http.ts +1 -1
- package/src/blobs/Https.ts +1 -1
- package/src/blobs/Socket.ts +1 -1
- package/src/blobs/Ssh.ts +1 -1
- package/src/demux/Compressed.ts +19 -0
- package/src/demux/Demux.ts +191 -288
- package/src/demux/Hijack.ts +33 -189
- package/src/demux/Multiplexed.ts +2 -3
- package/src/demux/Raw.ts +69 -247
- package/src/demux/Stdio.ts +31 -86
- package/src/endpoints/Common.ts +0 -2
- package/src/endpoints/Containers.ts +8 -9
- package/src/endpoints/Distribution.ts +3 -0
- package/src/endpoints/Execs.ts +11 -6
- package/src/endpoints/Images.ts +179 -638
- package/src/endpoints/Networks.ts +19 -166
- package/src/endpoints/Nodes.ts +25 -90
- package/src/endpoints/Plugins.ts +43 -321
- package/src/endpoints/Secrets.ts +13 -122
- package/src/endpoints/Services.ts +53 -229
- package/src/endpoints/Session.ts +16 -20
- package/src/endpoints/Swarm.ts +17 -78
- package/src/endpoints/System.ts +30 -116
- package/src/endpoints/Tasks.ts +26 -113
- package/src/endpoints/Volumes.ts +33 -145
- package/src/engines/Docker.ts +72 -13
- package/src/engines/DockerCompose.ts +2 -0
- package/src/engines/Moby.ts +1 -1
- package/src/generated/ImagePruneResponse.generated.ts +1 -1
- package/src/index.ts +5 -5
- package/PodmanEngine/package.json +0 -6
- package/dist/cjs/PodmanEngine.js +0 -17
- package/dist/cjs/PodmanEngine.js.map +0 -1
- package/dist/dts/PodmanEngine.d.ts +0 -7
- package/dist/dts/PodmanEngine.d.ts.map +0 -1
- package/dist/esm/PodmanEngine.js +0 -7
- package/dist/esm/PodmanEngine.js.map +0 -1
- package/src/PodmanEngine.ts +0 -7
|
@@ -7,7 +7,6 @@ import * as HttpBody from "@effect/platform/HttpBody";
|
|
|
7
7
|
import * as HttpClient from "@effect/platform/HttpClient";
|
|
8
8
|
import * as HttpClientError from "@effect/platform/HttpClientError";
|
|
9
9
|
import * as ParseResult from "@effect/schema/ParseResult";
|
|
10
|
-
import * as Schema from "@effect/schema/Schema";
|
|
11
10
|
import * as Effect from "effect/Effect";
|
|
12
11
|
import * as Layer from "effect/Layer";
|
|
13
12
|
import * as Stream from "effect/Stream";
|
|
@@ -40,35 +39,6 @@ export declare class ImagesError extends ImagesError_base<{
|
|
|
40
39
|
}> {
|
|
41
40
|
get message(): string;
|
|
42
41
|
}
|
|
43
|
-
/**
|
|
44
|
-
* @since 1.0.0
|
|
45
|
-
* @category Params
|
|
46
|
-
*/
|
|
47
|
-
export interface ImageListOptions {
|
|
48
|
-
/**
|
|
49
|
-
* Show all images. Only images from a final layer (no children) are shown
|
|
50
|
-
* by default.
|
|
51
|
-
*/
|
|
52
|
-
readonly all?: boolean;
|
|
53
|
-
/**
|
|
54
|
-
* A JSON encoded value of the filters (a `map[string][]string`) to process
|
|
55
|
-
* on the images list.
|
|
56
|
-
*
|
|
57
|
-
* Available filters:
|
|
58
|
-
*
|
|
59
|
-
* - `before`=(`<image-name>[:<tag>]`, `<image id>` or `<image@digest>`)
|
|
60
|
-
* - `dangling=true`
|
|
61
|
-
* - `label=key` or `label="key=value"` of an image label
|
|
62
|
-
* - `reference`=(`<image-name>[:<tag>]`)
|
|
63
|
-
* - `since`=(`<image-name>[:<tag>]`, `<image id>` or `<image@digest>`)
|
|
64
|
-
* - `until=<timestamp>`
|
|
65
|
-
*/
|
|
66
|
-
readonly filters?: string | undefined;
|
|
67
|
-
/** Compute and show shared size as a `SharedSize` field on each image. */
|
|
68
|
-
readonly "shared-size"?: boolean | undefined;
|
|
69
|
-
/** Show digest information as a `RepoDigests` field on each image. */
|
|
70
|
-
readonly digests?: boolean | undefined;
|
|
71
|
-
}
|
|
72
42
|
/**
|
|
73
43
|
* @since 1.0.0
|
|
74
44
|
* @category Params
|
|
@@ -196,571 +166,179 @@ export interface ImageBuildOptions<E1> {
|
|
|
196
166
|
/** BuildKit output configuration */
|
|
197
167
|
readonly outputs?: string | undefined;
|
|
198
168
|
}
|
|
199
|
-
/**
|
|
200
|
-
* @since 1.0.0
|
|
201
|
-
* @category Params
|
|
202
|
-
*/
|
|
203
|
-
export interface BuildPruneOptions {
|
|
204
|
-
/** Amount of disk space in bytes to keep for cache */
|
|
205
|
-
readonly "keep-storage"?: number;
|
|
206
|
-
/** Remove all types of build cache */
|
|
207
|
-
readonly all?: boolean;
|
|
208
|
-
/**
|
|
209
|
-
* A JSON encoded value of the filters (a `map[string][]string`) to process
|
|
210
|
-
* on the list of build cache objects.
|
|
211
|
-
*
|
|
212
|
-
* Available filters:
|
|
213
|
-
*
|
|
214
|
-
* - `until=<timestamp>` remove cache older than `<timestamp>`. The
|
|
215
|
-
* `<timestamp>` can be Unix timestamps, date formatted timestamps, or Go
|
|
216
|
-
* duration strings (e.g. `10m`, `1h30m`) computed relative to the
|
|
217
|
-
* daemon's local time.
|
|
218
|
-
* - `id=<id>`
|
|
219
|
-
* - `parent=<id>`
|
|
220
|
-
* - `type=<string>`
|
|
221
|
-
* - `description=<string>`
|
|
222
|
-
* - `inuse`
|
|
223
|
-
* - `shared`
|
|
224
|
-
* - `private`
|
|
225
|
-
*/
|
|
226
|
-
readonly filters?: {
|
|
227
|
-
until?: string | undefined;
|
|
228
|
-
id?: string | undefined;
|
|
229
|
-
parent?: string | undefined;
|
|
230
|
-
type?: string | undefined;
|
|
231
|
-
description?: string | undefined;
|
|
232
|
-
inuse?: boolean | undefined;
|
|
233
|
-
shared?: boolean | undefined;
|
|
234
|
-
private?: boolean | undefined;
|
|
235
|
-
} | undefined;
|
|
236
|
-
}
|
|
237
|
-
/**
|
|
238
|
-
* @since 1.0.0
|
|
239
|
-
* @category Params
|
|
240
|
-
*/
|
|
241
|
-
export interface ImageCreateOptions {
|
|
242
|
-
/**
|
|
243
|
-
* Name of the image to pull. The name may include a tag or digest. This
|
|
244
|
-
* parameter may only be used when pulling an image. The pull is cancelled
|
|
245
|
-
* if the HTTP connection is closed.
|
|
246
|
-
*/
|
|
247
|
-
readonly fromImage?: string | undefined;
|
|
248
|
-
/**
|
|
249
|
-
* Source to import. The value may be a URL from which the image can be
|
|
250
|
-
* retrieved or `-` to read the image from the request body. This parameter
|
|
251
|
-
* may only be used when importing an image.
|
|
252
|
-
*/
|
|
253
|
-
readonly fromSrc?: string | undefined;
|
|
254
|
-
/**
|
|
255
|
-
* Repository name given to an image when it is imported. The repo may
|
|
256
|
-
* include a tag. This parameter may only be used when importing an image.
|
|
257
|
-
*/
|
|
258
|
-
readonly repo?: string | undefined;
|
|
259
|
-
/**
|
|
260
|
-
* Tag or digest. If empty when pulling an image, this causes all tags for
|
|
261
|
-
* the given image to be pulled.
|
|
262
|
-
*/
|
|
263
|
-
readonly tag?: string | undefined;
|
|
264
|
-
/** Set commit message for imported image. */
|
|
265
|
-
readonly message?: string | undefined;
|
|
266
|
-
/**
|
|
267
|
-
* Image content if the value `-` has been specified in fromSrc query
|
|
268
|
-
* parameter
|
|
269
|
-
*/
|
|
270
|
-
readonly inputImage?: string | undefined;
|
|
271
|
-
/**
|
|
272
|
-
* A base64url-encoded auth configuration.
|
|
273
|
-
*
|
|
274
|
-
* Refer to the [authentication section](#section/Authentication) for
|
|
275
|
-
* details.
|
|
276
|
-
*/
|
|
277
|
-
readonly "X-Registry-Auth"?: string | undefined;
|
|
278
|
-
/**
|
|
279
|
-
* Apply `Dockerfile` instructions to the image that is created, for
|
|
280
|
-
* example: `changes=ENV DEBUG=true`. Note that `ENV DEBUG=true` should be
|
|
281
|
-
* URI component encoded.
|
|
282
|
-
*
|
|
283
|
-
* Supported `Dockerfile` instructions:
|
|
284
|
-
* `CMD`|`ENTRYPOINT`|`ENV`|`EXPOSE`|`ONBUILD`|`USER`|`VOLUME`|`WORKDIR`
|
|
285
|
-
*/
|
|
286
|
-
readonly changes?: string | undefined;
|
|
287
|
-
/**
|
|
288
|
-
* Platform in the format os[/arch[/variant]].
|
|
289
|
-
*
|
|
290
|
-
* When used in combination with the `fromImage` option, the daemon checks
|
|
291
|
-
* if the given image is present in the local image cache with the given OS
|
|
292
|
-
* and Architecture, and otherwise attempts to pull the image. If the option
|
|
293
|
-
* is not set, the host's native OS and Architecture are used. If the given
|
|
294
|
-
* image does not exist in the local image cache, the daemon attempts to
|
|
295
|
-
* pull the image with the host's native OS and Architecture. If the given
|
|
296
|
-
* image does exists in the local image cache, but its OS or architecture
|
|
297
|
-
* does not match, a warning is produced.
|
|
298
|
-
*
|
|
299
|
-
* When used with the `fromSrc` option to import an image from an archive,
|
|
300
|
-
* this option sets the platform information for the imported image. If the
|
|
301
|
-
* option is not set, the host's native OS and Architecture are used for the
|
|
302
|
-
* imported image.
|
|
303
|
-
*/
|
|
304
|
-
readonly platform?: string | undefined;
|
|
305
|
-
}
|
|
306
|
-
/**
|
|
307
|
-
* @since 1.0.0
|
|
308
|
-
* @category Params
|
|
309
|
-
*/
|
|
310
|
-
export interface ImageInspectOptions {
|
|
311
|
-
/** Image name or id */
|
|
312
|
-
readonly name: string;
|
|
313
|
-
}
|
|
314
|
-
/**
|
|
315
|
-
* @since 1.0.0
|
|
316
|
-
* @category Params
|
|
317
|
-
*/
|
|
318
|
-
export interface ImageHistoryOptions {
|
|
319
|
-
/** Image name or ID */
|
|
320
|
-
readonly name: string;
|
|
321
|
-
}
|
|
322
|
-
/**
|
|
323
|
-
* @since 1.0.0
|
|
324
|
-
* @category Params
|
|
325
|
-
*/
|
|
326
|
-
export interface ImagePushOptions {
|
|
327
|
-
/** Image name or ID. */
|
|
328
|
-
readonly name: string;
|
|
329
|
-
/** The tag to associate with the image on the registry. */
|
|
330
|
-
readonly tag?: string;
|
|
331
|
-
/**
|
|
332
|
-
* A base64url-encoded auth configuration.
|
|
333
|
-
*
|
|
334
|
-
* Refer to the [authentication section](#section/Authentication) for
|
|
335
|
-
* details.
|
|
336
|
-
*/
|
|
337
|
-
readonly "X-Registry-Auth": string;
|
|
338
|
-
}
|
|
339
|
-
/**
|
|
340
|
-
* @since 1.0.0
|
|
341
|
-
* @category Params
|
|
342
|
-
*/
|
|
343
|
-
export interface ImageTagOptions {
|
|
344
|
-
/** Image name or ID to tag. */
|
|
345
|
-
readonly name: string;
|
|
346
|
-
/** The repository to tag in. For example, `someuser/someimage`. */
|
|
347
|
-
readonly repo?: string;
|
|
348
|
-
/** The name of the new tag. */
|
|
349
|
-
readonly tag?: string;
|
|
350
|
-
}
|
|
351
|
-
/**
|
|
352
|
-
* @since 1.0.0
|
|
353
|
-
* @category Params
|
|
354
|
-
*/
|
|
355
|
-
export interface ImageDeleteOptions {
|
|
356
|
-
/** Image name or ID */
|
|
357
|
-
readonly name: string;
|
|
358
|
-
/**
|
|
359
|
-
* Remove the image even if it is being used by stopped containers or has
|
|
360
|
-
* other tags
|
|
361
|
-
*/
|
|
362
|
-
readonly force?: boolean;
|
|
363
|
-
/** Do not delete untagged parent images */
|
|
364
|
-
readonly noprune?: boolean;
|
|
365
|
-
}
|
|
366
|
-
/**
|
|
367
|
-
* @since 1.0.0
|
|
368
|
-
* @category Params
|
|
369
|
-
*/
|
|
370
|
-
export interface ImageSearchOptions {
|
|
371
|
-
/** Term to search */
|
|
372
|
-
readonly term: string;
|
|
373
|
-
/** Maximum number of results to return */
|
|
374
|
-
readonly limit?: number | undefined;
|
|
375
|
-
/** Matches images that have at least this many stars */
|
|
376
|
-
readonly stars?: number | undefined;
|
|
377
|
-
/** Filters for only official images */
|
|
378
|
-
readonly "is-official"?: boolean | undefined;
|
|
379
|
-
}
|
|
380
|
-
/**
|
|
381
|
-
* @since 1.0.0
|
|
382
|
-
* @category Params
|
|
383
|
-
*/
|
|
384
|
-
export interface ImagePruneOptions {
|
|
385
|
-
/**
|
|
386
|
-
* Filters to process on the prune list, encoded as JSON (a
|
|
387
|
-
* `map[string][]string`). Available filters:
|
|
388
|
-
*
|
|
389
|
-
* - `dangling=<boolean>` When set to `true` (or `1`), prune only unused _and_
|
|
390
|
-
* untagged images. When set to `false` (or `0`), all unused images are
|
|
391
|
-
* pruned.
|
|
392
|
-
* - `until=<string>` Prune images created before this timestamp. The
|
|
393
|
-
* `<timestamp>` can be Unix timestamps, date formatted timestamps, or Go
|
|
394
|
-
* duration strings (e.g. `10m`, `1h30m`) computed relative to the daemon
|
|
395
|
-
* machine’s time.
|
|
396
|
-
* - `label` (`label=<key>`, `label=<key>=<value>`, `label!=<key>`, or
|
|
397
|
-
* `label!=<key>=<value>`) Prune images with (or without, in case
|
|
398
|
-
* `label!=...` is used) the specified labels.
|
|
399
|
-
*/
|
|
400
|
-
readonly filters?: {
|
|
401
|
-
dangling?: ["true" | "false"] | undefined;
|
|
402
|
-
until?: [string] | undefined;
|
|
403
|
-
label?: Array<string> | undefined;
|
|
404
|
-
};
|
|
405
|
-
}
|
|
406
|
-
/**
|
|
407
|
-
* @since 1.0.0
|
|
408
|
-
* @category Params
|
|
409
|
-
*/
|
|
410
|
-
export interface ImageCommitOptions {
|
|
411
|
-
/** The container configuration */
|
|
412
|
-
readonly containerConfig: ContainerConfig;
|
|
413
|
-
/** The ID or name of the container to commit */
|
|
414
|
-
readonly container?: string;
|
|
415
|
-
/** Repository name for the created image */
|
|
416
|
-
readonly repo?: string;
|
|
417
|
-
/** Tag name for the create image */
|
|
418
|
-
readonly tag?: string;
|
|
419
|
-
/** Commit message */
|
|
420
|
-
readonly comment?: string;
|
|
421
|
-
/** Author of the image (e.g., `John Hannibal Smith <hannibal@a-team.com>`) */
|
|
422
|
-
readonly author?: string;
|
|
423
|
-
/** Whether to pause the container before committing */
|
|
424
|
-
readonly pause?: boolean;
|
|
425
|
-
/** `Dockerfile` instructions to apply while committing */
|
|
426
|
-
readonly changes?: string;
|
|
427
|
-
}
|
|
428
|
-
/**
|
|
429
|
-
* @since 1.0.0
|
|
430
|
-
* @category Params
|
|
431
|
-
*/
|
|
432
|
-
export interface ImageGetOptions {
|
|
433
|
-
/** Image name or ID */
|
|
434
|
-
readonly name: string;
|
|
435
|
-
}
|
|
436
|
-
/**
|
|
437
|
-
* @since 1.0.0
|
|
438
|
-
* @category Params
|
|
439
|
-
*/
|
|
440
|
-
export interface ImageGetAllOptions {
|
|
441
|
-
/** Image names to filter by */
|
|
442
|
-
readonly names?: Array<string> | undefined;
|
|
443
|
-
}
|
|
444
|
-
/**
|
|
445
|
-
* @since 1.0.0
|
|
446
|
-
* @category Params
|
|
447
|
-
*/
|
|
448
|
-
export interface ImageLoadOptions<E1> {
|
|
449
|
-
/** Tar archive containing images */
|
|
450
|
-
readonly imagesTarball: Stream.Stream<Uint8Array, E1, never>;
|
|
451
|
-
/** Suppress progress details during load. */
|
|
452
|
-
readonly quiet?: boolean;
|
|
453
|
-
}
|
|
454
|
-
/**
|
|
455
|
-
* @since 1.0.0
|
|
456
|
-
* @category Tags
|
|
457
|
-
*/
|
|
458
|
-
export interface ImagesImpl {
|
|
459
|
-
/**
|
|
460
|
-
* List Images
|
|
461
|
-
*
|
|
462
|
-
* @param all - Show all images. Only images from a final layer (no
|
|
463
|
-
* children) are shown by default.
|
|
464
|
-
* @param filters - A JSON encoded value of the filters (a
|
|
465
|
-
* `map[string][]string`) to process on the images list.
|
|
466
|
-
*
|
|
467
|
-
* Available filters:
|
|
468
|
-
*
|
|
469
|
-
* - `before`=(`<image-name>[:<tag>]`, `<image id>` or `<image@digest>`)
|
|
470
|
-
* - `dangling=true`
|
|
471
|
-
* - `label=key` or `label="key=value"` of an image label
|
|
472
|
-
* - `reference`=(`<image-name>[:<tag>]`)
|
|
473
|
-
* - `since`=(`<image-name>[:<tag>]`, `<image id>` or `<image@digest>`)
|
|
474
|
-
* - `until=<timestamp>`
|
|
475
|
-
*
|
|
476
|
-
* @param shared-size - Compute and show shared size as a `SharedSize` field
|
|
477
|
-
* on each image.
|
|
478
|
-
* @param digests - Show digest information as a `RepoDigests` field on each
|
|
479
|
-
* image.
|
|
480
|
-
*/
|
|
481
|
-
readonly list: (options?: ImageListOptions | undefined) => Effect.Effect<ReadonlyArray<ImageSummary>, ImagesError, never>;
|
|
482
|
-
/**
|
|
483
|
-
* Build an image
|
|
484
|
-
*
|
|
485
|
-
* @param context - A tar archive compressed with one of the following
|
|
486
|
-
* algorithms: identity (no compression), gzip, bzip2, xz.
|
|
487
|
-
* @param dockerfile - Path within the build context to the `Dockerfile`.
|
|
488
|
-
* This is ignored if `remote` is specified and points to an external
|
|
489
|
-
* `Dockerfile`.
|
|
490
|
-
* @param t - A name and optional tag to apply to the image in the
|
|
491
|
-
* `name:tag` format. If you omit the tag the default `latest` value is
|
|
492
|
-
* assumed. You can provide several `t` parameters.
|
|
493
|
-
* @param extrahosts - Extra hosts to add to /etc/hosts
|
|
494
|
-
* @param remote - A Git repository URI or HTTP/HTTPS context URI. If the
|
|
495
|
-
* URI points to a single text file, the file’s contents are placed into a
|
|
496
|
-
* file called `Dockerfile` and the image is built from that file. If the
|
|
497
|
-
* URI points to a tarball, the file is downloaded by the daemon and the
|
|
498
|
-
* contents therein used as the context for the build. If the URI points
|
|
499
|
-
* to a tarball and the `dockerfile` parameter is also specified, there
|
|
500
|
-
* must be a file with the corresponding path inside the tarball.
|
|
501
|
-
* @param q - Suppress verbose build output.
|
|
502
|
-
* @param nocache - Do not use the cache when building the image.
|
|
503
|
-
* @param cachefrom - JSON array of images used for build cache resolution.
|
|
504
|
-
* @param pull - Attempt to pull the image even if an older image exists
|
|
505
|
-
* locally.
|
|
506
|
-
* @param rm - Remove intermediate containers after a successful build.
|
|
507
|
-
* @param forcerm - Always remove intermediate containers, even upon
|
|
508
|
-
* failure.
|
|
509
|
-
* @param memory - Set memory limit for build.
|
|
510
|
-
* @param memswap - Total memory (memory + swap). Set as `-1` to disable
|
|
511
|
-
* swap.
|
|
512
|
-
* @param cpushares - CPU shares (relative weight).
|
|
513
|
-
* @param cpusetcpus - CPUs in which to allow execution (e.g., `0-3`,
|
|
514
|
-
* `0,1`).
|
|
515
|
-
* @param cpuperiod - The length of a CPU period in microseconds.
|
|
516
|
-
* @param cpuquota - Microseconds of CPU time that the container can get in
|
|
517
|
-
* a CPU period.
|
|
518
|
-
* @param buildargs - JSON map of string pairs for build-time variables.
|
|
519
|
-
* Users pass these values at build-time. Docker uses the buildargs as the
|
|
520
|
-
* environment context for commands run via the `Dockerfile` RUN
|
|
521
|
-
* instruction, or for variable expansion in other `Dockerfile`
|
|
522
|
-
* instructions. This is not meant for passing secret values.
|
|
523
|
-
*
|
|
524
|
-
* For example, the build arg `FOO=bar` would become `{"FOO":"bar"}` in
|
|
525
|
-
* JSON. This would result in the query parameter
|
|
526
|
-
* `buildargs={"FOO":"bar"}`. Note that `{"FOO":"bar"}` should be URI
|
|
527
|
-
* component encoded.
|
|
528
|
-
*
|
|
529
|
-
* [Read more about the buildargs
|
|
530
|
-
* instruction.](https://docs.docker.com/engine/reference/builder/#arg)
|
|
531
|
-
* @param shmsize - Size of `/dev/shm` in bytes. The size must be greater
|
|
532
|
-
* than 0. If omitted the system uses 64MB.
|
|
533
|
-
* @param squash - Squash the resulting images layers into a single layer.
|
|
534
|
-
* _(Experimental release only.)_
|
|
535
|
-
* @param labels - Arbitrary key/value labels to set on the image, as a JSON
|
|
536
|
-
* map of string pairs.
|
|
537
|
-
* @param networkmode - Sets the networking mode for the run commands during
|
|
538
|
-
* build. Supported standard values are: `bridge`, `host`, `none`, and
|
|
539
|
-
* `container:<name|id>`. Any other value is taken as a custom network's
|
|
540
|
-
* name or ID to which this container should connect to.
|
|
541
|
-
* @param Content-type -
|
|
542
|
-
* @param X-Registry-Config - This is a base64-encoded JSON object with auth
|
|
543
|
-
* configurations for multiple registries that a build may refer to.
|
|
544
|
-
*
|
|
545
|
-
* The key is a registry URL, and the value is an auth configuration object,
|
|
546
|
-
* [as described in the authentication section](#section/Authentication).
|
|
547
|
-
* For example:
|
|
548
|
-
*
|
|
549
|
-
* {
|
|
550
|
-
* "docker.example.com": {
|
|
551
|
-
* "username": "janedoe",
|
|
552
|
-
* "password": "hunter2"
|
|
553
|
-
* },
|
|
554
|
-
* "https://index.docker.io/v1/": {
|
|
555
|
-
* "username": "mobydock",
|
|
556
|
-
* "password": "conta1n3rize14"
|
|
557
|
-
* }
|
|
558
|
-
* }
|
|
559
|
-
*
|
|
560
|
-
* Only the registry domain name (and port if not the default 443) are
|
|
561
|
-
* required. However, for legacy reasons, the Docker Hub registry must be
|
|
562
|
-
* specified with both a `https://` prefix and a `/v1/` suffix even though
|
|
563
|
-
* Docker will prefer to use the v2 registry API.
|
|
564
|
-
* @param platform - Platform in the format os[/arch[/variant]]
|
|
565
|
-
* @param target - Target build stage
|
|
566
|
-
* @param outputs - BuildKit output configuration
|
|
567
|
-
*/
|
|
568
|
-
readonly build: <E1>(options: ImageBuildOptions<E1>) => Stream.Stream<JSONMessage, ImagesError, never>;
|
|
569
|
-
/**
|
|
570
|
-
* Delete builder cache
|
|
571
|
-
*
|
|
572
|
-
* @param keep-storage - Amount of disk space in bytes to keep for cache
|
|
573
|
-
* @param all - Remove all types of build cache
|
|
574
|
-
* @param filters - A JSON encoded value of the filters (a
|
|
575
|
-
* `map[string][]string`) to process on the list of build cache objects.
|
|
576
|
-
*
|
|
577
|
-
* Available filters:
|
|
578
|
-
*
|
|
579
|
-
* - `until=<timestamp>` remove cache older than `<timestamp>`. The
|
|
580
|
-
* `<timestamp>` can be Unix timestamps, date formatted timestamps, or
|
|
581
|
-
* Go duration strings (e.g. `10m`, `1h30m`) computed relative to the
|
|
582
|
-
* daemon's local time.
|
|
583
|
-
* - `id=<id>`
|
|
584
|
-
* - `parent=<id>`
|
|
585
|
-
* - `type=<string>`
|
|
586
|
-
* - `description=<string>`
|
|
587
|
-
* - `inuse`
|
|
588
|
-
* - `shared`
|
|
589
|
-
* - `private`
|
|
590
|
-
*/
|
|
591
|
-
readonly buildPrune: (options: BuildPruneOptions) => Effect.Effect<ImagePruneResponse, ImagesError>;
|
|
592
|
-
/**
|
|
593
|
-
* Create an image
|
|
594
|
-
*
|
|
595
|
-
* @param fromImage - Name of the image to pull. The name may include a tag
|
|
596
|
-
* or digest. This parameter may only be used when pulling an image. The
|
|
597
|
-
* pull is cancelled if the HTTP connection is closed.
|
|
598
|
-
* @param fromSrc - Source to import. The value may be a URL from which the
|
|
599
|
-
* image can be retrieved or `-` to read the image from the request body.
|
|
600
|
-
* This parameter may only be used when importing an image.
|
|
601
|
-
* @param repo - Repository name given to an image when it is imported. The
|
|
602
|
-
* repo may include a tag. This parameter may only be used when importing
|
|
603
|
-
* an image.
|
|
604
|
-
* @param tag - Tag or digest. If empty when pulling an image, this causes
|
|
605
|
-
* all tags for the given image to be pulled.
|
|
606
|
-
* @param message - Set commit message for imported image.
|
|
607
|
-
* @param inputImage - Image content if the value `-` has been specified in
|
|
608
|
-
* fromSrc query parameter
|
|
609
|
-
* @param X-Registry-Auth - A base64url-encoded auth configuration.
|
|
610
|
-
*
|
|
611
|
-
* Refer to the [authentication section](#section/Authentication) for
|
|
612
|
-
* details.
|
|
613
|
-
* @param changes - Apply `Dockerfile` instructions to the image that is
|
|
614
|
-
* created, for example: `changes=ENV DEBUG=true`. Note that `ENV
|
|
615
|
-
* DEBUG=true` should be URI component encoded.
|
|
616
|
-
*
|
|
617
|
-
* Supported `Dockerfile` instructions:
|
|
618
|
-
* `CMD`|`ENTRYPOINT`|`ENV`|`EXPOSE`|`ONBUILD`|`USER`|`VOLUME`|`WORKDIR`
|
|
619
|
-
* @param platform - Platform in the format os[/arch[/variant]].
|
|
620
|
-
*
|
|
621
|
-
* When used in combination with the `fromImage` option, the daemon checks
|
|
622
|
-
* if the given image is present in the local image cache with the given
|
|
623
|
-
* OS and Architecture, and otherwise attempts to pull the image. If the
|
|
624
|
-
* option is not set, the host's native OS and Architecture are used. If
|
|
625
|
-
* the given image does not exist in the local image cache, the daemon
|
|
626
|
-
* attempts to pull the image with the host's native OS and Architecture.
|
|
627
|
-
* If the given image does exists in the local image cache, but its OS or
|
|
628
|
-
* architecture does not match, a warning is produced.
|
|
629
|
-
*
|
|
630
|
-
* When used with the `fromSrc` option to import an image from an archive,
|
|
631
|
-
* this option sets the platform information for the imported image. If
|
|
632
|
-
* the option is not set, the host's native OS and Architecture are used
|
|
633
|
-
* for the imported image.
|
|
634
|
-
*/
|
|
635
|
-
readonly create: (options: ImageCreateOptions) => Stream.Stream<JSONMessage, ImagesError, never>;
|
|
636
|
-
/**
|
|
637
|
-
* Inspect an image
|
|
638
|
-
*
|
|
639
|
-
* @param name - Image name or id
|
|
640
|
-
*/
|
|
641
|
-
readonly inspect: (options: ImageInspectOptions) => Effect.Effect<Readonly<ImageInspect>, ImagesError>;
|
|
642
|
-
/**
|
|
643
|
-
* Get the history of an image
|
|
644
|
-
*
|
|
645
|
-
* @param name - Image name or ID
|
|
646
|
-
*/
|
|
647
|
-
readonly history: (options: ImageHistoryOptions) => Effect.Effect<ReadonlyArray<ImageHistoryResponseItem>, ImagesError, never>;
|
|
648
|
-
/**
|
|
649
|
-
* Push an image
|
|
650
|
-
*
|
|
651
|
-
* @param name - Image name or ID.
|
|
652
|
-
* @param tag - The tag to associate with the image on the registry.
|
|
653
|
-
* @param X-Registry-Auth - A base64url-encoded auth configuration.
|
|
654
|
-
*
|
|
655
|
-
* Refer to the [authentication section](#section/Authentication) for
|
|
656
|
-
* details.
|
|
657
|
-
*/
|
|
658
|
-
readonly push: (options: ImagePushOptions) => Stream.Stream<string, ImagesError, never>;
|
|
659
|
-
/**
|
|
660
|
-
* Tag an image
|
|
661
|
-
*
|
|
662
|
-
* @param name - Image name or ID to tag.
|
|
663
|
-
* @param repo - The repository to tag in. For example,
|
|
664
|
-
* `someuser/someimage`.
|
|
665
|
-
* @param tag - The name of the new tag.
|
|
666
|
-
*/
|
|
667
|
-
readonly tag: (options: ImageTagOptions) => Effect.Effect<void, ImagesError>;
|
|
668
|
-
/**
|
|
669
|
-
* Remove an image
|
|
670
|
-
*
|
|
671
|
-
* @param name - Image name or ID
|
|
672
|
-
* @param force - Remove the image even if it is being used by stopped
|
|
673
|
-
* containers or has other tags
|
|
674
|
-
* @param noprune - Do not delete untagged parent images
|
|
675
|
-
*/
|
|
676
|
-
readonly delete: (options: ImageDeleteOptions) => Effect.Effect<Readonly<Array<ImageDeleteResponseItem>>, ImagesError>;
|
|
677
|
-
/**
|
|
678
|
-
* Search images
|
|
679
|
-
*
|
|
680
|
-
* @param term - Term to search
|
|
681
|
-
* @param limit - Maximum number of results to return
|
|
682
|
-
* @param filters - A JSON encoded value of the filters (a
|
|
683
|
-
* `map[string][]string`) to process on the images list. Available
|
|
684
|
-
* filters:
|
|
685
|
-
*
|
|
686
|
-
* - `is-automated=(true|false)` (deprecated, see below)
|
|
687
|
-
* - `is-official=(true|false)`
|
|
688
|
-
* - `stars=<number>` Matches images that has at least 'number' stars.
|
|
689
|
-
*
|
|
690
|
-
* The `is-automated` filter is deprecated. The `is_automated` field has
|
|
691
|
-
* been deprecated by Docker Hub's search API. Consequently, searching for
|
|
692
|
-
* `is-automated=true` will yield no results.
|
|
693
|
-
*/
|
|
694
|
-
readonly search: (options: ImageSearchOptions) => Effect.Effect<ReadonlyArray<Schema.Schema.Type<typeof ImageSearchResponseItem>>, ImagesError>;
|
|
695
|
-
/**
|
|
696
|
-
* Delete unused images
|
|
697
|
-
*
|
|
698
|
-
* @param filters - Filters to process on the prune list, encoded as JSON (a
|
|
699
|
-
* `map[string][]string`). Available filters:
|
|
700
|
-
*
|
|
701
|
-
* - `dangling=<boolean>` When set to `true` (or `1`), prune only unused _and_
|
|
702
|
-
* untagged images. When set to `false` (or `0`), all unused images
|
|
703
|
-
* are pruned.
|
|
704
|
-
* - `until=<string>` Prune images created before this timestamp. The
|
|
705
|
-
* `<timestamp>` can be Unix timestamps, date formatted timestamps, or
|
|
706
|
-
* Go duration strings (e.g. `10m`, `1h30m`) computed relative to the
|
|
707
|
-
* daemon machine’s time.
|
|
708
|
-
* - `label` (`label=<key>`, `label=<key>=<value>`, `label!=<key>`, or
|
|
709
|
-
* `label!=<key>=<value>`) Prune images with (or without, in case
|
|
710
|
-
* `label!=...` is used) the specified labels.
|
|
711
|
-
*/
|
|
712
|
-
readonly prune: (options?: ImagePruneOptions | undefined) => Effect.Effect<ImagePruneResponse, ImagesError>;
|
|
713
|
-
/**
|
|
714
|
-
* Create a new image from a container
|
|
715
|
-
*
|
|
716
|
-
* @param containerConfig - The container configuration
|
|
717
|
-
* @param container - The ID or name of the container to commit
|
|
718
|
-
* @param repo - Repository name for the created image
|
|
719
|
-
* @param tag - Tag name for the create image
|
|
720
|
-
* @param comment - Commit message
|
|
721
|
-
* @param author - Author of the image (e.g., `John Hannibal Smith
|
|
722
|
-
* <hannibal@a-team.com>`)
|
|
723
|
-
* @param pause - Whether to pause the container before committing
|
|
724
|
-
* @param changes - `Dockerfile` instructions to apply while committing
|
|
725
|
-
*/
|
|
726
|
-
readonly commit: (options: ImageCommitOptions) => Effect.Effect<Readonly<IDResponse>, ImagesError>;
|
|
727
|
-
/**
|
|
728
|
-
* Export an image
|
|
729
|
-
*
|
|
730
|
-
* @param name - Image name or ID
|
|
731
|
-
*/
|
|
732
|
-
readonly get: (options: ImageGetOptions) => Stream.Stream<string, ImagesError, never>;
|
|
733
|
-
/**
|
|
734
|
-
* Export several images
|
|
735
|
-
*
|
|
736
|
-
* @param names - Image names to filter by
|
|
737
|
-
*/
|
|
738
|
-
readonly getall: (options: ImageGetAllOptions) => Stream.Stream<string, ImagesError, never>;
|
|
739
|
-
/**
|
|
740
|
-
* Import images
|
|
741
|
-
*
|
|
742
|
-
* @param imagesTarball - Tar archive containing images
|
|
743
|
-
* @param quiet - Suppress progress details during load.
|
|
744
|
-
*/
|
|
745
|
-
readonly load: <E1>(options: ImageLoadOptions<E1>) => Effect.Effect<void, ImagesError>;
|
|
746
|
-
}
|
|
747
169
|
declare const Images_base: Effect.Service.Class<Images, "@the-moby-effect/endpoints/Images", {
|
|
170
|
+
readonly accessors: true;
|
|
171
|
+
readonly dependencies: readonly [];
|
|
748
172
|
readonly effect: Effect.Effect<{
|
|
749
|
-
list: (options?:
|
|
173
|
+
list: (options?: {
|
|
174
|
+
/**
|
|
175
|
+
* Show all images. Only images from a final layer (no
|
|
176
|
+
* children) are shown by default.
|
|
177
|
+
*/
|
|
178
|
+
readonly all?: boolean;
|
|
179
|
+
/**
|
|
180
|
+
* A JSON encoded value of the filters (a
|
|
181
|
+
* `map[string][]string`) to process on the images list.
|
|
182
|
+
*
|
|
183
|
+
* Available filters:
|
|
184
|
+
*
|
|
185
|
+
* - `before`=(`<image-name>[:<tag>]`, `<image id>` or
|
|
186
|
+
* `<image@digest>`)
|
|
187
|
+
* - `dangling=true`
|
|
188
|
+
* - `label=key` or `label="key=value"` of an image label
|
|
189
|
+
* - `reference`=(`<image-name>[:<tag>]`)
|
|
190
|
+
* - `since`=(`<image-name>[:<tag>]`, `<image id>` or
|
|
191
|
+
* `<image@digest>`)
|
|
192
|
+
* - `until=<timestamp>`
|
|
193
|
+
*/
|
|
194
|
+
readonly filters?: string | undefined;
|
|
195
|
+
/**
|
|
196
|
+
* Compute and show shared size as a `SharedSize` field on
|
|
197
|
+
* each image.
|
|
198
|
+
*/
|
|
199
|
+
readonly "shared-size"?: boolean | undefined;
|
|
200
|
+
/**
|
|
201
|
+
* Show digest information as a `RepoDigests` field on
|
|
202
|
+
* each image.
|
|
203
|
+
*/
|
|
204
|
+
readonly digests?: boolean | undefined;
|
|
205
|
+
} | undefined) => Effect.Effect<ReadonlyArray<ImageSummary>, ImagesError, never>;
|
|
750
206
|
build: <E1>(options: ImageBuildOptions<E1>) => Stream.Stream<JSONMessage, ImagesError, never>;
|
|
751
|
-
buildPrune: (options?:
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
207
|
+
buildPrune: (options?: {
|
|
208
|
+
readonly "keep-storage"?: number;
|
|
209
|
+
readonly all?: boolean;
|
|
210
|
+
readonly filters?: {
|
|
211
|
+
until?: string | undefined;
|
|
212
|
+
id?: string | undefined;
|
|
213
|
+
parent?: string | undefined;
|
|
214
|
+
type?: string | undefined;
|
|
215
|
+
description?: string | undefined;
|
|
216
|
+
inuse?: boolean | undefined;
|
|
217
|
+
shared?: boolean | undefined;
|
|
218
|
+
private?: boolean | undefined;
|
|
219
|
+
} | undefined;
|
|
220
|
+
} | undefined) => Effect.Effect<ImagePruneResponse, ImagesError, never>;
|
|
221
|
+
create: (options: {
|
|
222
|
+
/**
|
|
223
|
+
* Name of the image to pull. The name may include a tag or digest.
|
|
224
|
+
* This parameter may only be used when pulling an image. The pull
|
|
225
|
+
* is cancelled if the HTTP connection is closed.
|
|
226
|
+
*/
|
|
227
|
+
readonly fromImage?: string | undefined;
|
|
228
|
+
/**
|
|
229
|
+
* Source to import. The value may be a URL from which the image can
|
|
230
|
+
* be retrieved or `-` to read the image from the request body. This
|
|
231
|
+
* parameter may only be used when importing an image.
|
|
232
|
+
*/
|
|
233
|
+
readonly fromSrc?: string | undefined;
|
|
234
|
+
/**
|
|
235
|
+
* Repository name given to an image when it is imported. The repo
|
|
236
|
+
* may include a tag. This parameter may only be used when importing
|
|
237
|
+
* an image.
|
|
238
|
+
*/
|
|
239
|
+
readonly repo?: string | undefined;
|
|
240
|
+
/**
|
|
241
|
+
* Tag or digest. If empty when pulling an image, this causes all
|
|
242
|
+
* tags for the given image to be pulled.
|
|
243
|
+
*/
|
|
244
|
+
readonly tag?: string | undefined;
|
|
245
|
+
/** Set commit message for imported image. */
|
|
246
|
+
readonly message?: string | undefined;
|
|
247
|
+
/**
|
|
248
|
+
* Image content if the value `-` has been specified in fromSrc
|
|
249
|
+
* query parameter
|
|
250
|
+
*/
|
|
251
|
+
readonly inputImage?: string | undefined;
|
|
252
|
+
/**
|
|
253
|
+
* A base64url-encoded auth configuration.
|
|
254
|
+
*
|
|
255
|
+
* Refer to the [authentication section](#section/Authentication)
|
|
256
|
+
* for details.
|
|
257
|
+
*/
|
|
258
|
+
readonly "X-Registry-Auth"?: string | undefined;
|
|
259
|
+
/**
|
|
260
|
+
* Apply `Dockerfile` instructions to the image that is created, for
|
|
261
|
+
* example: `changes=ENV DEBUG=true`. Note that `ENV DEBUG=true`
|
|
262
|
+
* should be URI component encoded.
|
|
263
|
+
*
|
|
264
|
+
* Supported `Dockerfile` instructions:
|
|
265
|
+
* `CMD`|`ENTRYPOINT`|`ENV`|`EXPOSE`|`ONBUILD`|`USER`|`VOLUME`|`WORKDIR`
|
|
266
|
+
*/
|
|
267
|
+
readonly changes?: string | undefined;
|
|
268
|
+
/**
|
|
269
|
+
* Platform in the format os[/arch[/variant]].
|
|
270
|
+
*
|
|
271
|
+
* When used in combination with the `fromImage` option, the daemon
|
|
272
|
+
* checks if the given image is present in the local image cache
|
|
273
|
+
* with the given OS and Architecture, and otherwise attempts to
|
|
274
|
+
* pull the image. If the option is not set, the host's native OS
|
|
275
|
+
* and Architecture are used. If the given image does not exist in
|
|
276
|
+
* the local image cache, the daemon attempts to pull the image with
|
|
277
|
+
* the host's native OS and Architecture. If the given image does
|
|
278
|
+
* exists in the local image cache, but its OS or architecture does
|
|
279
|
+
* not match, a warning is produced.
|
|
280
|
+
*
|
|
281
|
+
* When used with the `fromSrc` option to import an image from an
|
|
282
|
+
* archive, this option sets the platform information for the
|
|
283
|
+
* imported image. If the option is not set, the host's native OS
|
|
284
|
+
* and Architecture are used for the imported image.
|
|
285
|
+
*/
|
|
286
|
+
readonly platform?: string | undefined;
|
|
287
|
+
}) => Stream.Stream<JSONMessage, ImagesError, never>;
|
|
288
|
+
inspect: (options: {
|
|
289
|
+
readonly name: string;
|
|
290
|
+
}) => Effect.Effect<Readonly<ImageInspect>, ImagesError, never>;
|
|
291
|
+
history: (options: {
|
|
292
|
+
readonly name: string;
|
|
293
|
+
}) => Effect.Effect<ReadonlyArray<ImageHistoryResponseItem>, ImagesError, never>;
|
|
294
|
+
push: (options: {
|
|
295
|
+
readonly name: string;
|
|
296
|
+
readonly tag?: string;
|
|
297
|
+
readonly "X-Registry-Auth": string;
|
|
298
|
+
}) => Stream.Stream<string, ImagesError, never>;
|
|
299
|
+
tag: (options: {
|
|
300
|
+
readonly name: string;
|
|
301
|
+
readonly repo?: string;
|
|
302
|
+
readonly tag?: string;
|
|
303
|
+
}) => Effect.Effect<void, ImagesError, never>;
|
|
304
|
+
delete: (options: {
|
|
305
|
+
readonly name: string;
|
|
306
|
+
readonly force?: boolean;
|
|
307
|
+
readonly noprune?: boolean;
|
|
308
|
+
}) => Effect.Effect<ReadonlyArray<ImageDeleteResponseItem>, ImagesError, never>;
|
|
309
|
+
search: (options: {
|
|
310
|
+
readonly term: string;
|
|
311
|
+
readonly limit?: number | undefined;
|
|
312
|
+
readonly stars?: number | undefined;
|
|
313
|
+
readonly "is-official"?: boolean | undefined;
|
|
314
|
+
}) => Effect.Effect<ReadonlyArray<ImageSearchResponseItem>, ImagesError, never>;
|
|
315
|
+
prune: (options?: {
|
|
316
|
+
readonly filters?: {
|
|
317
|
+
dangling?: ["true" | "false"] | undefined;
|
|
318
|
+
until?: [string] | undefined;
|
|
319
|
+
label?: Array<string> | undefined;
|
|
320
|
+
};
|
|
321
|
+
} | undefined) => Effect.Effect<ImagePruneResponse, ImagesError, never>;
|
|
322
|
+
commit: (options: {
|
|
323
|
+
readonly containerConfig: ContainerConfig;
|
|
324
|
+
readonly container?: string;
|
|
325
|
+
readonly repo?: string;
|
|
326
|
+
readonly tag?: string;
|
|
327
|
+
readonly comment?: string;
|
|
328
|
+
readonly author?: string;
|
|
329
|
+
readonly pause?: boolean;
|
|
330
|
+
readonly changes?: string;
|
|
331
|
+
}) => Effect.Effect<Readonly<IDResponse>, ImagesError, never>;
|
|
332
|
+
get: (options: {
|
|
333
|
+
readonly name: string;
|
|
334
|
+
}) => Stream.Stream<string, ImagesError, never>;
|
|
335
|
+
getall: (options?: {
|
|
336
|
+
readonly names?: Array<string> | undefined;
|
|
337
|
+
} | undefined) => Stream.Stream<string, ImagesError, never>;
|
|
338
|
+
load: <E1>(options: {
|
|
339
|
+
readonly imagesTarball: Stream.Stream<Uint8Array, E1, never>;
|
|
340
|
+
readonly quiet?: boolean;
|
|
341
|
+
}) => Effect.Effect<void, ImagesError, never>;
|
|
764
342
|
}, never, HttpClient.HttpClient<HttpClientError.HttpClientError, import("effect/Scope").Scope>>;
|
|
765
343
|
}>;
|
|
766
344
|
/**
|