@lakutata/containerd 0.0.0-stage → 3.0.0-beta.0
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/LICENSE +23 -0
- package/README.md +409 -2
- package/THIRD_PARTY_NOTICES.md +310 -0
- package/dist/cjs/client/BuildKit.d.ts +176 -0
- package/dist/cjs/client/BuildKit.js +536 -0
- package/dist/cjs/client/BuildKitMessages.d.ts +35 -0
- package/dist/cjs/client/BuildKitMessages.js +123 -0
- package/dist/cjs/client/ContainerStore.d.ts +558 -0
- package/dist/cjs/client/ContainerStore.js +1384 -0
- package/dist/cjs/client/ContainerdClient.d.ts +244 -0
- package/dist/cjs/client/ContainerdClient.js +455 -0
- package/dist/cjs/client/DockerIgnore.d.ts +44 -0
- package/dist/cjs/client/DockerIgnore.js +186 -0
- package/dist/cjs/client/Fifo.d.ts +31 -0
- package/dist/cjs/client/Fifo.js +66 -0
- package/dist/cjs/client/ImageStore.d.ts +258 -0
- package/dist/cjs/client/ImageStore.js +636 -0
- package/dist/cjs/client/Messages.d.ts +103 -0
- package/dist/cjs/client/Messages.js +397 -0
- package/dist/cjs/client/Networks.d.ts +221 -0
- package/dist/cjs/client/Networks.js +630 -0
- package/dist/cjs/client/Platforms.d.ts +53 -0
- package/dist/cjs/client/Platforms.js +169 -0
- package/dist/cjs/client/Reference.d.ts +33 -0
- package/dist/cjs/client/Reference.js +70 -0
- package/dist/cjs/client/Registry.d.ts +145 -0
- package/dist/cjs/client/Registry.js +272 -0
- package/dist/cjs/client/Rootfs.d.ts +83 -0
- package/dist/cjs/client/Rootfs.js +245 -0
- package/dist/cjs/client/Seccomp.d.ts +36 -0
- package/dist/cjs/client/Seccomp.js +156 -0
- package/dist/cjs/client/Spec.d.ts +151 -0
- package/dist/cjs/client/Spec.js +227 -0
- package/dist/cjs/client/Volumes.d.ts +42 -0
- package/dist/cjs/client/Volumes.js +80 -0
- package/dist/cjs/containerd/Containerd.d.ts +442 -0
- package/dist/cjs/containerd/Containerd.js +929 -0
- package/dist/cjs/containerd/exceptions/ContainerdConnectionException.d.ts +9 -0
- package/dist/cjs/containerd/exceptions/ContainerdConnectionException.js +16 -0
- package/dist/cjs/containerd/exceptions/ContainerdContainerNameConflictException.d.ts +8 -0
- package/dist/cjs/containerd/exceptions/ContainerdContainerNameConflictException.js +15 -0
- package/dist/cjs/containerd/exceptions/ContainerdContainerNotFoundException.d.ts +9 -0
- package/dist/cjs/containerd/exceptions/ContainerdContainerNotFoundException.js +16 -0
- package/dist/cjs/containerd/exceptions/ContainerdContainerStateException.d.ts +10 -0
- package/dist/cjs/containerd/exceptions/ContainerdContainerStateException.js +17 -0
- package/dist/cjs/containerd/exceptions/ContainerdImageBuildException.d.ts +9 -0
- package/dist/cjs/containerd/exceptions/ContainerdImageBuildException.js +16 -0
- package/dist/cjs/containerd/exceptions/ContainerdImageExportException.d.ts +9 -0
- package/dist/cjs/containerd/exceptions/ContainerdImageExportException.js +16 -0
- package/dist/cjs/containerd/exceptions/ContainerdImageImportException.d.ts +9 -0
- package/dist/cjs/containerd/exceptions/ContainerdImageImportException.js +16 -0
- package/dist/cjs/containerd/exceptions/ContainerdImageNotFoundException.d.ts +9 -0
- package/dist/cjs/containerd/exceptions/ContainerdImageNotFoundException.js +16 -0
- package/dist/cjs/containerd/exceptions/ContainerdImagePullException.d.ts +9 -0
- package/dist/cjs/containerd/exceptions/ContainerdImagePullException.js +16 -0
- package/dist/cjs/containerd/exceptions/ContainerdImagePushException.d.ts +8 -0
- package/dist/cjs/containerd/exceptions/ContainerdImagePushException.js +15 -0
- package/dist/cjs/containerd/exceptions/ContainerdNetworkConflictException.d.ts +9 -0
- package/dist/cjs/containerd/exceptions/ContainerdNetworkConflictException.js +16 -0
- package/dist/cjs/containerd/exceptions/ContainerdNetworkNotFoundException.d.ts +9 -0
- package/dist/cjs/containerd/exceptions/ContainerdNetworkNotFoundException.js +16 -0
- package/dist/cjs/containerd/exceptions/ContainerdPathNotFoundException.d.ts +8 -0
- package/dist/cjs/containerd/exceptions/ContainerdPathNotFoundException.js +15 -0
- package/dist/cjs/containerd/exceptions/ContainerdPlatformException.d.ts +9 -0
- package/dist/cjs/containerd/exceptions/ContainerdPlatformException.js +16 -0
- package/dist/cjs/containerd/exceptions/ContainerdVolumeInUseException.d.ts +8 -0
- package/dist/cjs/containerd/exceptions/ContainerdVolumeInUseException.js +15 -0
- package/dist/cjs/containerd/exceptions/ContainerdVolumeNotFoundException.d.ts +8 -0
- package/dist/cjs/containerd/exceptions/ContainerdVolumeNotFoundException.js +15 -0
- package/dist/cjs/containerd/lib/ContainerdContainer.d.ts +292 -0
- package/dist/cjs/containerd/lib/ContainerdContainer.js +536 -0
- package/dist/cjs/containerd/lib/ContainerdContainerTTY.d.ts +116 -0
- package/dist/cjs/containerd/lib/ContainerdContainerTTY.js +178 -0
- package/dist/cjs/containerd/lib/ContainerdErrors.d.ts +6 -0
- package/dist/cjs/containerd/lib/ContainerdErrors.js +37 -0
- package/dist/cjs/containerd/lib/ContainerdImage.d.ts +149 -0
- package/dist/cjs/containerd/lib/ContainerdImage.js +222 -0
- package/dist/cjs/containerd/options/ContainerdPruneOptions.d.ts +44 -0
- package/dist/cjs/containerd/options/ContainerdPruneOptions.js +51 -0
- package/dist/cjs/containerd/options/ContainerdRegistryAuthOptions.d.ts +32 -0
- package/dist/cjs/containerd/options/ContainerdRegistryAuthOptions.js +45 -0
- package/dist/cjs/containerd/options/container/ContainerCommitOptions.d.ts +57 -0
- package/dist/cjs/containerd/options/container/ContainerCommitOptions.js +66 -0
- package/dist/cjs/containerd/options/container/ContainerCreateOptions.d.ts +273 -0
- package/dist/cjs/containerd/options/container/ContainerCreateOptions.js +239 -0
- package/dist/cjs/containerd/options/container/ContainerExecOptions.d.ts +53 -0
- package/dist/cjs/containerd/options/container/ContainerExecOptions.js +63 -0
- package/dist/cjs/containerd/options/container/ContainerExportDirectoryOptions.d.ts +32 -0
- package/dist/cjs/containerd/options/container/ContainerExportDirectoryOptions.js +45 -0
- package/dist/cjs/containerd/options/container/ContainerKillOptions.d.ts +30 -0
- package/dist/cjs/containerd/options/container/ContainerKillOptions.js +41 -0
- package/dist/cjs/containerd/options/container/ContainerLogsOptions.d.ts +34 -0
- package/dist/cjs/containerd/options/container/ContainerLogsOptions.js +44 -0
- package/dist/cjs/containerd/options/container/ContainerRemoveOptions.d.ts +22 -0
- package/dist/cjs/containerd/options/container/ContainerRemoveOptions.js +34 -0
- package/dist/cjs/containerd/options/container/ContainerResourceOptions.d.ts +63 -0
- package/dist/cjs/containerd/options/container/ContainerResourceOptions.js +67 -0
- package/dist/cjs/containerd/options/container/ContainerStopOptions.d.ts +30 -0
- package/dist/cjs/containerd/options/container/ContainerStopOptions.js +41 -0
- package/dist/cjs/containerd/options/container/ContainerTTYConsoleSizeOptions.d.ts +26 -0
- package/dist/cjs/containerd/options/container/ContainerTTYConsoleSizeOptions.js +40 -0
- package/dist/cjs/containerd/options/container/ContainerTTYOptions.d.ts +50 -0
- package/dist/cjs/containerd/options/container/ContainerTTYOptions.js +63 -0
- package/dist/cjs/containerd/options/image/ImageBuildOptions.d.ts +88 -0
- package/dist/cjs/containerd/options/image/ImageBuildOptions.js +95 -0
- package/dist/cjs/containerd/options/image/ImageExportOptions.d.ts +25 -0
- package/dist/cjs/containerd/options/image/ImageExportOptions.js +39 -0
- package/dist/cjs/containerd/options/image/ImageImportOptions.d.ts +38 -0
- package/dist/cjs/containerd/options/image/ImageImportOptions.js +47 -0
- package/dist/cjs/containerd/options/image/ImagePullOptions.d.ts +53 -0
- package/dist/cjs/containerd/options/image/ImagePullOptions.js +66 -0
- package/dist/cjs/containerd/options/image/ImagePushOptions.d.ts +44 -0
- package/dist/cjs/containerd/options/image/ImagePushOptions.js +58 -0
- package/dist/cjs/containerd/options/network/NetworkCreateOptions.d.ts +82 -0
- package/dist/cjs/containerd/options/network/NetworkCreateOptions.js +83 -0
- package/dist/cjs/containerd/options/volume/VolumeCreateOptions.d.ts +26 -0
- package/dist/cjs/containerd/options/volume/VolumeCreateOptions.js +40 -0
- package/dist/cjs/containerd/types/ContainerdBind.d.ts +28 -0
- package/dist/cjs/containerd/types/ContainerdBind.js +2 -0
- package/dist/cjs/containerd/types/ContainerdBuildOutputCallback.d.ts +6 -0
- package/dist/cjs/containerd/types/ContainerdBuildOutputCallback.js +2 -0
- package/dist/cjs/containerd/types/ContainerdContainerNetwork.d.ts +40 -0
- package/dist/cjs/containerd/types/ContainerdContainerNetwork.js +2 -0
- package/dist/cjs/containerd/types/ContainerdContainerPort.d.ts +22 -0
- package/dist/cjs/containerd/types/ContainerdContainerPort.js +2 -0
- package/dist/cjs/containerd/types/ContainerdContainerState.d.ts +42 -0
- package/dist/cjs/containerd/types/ContainerdContainerState.js +2 -0
- package/dist/cjs/containerd/types/ContainerdContainerStats.d.ts +107 -0
- package/dist/cjs/containerd/types/ContainerdContainerStats.js +2 -0
- package/dist/cjs/containerd/types/ContainerdDevice.d.ts +25 -0
- package/dist/cjs/containerd/types/ContainerdDevice.js +2 -0
- package/dist/cjs/containerd/types/ContainerdExecResult.d.ts +18 -0
- package/dist/cjs/containerd/types/ContainerdExecResult.js +2 -0
- package/dist/cjs/containerd/types/ContainerdImageConfig.d.ts +46 -0
- package/dist/cjs/containerd/types/ContainerdImageConfig.js +2 -0
- package/dist/cjs/containerd/types/ContainerdNetworkInfo.d.ts +49 -0
- package/dist/cjs/containerd/types/ContainerdNetworkInfo.js +2 -0
- package/dist/cjs/containerd/types/ContainerdProgressCallback.d.ts +29 -0
- package/dist/cjs/containerd/types/ContainerdProgressCallback.js +2 -0
- package/dist/cjs/containerd/types/ContainerdPruneResult.d.ts +21 -0
- package/dist/cjs/containerd/types/ContainerdPruneResult.js +2 -0
- package/dist/cjs/containerd/types/ContainerdRestartPolicy.d.ts +13 -0
- package/dist/cjs/containerd/types/ContainerdRestartPolicy.js +2 -0
- package/dist/cjs/containerd/types/ContainerdTmpfs.d.ts +20 -0
- package/dist/cjs/containerd/types/ContainerdTmpfs.js +2 -0
- package/dist/cjs/containerd/types/ContainerdVolume.d.ts +19 -0
- package/dist/cjs/containerd/types/ContainerdVolume.js +2 -0
- package/dist/cjs/containerd/types/ContainerdVolumeInfo.d.ts +26 -0
- package/dist/cjs/containerd/types/ContainerdVolumeInfo.js +2 -0
- package/dist/cjs/exports/Containerd.d.ts +69 -0
- package/dist/cjs/exports/Containerd.js +87 -0
- package/dist/cjs/package.json +1 -0
- package/dist/esm/client/BuildKit.js +488 -0
- package/dist/esm/client/BuildKitMessages.js +120 -0
- package/dist/esm/client/ContainerStore.js +1339 -0
- package/dist/esm/client/ContainerdClient.js +416 -0
- package/dist/esm/client/DockerIgnore.js +179 -0
- package/dist/esm/client/Fifo.js +59 -0
- package/dist/esm/client/ImageStore.js +628 -0
- package/dist/esm/client/Messages.js +393 -0
- package/dist/esm/client/Networks.js +621 -0
- package/dist/esm/client/Platforms.js +156 -0
- package/dist/esm/client/Reference.js +66 -0
- package/dist/esm/client/Registry.js +263 -0
- package/dist/esm/client/Rootfs.js +234 -0
- package/dist/esm/client/Seccomp.js +152 -0
- package/dist/esm/client/Spec.js +220 -0
- package/dist/esm/client/Volumes.js +73 -0
- package/dist/esm/containerd/Containerd.js +923 -0
- package/dist/esm/containerd/exceptions/ContainerdConnectionException.js +12 -0
- package/dist/esm/containerd/exceptions/ContainerdContainerNameConflictException.js +11 -0
- package/dist/esm/containerd/exceptions/ContainerdContainerNotFoundException.js +12 -0
- package/dist/esm/containerd/exceptions/ContainerdContainerStateException.js +13 -0
- package/dist/esm/containerd/exceptions/ContainerdImageBuildException.js +12 -0
- package/dist/esm/containerd/exceptions/ContainerdImageExportException.js +12 -0
- package/dist/esm/containerd/exceptions/ContainerdImageImportException.js +12 -0
- package/dist/esm/containerd/exceptions/ContainerdImageNotFoundException.js +12 -0
- package/dist/esm/containerd/exceptions/ContainerdImagePullException.js +12 -0
- package/dist/esm/containerd/exceptions/ContainerdImagePushException.js +11 -0
- package/dist/esm/containerd/exceptions/ContainerdNetworkConflictException.js +12 -0
- package/dist/esm/containerd/exceptions/ContainerdNetworkNotFoundException.js +12 -0
- package/dist/esm/containerd/exceptions/ContainerdPathNotFoundException.js +11 -0
- package/dist/esm/containerd/exceptions/ContainerdPlatformException.js +12 -0
- package/dist/esm/containerd/exceptions/ContainerdVolumeInUseException.js +11 -0
- package/dist/esm/containerd/exceptions/ContainerdVolumeNotFoundException.js +11 -0
- package/dist/esm/containerd/lib/ContainerdContainer.js +533 -0
- package/dist/esm/containerd/lib/ContainerdContainerTTY.js +175 -0
- package/dist/esm/containerd/lib/ContainerdErrors.js +34 -0
- package/dist/esm/containerd/lib/ContainerdImage.js +219 -0
- package/dist/esm/containerd/options/ContainerdPruneOptions.js +47 -0
- package/dist/esm/containerd/options/ContainerdRegistryAuthOptions.js +41 -0
- package/dist/esm/containerd/options/container/ContainerCommitOptions.js +62 -0
- package/dist/esm/containerd/options/container/ContainerCreateOptions.js +235 -0
- package/dist/esm/containerd/options/container/ContainerExecOptions.js +59 -0
- package/dist/esm/containerd/options/container/ContainerExportDirectoryOptions.js +41 -0
- package/dist/esm/containerd/options/container/ContainerKillOptions.js +37 -0
- package/dist/esm/containerd/options/container/ContainerLogsOptions.js +40 -0
- package/dist/esm/containerd/options/container/ContainerRemoveOptions.js +30 -0
- package/dist/esm/containerd/options/container/ContainerResourceOptions.js +63 -0
- package/dist/esm/containerd/options/container/ContainerStopOptions.js +37 -0
- package/dist/esm/containerd/options/container/ContainerTTYConsoleSizeOptions.js +36 -0
- package/dist/esm/containerd/options/container/ContainerTTYOptions.js +59 -0
- package/dist/esm/containerd/options/image/ImageBuildOptions.js +91 -0
- package/dist/esm/containerd/options/image/ImageExportOptions.js +35 -0
- package/dist/esm/containerd/options/image/ImageImportOptions.js +43 -0
- package/dist/esm/containerd/options/image/ImagePullOptions.js +62 -0
- package/dist/esm/containerd/options/image/ImagePushOptions.js +54 -0
- package/dist/esm/containerd/options/network/NetworkCreateOptions.js +79 -0
- package/dist/esm/containerd/options/volume/VolumeCreateOptions.js +36 -0
- package/dist/esm/containerd/types/ContainerdBind.js +1 -0
- package/dist/esm/containerd/types/ContainerdBuildOutputCallback.js +1 -0
- package/dist/esm/containerd/types/ContainerdContainerNetwork.js +1 -0
- package/dist/esm/containerd/types/ContainerdContainerPort.js +1 -0
- package/dist/esm/containerd/types/ContainerdContainerState.js +1 -0
- package/dist/esm/containerd/types/ContainerdContainerStats.js +1 -0
- package/dist/esm/containerd/types/ContainerdDevice.js +1 -0
- package/dist/esm/containerd/types/ContainerdExecResult.js +1 -0
- package/dist/esm/containerd/types/ContainerdImageConfig.js +1 -0
- package/dist/esm/containerd/types/ContainerdNetworkInfo.js +1 -0
- package/dist/esm/containerd/types/ContainerdProgressCallback.js +1 -0
- package/dist/esm/containerd/types/ContainerdPruneResult.js +1 -0
- package/dist/esm/containerd/types/ContainerdRestartPolicy.js +1 -0
- package/dist/esm/containerd/types/ContainerdTmpfs.js +1 -0
- package/dist/esm/containerd/types/ContainerdVolume.js +1 -0
- package/dist/esm/containerd/types/ContainerdVolumeInfo.js +1 -0
- package/dist/esm/exports/Containerd.js +68 -0
- package/dist/types/client/BuildKit.d.ts +176 -0
- package/dist/types/client/BuildKitMessages.d.ts +35 -0
- package/dist/types/client/ContainerStore.d.ts +558 -0
- package/dist/types/client/ContainerdClient.d.ts +244 -0
- package/dist/types/client/DockerIgnore.d.ts +44 -0
- package/dist/types/client/Fifo.d.ts +31 -0
- package/dist/types/client/ImageStore.d.ts +258 -0
- package/dist/types/client/Messages.d.ts +103 -0
- package/dist/types/client/Networks.d.ts +221 -0
- package/dist/types/client/Platforms.d.ts +53 -0
- package/dist/types/client/Reference.d.ts +33 -0
- package/dist/types/client/Registry.d.ts +145 -0
- package/dist/types/client/Rootfs.d.ts +83 -0
- package/dist/types/client/Seccomp.d.ts +36 -0
- package/dist/types/client/Spec.d.ts +151 -0
- package/dist/types/client/Volumes.d.ts +42 -0
- package/dist/types/containerd/Containerd.d.ts +442 -0
- package/dist/types/containerd/exceptions/ContainerdConnectionException.d.ts +9 -0
- package/dist/types/containerd/exceptions/ContainerdContainerNameConflictException.d.ts +8 -0
- package/dist/types/containerd/exceptions/ContainerdContainerNotFoundException.d.ts +9 -0
- package/dist/types/containerd/exceptions/ContainerdContainerStateException.d.ts +10 -0
- package/dist/types/containerd/exceptions/ContainerdImageBuildException.d.ts +9 -0
- package/dist/types/containerd/exceptions/ContainerdImageExportException.d.ts +9 -0
- package/dist/types/containerd/exceptions/ContainerdImageImportException.d.ts +9 -0
- package/dist/types/containerd/exceptions/ContainerdImageNotFoundException.d.ts +9 -0
- package/dist/types/containerd/exceptions/ContainerdImagePullException.d.ts +9 -0
- package/dist/types/containerd/exceptions/ContainerdImagePushException.d.ts +8 -0
- package/dist/types/containerd/exceptions/ContainerdNetworkConflictException.d.ts +9 -0
- package/dist/types/containerd/exceptions/ContainerdNetworkNotFoundException.d.ts +9 -0
- package/dist/types/containerd/exceptions/ContainerdPathNotFoundException.d.ts +8 -0
- package/dist/types/containerd/exceptions/ContainerdPlatformException.d.ts +9 -0
- package/dist/types/containerd/exceptions/ContainerdVolumeInUseException.d.ts +8 -0
- package/dist/types/containerd/exceptions/ContainerdVolumeNotFoundException.d.ts +8 -0
- package/dist/types/containerd/lib/ContainerdContainer.d.ts +292 -0
- package/dist/types/containerd/lib/ContainerdContainerTTY.d.ts +116 -0
- package/dist/types/containerd/lib/ContainerdErrors.d.ts +6 -0
- package/dist/types/containerd/lib/ContainerdImage.d.ts +149 -0
- package/dist/types/containerd/options/ContainerdPruneOptions.d.ts +44 -0
- package/dist/types/containerd/options/ContainerdRegistryAuthOptions.d.ts +32 -0
- package/dist/types/containerd/options/container/ContainerCommitOptions.d.ts +57 -0
- package/dist/types/containerd/options/container/ContainerCreateOptions.d.ts +273 -0
- package/dist/types/containerd/options/container/ContainerExecOptions.d.ts +53 -0
- package/dist/types/containerd/options/container/ContainerExportDirectoryOptions.d.ts +32 -0
- package/dist/types/containerd/options/container/ContainerKillOptions.d.ts +30 -0
- package/dist/types/containerd/options/container/ContainerLogsOptions.d.ts +34 -0
- package/dist/types/containerd/options/container/ContainerRemoveOptions.d.ts +22 -0
- package/dist/types/containerd/options/container/ContainerResourceOptions.d.ts +63 -0
- package/dist/types/containerd/options/container/ContainerStopOptions.d.ts +30 -0
- package/dist/types/containerd/options/container/ContainerTTYConsoleSizeOptions.d.ts +26 -0
- package/dist/types/containerd/options/container/ContainerTTYOptions.d.ts +50 -0
- package/dist/types/containerd/options/image/ImageBuildOptions.d.ts +88 -0
- package/dist/types/containerd/options/image/ImageExportOptions.d.ts +25 -0
- package/dist/types/containerd/options/image/ImageImportOptions.d.ts +38 -0
- package/dist/types/containerd/options/image/ImagePullOptions.d.ts +53 -0
- package/dist/types/containerd/options/image/ImagePushOptions.d.ts +44 -0
- package/dist/types/containerd/options/network/NetworkCreateOptions.d.ts +82 -0
- package/dist/types/containerd/options/volume/VolumeCreateOptions.d.ts +26 -0
- package/dist/types/containerd/types/ContainerdBind.d.ts +28 -0
- package/dist/types/containerd/types/ContainerdBuildOutputCallback.d.ts +6 -0
- package/dist/types/containerd/types/ContainerdContainerNetwork.d.ts +40 -0
- package/dist/types/containerd/types/ContainerdContainerPort.d.ts +22 -0
- package/dist/types/containerd/types/ContainerdContainerState.d.ts +42 -0
- package/dist/types/containerd/types/ContainerdContainerStats.d.ts +107 -0
- package/dist/types/containerd/types/ContainerdDevice.d.ts +25 -0
- package/dist/types/containerd/types/ContainerdExecResult.d.ts +18 -0
- package/dist/types/containerd/types/ContainerdImageConfig.d.ts +46 -0
- package/dist/types/containerd/types/ContainerdNetworkInfo.d.ts +49 -0
- package/dist/types/containerd/types/ContainerdProgressCallback.d.ts +29 -0
- package/dist/types/containerd/types/ContainerdPruneResult.d.ts +21 -0
- package/dist/types/containerd/types/ContainerdRestartPolicy.d.ts +13 -0
- package/dist/types/containerd/types/ContainerdTmpfs.d.ts +20 -0
- package/dist/types/containerd/types/ContainerdVolume.d.ts +19 -0
- package/dist/types/containerd/types/ContainerdVolumeInfo.d.ts +26 -0
- package/dist/types/exports/Containerd.d.ts +69 -0
- package/package.json +51 -4
|
@@ -0,0 +1,310 @@
|
|
|
1
|
+
# Third-party notices
|
|
2
|
+
|
|
3
|
+
Parts of `@lakutata/containerd` are derived from the third-party projects listed below. They are rewritten in
|
|
4
|
+
TypeScript; the original copyright notices and license terms are reproduced here as required.
|
|
5
|
+
|
|
6
|
+
## containerd 1.7.27
|
|
7
|
+
|
|
8
|
+
Copyright The containerd Authors. Licensed under the Apache License, Version 2.0 (reproduced below).
|
|
9
|
+
|
|
10
|
+
The messages of the API of containerd (their fields and their numbers, from its `api/` protobuf definitions):
|
|
11
|
+
`src/client/Messages.ts`; the defaults of the specifications of the containers (the capabilities, the mounts, the masked
|
|
12
|
+
and read only paths, the devices, from its `oci/` package): `src/client/Spec.ts`; its default profile of seccomp (from
|
|
13
|
+
its `contrib/seccomp` package): `src/client/Seccomp.ts`; the identifiers of the chains of the
|
|
14
|
+
layers and the labels of its garbage collection: `src/client/ImageStore.ts`.
|
|
15
|
+
|
|
16
|
+
The metrics of the cgroups v1 and v2 (their fields and their numbers, from the `stats` protobuf definitions of
|
|
17
|
+
github.com/containerd/cgroups, Copyright The containerd Authors, Apache License 2.0): `src/client/Messages.ts`.
|
|
18
|
+
|
|
19
|
+
Modifications: no protobuf definitions are included; the messages are written as the schemas of the encoder of this
|
|
20
|
+
package (`src/client/Protobuf.ts`), with the fields this package uses only.
|
|
21
|
+
|
|
22
|
+
## nerdctl 2.0
|
|
23
|
+
|
|
24
|
+
Copyright The containerd Authors. Licensed under the Apache License, Version 2.0 (reproduced below).
|
|
25
|
+
|
|
26
|
+
The labels of the containers (`nerdctl/name`, `nerdctl/hostname`, `nerdctl/platform`, `nerdctl/log-uri`,
|
|
27
|
+
`nerdctl/state-dir`, `nerdctl/networks`, `nerdctl/mounts`) and the composition of the options of the containers:
|
|
28
|
+
`src/client/ContainerStore.ts`.
|
|
29
|
+
|
|
30
|
+
Modifications: no code of nerdctl is included; its conventions are followed so that nerdctl lists the containers.
|
|
31
|
+
|
|
32
|
+
## BuildKit 0.16
|
|
33
|
+
|
|
34
|
+
Copyright The BuildKit Authors. Licensed under the Apache License, Version 2.0 (reproduced below).
|
|
35
|
+
|
|
36
|
+
The messages of the API of BuildKit and of its session (their fields and their numbers, from its
|
|
37
|
+
`api/services/control`, `session/filesync` and `session/auth` protobuf definitions): `src/client/BuildKitMessages.ts`;
|
|
38
|
+
the session (the methods exposed by its headers, the connection of HTTP/2 in its stream) and the lines of the
|
|
39
|
+
progress of the builds: `src/client/BuildKit.ts`.
|
|
40
|
+
|
|
41
|
+
Modifications: no protobuf definitions are included; the messages are written as the schemas of the encoder of this
|
|
42
|
+
package, with the fields this package uses only.
|
|
43
|
+
|
|
44
|
+
## fsutil
|
|
45
|
+
|
|
46
|
+
Copyright Tõnis Tiigi. Licensed under the MIT License (reproduced below).
|
|
47
|
+
|
|
48
|
+
The protocol of the directories sent to BuildKit (its packets and its stats, the order of its walk, the modes of Go):
|
|
49
|
+
`src/client/BuildKit.ts`, `src/client/BuildKitMessages.ts`.
|
|
50
|
+
|
|
51
|
+
```
|
|
52
|
+
The MIT License (MIT)
|
|
53
|
+
|
|
54
|
+
Copyright (c) 2017 Tõnis Tiigi
|
|
55
|
+
|
|
56
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
|
|
57
|
+
documentation files (the "Software"), to deal in the Software without restriction, including without limitation the
|
|
58
|
+
rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit
|
|
59
|
+
persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
60
|
+
|
|
61
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the
|
|
62
|
+
Software.
|
|
63
|
+
|
|
64
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
|
|
65
|
+
WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
|
66
|
+
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
|
|
67
|
+
OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
## @balena/dockerignore 1.0.2
|
|
71
|
+
|
|
72
|
+
Copyright 2020 Balena Ltd. under the Apache License, Version 2.0 (reproduced below).
|
|
73
|
+
Copyright 2018 Zeit Inc. under the MIT License (reproduced below).
|
|
74
|
+
|
|
75
|
+
The rules of the `.dockerignore` files: `src/client/DockerIgnore.ts`.
|
|
76
|
+
|
|
77
|
+
Modifications: rewritten in TypeScript; only the matching of the paths of a build context is kept.
|
|
78
|
+
|
|
79
|
+
## The MIT License of Zeit Inc.
|
|
80
|
+
|
|
81
|
+
```
|
|
82
|
+
Copyright 2018 Zeit Inc.
|
|
83
|
+
|
|
84
|
+
The MIT License (MIT)
|
|
85
|
+
|
|
86
|
+
Permission is hereby granted, free of charge, to any person obtaining a
|
|
87
|
+
copy of this software and associated documentation files (the "Software"),
|
|
88
|
+
to deal in the Software without restriction, including without limitation
|
|
89
|
+
the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
|
90
|
+
and/or sell copies of the Software, and to permit persons to whom the
|
|
91
|
+
Software is furnished to do so, subject to the following conditions:
|
|
92
|
+
|
|
93
|
+
The above copyright notice and this permission notice shall be included in
|
|
94
|
+
all copies or substantial portions of the Software.
|
|
95
|
+
|
|
96
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
97
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
98
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
99
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
100
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
101
|
+
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
|
102
|
+
DEALINGS IN THE SOFTWARE.
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
## Apache License, Version 2.0
|
|
107
|
+
|
|
108
|
+
```
|
|
109
|
+
Apache License
|
|
110
|
+
Version 2.0, January 2004
|
|
111
|
+
http://www.apache.org/licenses/
|
|
112
|
+
|
|
113
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
114
|
+
|
|
115
|
+
1. Definitions.
|
|
116
|
+
|
|
117
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
118
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
119
|
+
|
|
120
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
121
|
+
the copyright owner that is granting the License.
|
|
122
|
+
|
|
123
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
124
|
+
other entities that control, are controlled by, or are under common
|
|
125
|
+
control with that entity. For the purposes of this definition,
|
|
126
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
127
|
+
direction or management of such entity, whether by contract or
|
|
128
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
129
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
130
|
+
|
|
131
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
132
|
+
exercising permissions granted by this License.
|
|
133
|
+
|
|
134
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
135
|
+
including but not limited to software source code, documentation
|
|
136
|
+
source, and configuration files.
|
|
137
|
+
|
|
138
|
+
"Object" form shall mean any form resulting from mechanical
|
|
139
|
+
transformation or translation of a Source form, including but
|
|
140
|
+
not limited to compiled object code, generated documentation,
|
|
141
|
+
and conversions to other media types.
|
|
142
|
+
|
|
143
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
144
|
+
Object form, made available under the License, as indicated by a
|
|
145
|
+
copyright notice that is included in or attached to the work
|
|
146
|
+
(an example is provided in the Appendix below).
|
|
147
|
+
|
|
148
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
149
|
+
form, that is based on (or derived from) the Work and for which the
|
|
150
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
151
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
152
|
+
of this License, Derivative Works shall not include works that remain
|
|
153
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
154
|
+
the Work and Derivative Works thereof.
|
|
155
|
+
|
|
156
|
+
"Contribution" shall mean any work of authorship, including
|
|
157
|
+
the original version of the Work and any modifications or additions
|
|
158
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
159
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
160
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
161
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
162
|
+
means any form of electronic, verbal, or written communication sent
|
|
163
|
+
to the Licensor or its representatives, including but not limited to
|
|
164
|
+
communication on electronic mailing lists, source code control systems,
|
|
165
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
166
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
167
|
+
excluding communication that is conspicuously marked or otherwise
|
|
168
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
169
|
+
|
|
170
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
171
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
172
|
+
subsequently incorporated within the Work.
|
|
173
|
+
|
|
174
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
175
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
176
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
177
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
178
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
179
|
+
Work and such Derivative Works in Source or Object form.
|
|
180
|
+
|
|
181
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
182
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
183
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
184
|
+
(except as stated in this section) patent license to make, have made,
|
|
185
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
186
|
+
where such license applies only to those patent claims licensable
|
|
187
|
+
by such Contributor that are necessarily infringed by their
|
|
188
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
189
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
190
|
+
institute patent litigation against any entity (including a
|
|
191
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
192
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
193
|
+
or contributory patent infringement, then any patent licenses
|
|
194
|
+
granted to You under this License for that Work shall terminate
|
|
195
|
+
as of the date such litigation is filed.
|
|
196
|
+
|
|
197
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
198
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
199
|
+
modifications, and in Source or Object form, provided that You
|
|
200
|
+
meet the following conditions:
|
|
201
|
+
|
|
202
|
+
(a) You must give any other recipients of the Work or
|
|
203
|
+
Derivative Works a copy of this License; and
|
|
204
|
+
|
|
205
|
+
(b) You must cause any modified files to carry prominent notices
|
|
206
|
+
stating that You changed the files; and
|
|
207
|
+
|
|
208
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
209
|
+
that You distribute, all copyright, patent, trademark, and
|
|
210
|
+
attribution notices from the Source form of the Work,
|
|
211
|
+
excluding those notices that do not pertain to any part of
|
|
212
|
+
the Derivative Works; and
|
|
213
|
+
|
|
214
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
215
|
+
distribution, then any Derivative Works that You distribute must
|
|
216
|
+
include a readable copy of the attribution notices contained
|
|
217
|
+
within such NOTICE file, excluding those notices that do not
|
|
218
|
+
pertain to any part of the Derivative Works, in at least one
|
|
219
|
+
of the following places: within a NOTICE text file distributed
|
|
220
|
+
as part of the Derivative Works; within the Source form or
|
|
221
|
+
documentation, if provided along with the Derivative Works; or,
|
|
222
|
+
within a display generated by the Derivative Works, if and
|
|
223
|
+
wherever such third-party notices normally appear. The contents
|
|
224
|
+
of the NOTICE file are for informational purposes only and
|
|
225
|
+
do not modify the License. You may add Your own attribution
|
|
226
|
+
notices within Derivative Works that You distribute, alongside
|
|
227
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
228
|
+
that such additional attribution notices cannot be construed
|
|
229
|
+
as modifying the License.
|
|
230
|
+
|
|
231
|
+
You may add Your own copyright statement to Your modifications and
|
|
232
|
+
may provide additional or different license terms and conditions
|
|
233
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
234
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
235
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
236
|
+
the conditions stated in this License.
|
|
237
|
+
|
|
238
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
239
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
240
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
241
|
+
this License, without any additional terms or conditions.
|
|
242
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
243
|
+
the terms of any separate license agreement you may have executed
|
|
244
|
+
with Licensor regarding such Contributions.
|
|
245
|
+
|
|
246
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
247
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
248
|
+
except as required for reasonable and customary use in describing the
|
|
249
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
250
|
+
|
|
251
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
252
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
253
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
254
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
255
|
+
implied, including, without limitation, any warranties or conditions
|
|
256
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
257
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
258
|
+
appropriateness of using or redistributing the Work and assume any
|
|
259
|
+
risks associated with Your exercise of permissions under this License.
|
|
260
|
+
|
|
261
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
262
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
263
|
+
unless required by applicable law (such as deliberate and grossly
|
|
264
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
265
|
+
liable to You for damages, including any direct, indirect, special,
|
|
266
|
+
incidental, or consequential damages of any character arising as a
|
|
267
|
+
result of this License or out of the use or inability to use the
|
|
268
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
269
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
270
|
+
other commercial damages or losses), even if such Contributor
|
|
271
|
+
has been advised of the possibility of such damages.
|
|
272
|
+
|
|
273
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
274
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
275
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
276
|
+
or other liability obligations and/or rights consistent with this
|
|
277
|
+
License. However, in accepting such obligations, You may act only
|
|
278
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
279
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
280
|
+
defend, and hold each Contributor harmless for any liability
|
|
281
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
282
|
+
of your accepting any such warranty or additional liability.
|
|
283
|
+
|
|
284
|
+
END OF TERMS AND CONDITIONS
|
|
285
|
+
|
|
286
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
287
|
+
|
|
288
|
+
To apply the Apache License to your work, attach the following
|
|
289
|
+
boilerplate notice, with the fields enclosed by brackets "{}"
|
|
290
|
+
replaced with your own identifying information. (Don't include
|
|
291
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
292
|
+
comment syntax for the file format. We also recommend that a
|
|
293
|
+
file or class name and description of purpose be included on the
|
|
294
|
+
same "printed page" as the copyright notice for easier
|
|
295
|
+
identification within third-party archives.
|
|
296
|
+
|
|
297
|
+
Copyright {yyyy} {name of copyright owner}
|
|
298
|
+
|
|
299
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
300
|
+
you may not use this file except in compliance with the License.
|
|
301
|
+
You may obtain a copy of the License at
|
|
302
|
+
|
|
303
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
304
|
+
|
|
305
|
+
Unless required by applicable law or agreed to in writing, software
|
|
306
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
307
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
308
|
+
See the License for the specific language governing permissions and
|
|
309
|
+
limitations under the License.
|
|
310
|
+
```
|
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
import { type BigIntStats } from 'node:fs';
|
|
2
|
+
import { type Writable } from 'node:stream';
|
|
3
|
+
import { GRPCConnection, GRPCServerCall, type Message } from '@lakutata/grpc';
|
|
4
|
+
import { type Platform } from './Platforms.js';
|
|
5
|
+
import { type RegistryCredentials } from './Registry.js';
|
|
6
|
+
/**
|
|
7
|
+
* The mode of a file as Go writes it (os.FileMode), the one of the stats of fsutil
|
|
8
|
+
* @param stats
|
|
9
|
+
*/
|
|
10
|
+
export declare function goFileMode(stats: BigIntStats): number;
|
|
11
|
+
/**
|
|
12
|
+
* The expression of a pattern of the paths of fsutil (filepath.Match, ** for any directories)
|
|
13
|
+
* @param pattern
|
|
14
|
+
*/
|
|
15
|
+
export declare function patternExpression(pattern: string): RegExp;
|
|
16
|
+
/**
|
|
17
|
+
* An entry of a directory sent: its path (relative, "/" separated), its stat of fsutil
|
|
18
|
+
*/
|
|
19
|
+
export type SyncEntry = {
|
|
20
|
+
path: string;
|
|
21
|
+
absolute: string;
|
|
22
|
+
stat: Message;
|
|
23
|
+
file: boolean;
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* The filters of a directory sent to BuildKit: its patterns included (the Dockerfile), excluded (its .dockerignore), its
|
|
27
|
+
* paths whose symbolic links are followed
|
|
28
|
+
*/
|
|
29
|
+
export type SyncFilter = {
|
|
30
|
+
include?: string[];
|
|
31
|
+
exclude?: string[];
|
|
32
|
+
followPaths?: string[];
|
|
33
|
+
};
|
|
34
|
+
/**
|
|
35
|
+
* The entries of a directory sent to BuildKit, in the order fsutil walks them (lexical, the directories before their
|
|
36
|
+
* content); the parents of the paths included are included
|
|
37
|
+
* @param root
|
|
38
|
+
* @param filter
|
|
39
|
+
*/
|
|
40
|
+
export declare function walkDirectory(root: string, filter?: SyncFilter): Promise<SyncEntry[]>;
|
|
41
|
+
/**
|
|
42
|
+
* Send a directory as fsutil sends it (FileSync.DiffCopy): its stats, then the files the receiver requests, until it
|
|
43
|
+
* finishes
|
|
44
|
+
* @param call
|
|
45
|
+
* @param root
|
|
46
|
+
*/
|
|
47
|
+
export declare function sendDirectory(call: GRPCServerCall, root: string): Promise<void>;
|
|
48
|
+
/**
|
|
49
|
+
* The options of a session of BuildKit
|
|
50
|
+
*/
|
|
51
|
+
export type BuildKitSessionOptions = {
|
|
52
|
+
/**
|
|
53
|
+
* Its name (the one of the build)
|
|
54
|
+
*/
|
|
55
|
+
name: string;
|
|
56
|
+
/**
|
|
57
|
+
* The key of the files of its directories cached by BuildKit (the one of buildx: the path of the context)
|
|
58
|
+
*/
|
|
59
|
+
sharedKey: string;
|
|
60
|
+
/**
|
|
61
|
+
* The directories it sends (context, dockerfile)
|
|
62
|
+
*/
|
|
63
|
+
directories: Record<string, string>;
|
|
64
|
+
/**
|
|
65
|
+
* The credentials of a registry (registry-1.docker.io, registry.example.com:5000)
|
|
66
|
+
*/
|
|
67
|
+
credentials?: (host: string) => RegistryCredentials | undefined;
|
|
68
|
+
/**
|
|
69
|
+
* Where the results exported to the client are written (the archive of the oci exporter)
|
|
70
|
+
*/
|
|
71
|
+
output?: () => Writable;
|
|
72
|
+
};
|
|
73
|
+
/**
|
|
74
|
+
* A session of BuildKit: a connection of HTTP/2 in the stream of Control.Session, where the daemon calls its methods
|
|
75
|
+
* (the files of the directories of the build, the results exported, the credentials of the registries, its health)
|
|
76
|
+
*/
|
|
77
|
+
export declare class BuildKitSession {
|
|
78
|
+
#private;
|
|
79
|
+
protected readonly options: BuildKitSessionOptions;
|
|
80
|
+
readonly id: string;
|
|
81
|
+
constructor(options: BuildKitSessionOptions);
|
|
82
|
+
/**
|
|
83
|
+
* The credentials of a host of a registry (Docker Hub by its names)
|
|
84
|
+
* @param host
|
|
85
|
+
* @protected
|
|
86
|
+
*/
|
|
87
|
+
protected credentials(host: string): RegistryCredentials | undefined;
|
|
88
|
+
/**
|
|
89
|
+
* Open the session: the stream of Control.Session, the methods of the session exposed by its headers
|
|
90
|
+
* @param connection
|
|
91
|
+
* @param signal
|
|
92
|
+
*/
|
|
93
|
+
start(connection: GRPCConnection, signal?: AbortSignal): void;
|
|
94
|
+
/**
|
|
95
|
+
* Close the session
|
|
96
|
+
*/
|
|
97
|
+
close(): void;
|
|
98
|
+
}
|
|
99
|
+
/**
|
|
100
|
+
* The lines of the progress of a build, as "docker build --progress=plain" shows them: the steps are numbered in their
|
|
101
|
+
* order ("#3 [2/2] RUN npm ci"), with their output, and whether they are cached, done ("#3 DONE 1.2s") or failed
|
|
102
|
+
*/
|
|
103
|
+
export declare class BuildKitProgress {
|
|
104
|
+
#private;
|
|
105
|
+
protected step(digest: string): {
|
|
106
|
+
number: number;
|
|
107
|
+
started: boolean;
|
|
108
|
+
ended: boolean;
|
|
109
|
+
};
|
|
110
|
+
/**
|
|
111
|
+
* The lines of a status of the build
|
|
112
|
+
* @param status
|
|
113
|
+
*/
|
|
114
|
+
lines(status: Message): string[];
|
|
115
|
+
protected flush(digest: string): string[];
|
|
116
|
+
}
|
|
117
|
+
/**
|
|
118
|
+
* The options of a build
|
|
119
|
+
*/
|
|
120
|
+
export type BuildKitBuildOptions = {
|
|
121
|
+
/**
|
|
122
|
+
* The directory of the context
|
|
123
|
+
*/
|
|
124
|
+
context: string;
|
|
125
|
+
/**
|
|
126
|
+
* The Dockerfile (relative to the context, or absolute): Dockerfile of the context by default
|
|
127
|
+
*/
|
|
128
|
+
dockerfile?: string;
|
|
129
|
+
target?: string;
|
|
130
|
+
buildArgs?: Record<string, string>;
|
|
131
|
+
labels?: Record<string, string>;
|
|
132
|
+
/**
|
|
133
|
+
* The platforms built: the one of the workers of BuildKit by default
|
|
134
|
+
*/
|
|
135
|
+
platforms?: Platform[];
|
|
136
|
+
noCache?: boolean;
|
|
137
|
+
/**
|
|
138
|
+
* Pull the base images again (their tags resolved by their registries)
|
|
139
|
+
*/
|
|
140
|
+
pull?: boolean;
|
|
141
|
+
/**
|
|
142
|
+
* The name of the image (in the archive)
|
|
143
|
+
*/
|
|
144
|
+
name: string;
|
|
145
|
+
/**
|
|
146
|
+
* The archive of the image (OCI image layout) written
|
|
147
|
+
*/
|
|
148
|
+
output: string;
|
|
149
|
+
credentials?: (registry: string) => RegistryCredentials | undefined;
|
|
150
|
+
/**
|
|
151
|
+
* The lines of its progress
|
|
152
|
+
*/
|
|
153
|
+
progress?: (line: string) => void;
|
|
154
|
+
signal?: AbortSignal;
|
|
155
|
+
};
|
|
156
|
+
/**
|
|
157
|
+
* Build an image with BuildKit (its Dockerfile frontend): its context and its Dockerfile sent by the session, the image
|
|
158
|
+
* exported to the client as an archive (the oci exporter); the daemon is local or remote, of any worker
|
|
159
|
+
* @param connection
|
|
160
|
+
* @param options
|
|
161
|
+
*/
|
|
162
|
+
export declare function buildKitBuild(connection: GRPCConnection, options: BuildKitBuildOptions): Promise<Record<string, string>>;
|
|
163
|
+
/**
|
|
164
|
+
* The version of BuildKit
|
|
165
|
+
* @param connection
|
|
166
|
+
*/
|
|
167
|
+
export declare function buildKitVersion(connection: GRPCConnection): Promise<{
|
|
168
|
+
package: string;
|
|
169
|
+
version: string;
|
|
170
|
+
revision: string;
|
|
171
|
+
}>;
|
|
172
|
+
/**
|
|
173
|
+
* The platforms the workers of BuildKit build
|
|
174
|
+
* @param connection
|
|
175
|
+
*/
|
|
176
|
+
export declare function buildKitPlatforms(connection: GRPCConnection): Promise<Platform[]>;
|