@lakutata/containerd 0.0.0-stage → 3.0.0-beta.1
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,103 @@
|
|
|
1
|
+
import { type Schema } from '@lakutata/grpc';
|
|
2
|
+
export declare const Empty: Schema;
|
|
3
|
+
export declare const Timestamp: Schema;
|
|
4
|
+
export declare const Any: Schema;
|
|
5
|
+
export declare const FieldMask: Schema;
|
|
6
|
+
export declare const Descriptor: Schema;
|
|
7
|
+
export declare const Mount: Schema;
|
|
8
|
+
export declare const VersionResponse: Schema;
|
|
9
|
+
export declare const Namespace: Schema;
|
|
10
|
+
export declare const CreateNamespaceRequest: Schema;
|
|
11
|
+
export declare const ListNamespacesResponse: Schema;
|
|
12
|
+
export declare const Image: Schema;
|
|
13
|
+
export declare const GetImageRequest: Schema;
|
|
14
|
+
export declare const ImageResponse: Schema;
|
|
15
|
+
export declare const CreateImageRequest: Schema;
|
|
16
|
+
export declare const UpdateImageRequest: Schema;
|
|
17
|
+
export declare const ListImagesRequest: Schema;
|
|
18
|
+
export declare const ListImagesResponse: Schema;
|
|
19
|
+
export declare const DeleteImageRequest: Schema;
|
|
20
|
+
export declare const ContentInfo: Schema;
|
|
21
|
+
export declare const InfoRequest: Schema;
|
|
22
|
+
export declare const InfoResponse: Schema;
|
|
23
|
+
export declare const UpdateContentRequest: Schema;
|
|
24
|
+
export declare const DeleteContentRequest: Schema;
|
|
25
|
+
export declare const ReadContentRequest: Schema;
|
|
26
|
+
export declare const ReadContentResponse: Schema;
|
|
27
|
+
/**
|
|
28
|
+
* The actions of the writes of content
|
|
29
|
+
*/
|
|
30
|
+
export declare enum WriteAction {
|
|
31
|
+
STAT = 0,
|
|
32
|
+
WRITE = 1,
|
|
33
|
+
COMMIT = 2
|
|
34
|
+
}
|
|
35
|
+
export declare const WriteContentRequest: Schema;
|
|
36
|
+
export declare const WriteContentResponse: Schema;
|
|
37
|
+
export declare const AbortRequest: Schema;
|
|
38
|
+
export declare const Lease: Schema;
|
|
39
|
+
export declare const CreateLeaseRequest: Schema;
|
|
40
|
+
export declare const CreateLeaseResponse: Schema;
|
|
41
|
+
export declare const DeleteLeaseRequest: Schema;
|
|
42
|
+
export declare const PrepareSnapshotRequest: Schema;
|
|
43
|
+
export declare const MountsResponse: Schema;
|
|
44
|
+
export declare const MountsRequest: Schema;
|
|
45
|
+
export declare const CommitSnapshotRequest: Schema;
|
|
46
|
+
export declare const SnapshotKeyRequest: Schema;
|
|
47
|
+
export declare const SnapshotInfo: Schema;
|
|
48
|
+
export declare const StatSnapshotResponse: Schema;
|
|
49
|
+
export declare const UsageResponse: Schema;
|
|
50
|
+
export declare const ApplyRequest: Schema;
|
|
51
|
+
export declare const ApplyResponse: Schema;
|
|
52
|
+
export declare const ContainerRuntime: Schema;
|
|
53
|
+
export declare const Container: Schema;
|
|
54
|
+
export declare const GetContainerRequest: Schema;
|
|
55
|
+
export declare const ContainerResponse: Schema;
|
|
56
|
+
export declare const CreateContainerRequest: Schema;
|
|
57
|
+
export declare const UpdateContainerRequest: Schema;
|
|
58
|
+
export declare const ListContainersRequest: Schema;
|
|
59
|
+
export declare const ListContainersResponse: Schema;
|
|
60
|
+
export declare const DeleteContainerRequest: Schema;
|
|
61
|
+
/**
|
|
62
|
+
* The states of the processes of the tasks
|
|
63
|
+
*/
|
|
64
|
+
export declare enum ProcessStatus {
|
|
65
|
+
UNKNOWN = 0,
|
|
66
|
+
CREATED = 1,
|
|
67
|
+
RUNNING = 2,
|
|
68
|
+
STOPPED = 3,
|
|
69
|
+
PAUSED = 4,
|
|
70
|
+
PAUSING = 5
|
|
71
|
+
}
|
|
72
|
+
export declare const Process: Schema;
|
|
73
|
+
export declare const CreateTaskRequest: Schema;
|
|
74
|
+
export declare const CreateTaskResponse: Schema;
|
|
75
|
+
export declare const ProcessRequest: Schema;
|
|
76
|
+
export declare const StartResponse: Schema;
|
|
77
|
+
export declare const DeleteTaskRequest: Schema;
|
|
78
|
+
export declare const DeleteTaskResponse: Schema;
|
|
79
|
+
export declare const GetTaskResponse: Schema;
|
|
80
|
+
export declare const ListTasksRequest: Schema;
|
|
81
|
+
export declare const ListTasksResponse: Schema;
|
|
82
|
+
export declare const KillRequest: Schema;
|
|
83
|
+
export declare const ExecProcessRequest: Schema;
|
|
84
|
+
export declare const ResizePtyRequest: Schema;
|
|
85
|
+
export declare const CloseIORequest: Schema;
|
|
86
|
+
export declare const ContainerIdRequest: Schema;
|
|
87
|
+
export declare const ListPidsResponse: Schema;
|
|
88
|
+
export declare const WaitResponse: Schema;
|
|
89
|
+
export declare const UpdateTaskRequest: Schema;
|
|
90
|
+
export declare const SubscribeRequest: Schema;
|
|
91
|
+
export declare const Envelope: Schema;
|
|
92
|
+
/**
|
|
93
|
+
* The events of containerd decoded, by their type (the type URL of their Any)
|
|
94
|
+
*/
|
|
95
|
+
export declare const EVENTS: Readonly<Record<string, Schema>>;
|
|
96
|
+
export declare const RuncOptions: Schema;
|
|
97
|
+
export declare const MetricsRequest: Schema;
|
|
98
|
+
export declare const Metric: Schema;
|
|
99
|
+
export declare const MetricsResponse: Schema;
|
|
100
|
+
export declare const CgroupV2Metrics: Schema;
|
|
101
|
+
export declare const CgroupV1Metrics: Schema;
|
|
102
|
+
export declare const DiffRequest: Schema;
|
|
103
|
+
export declare const DiffResponse: Schema;
|
|
@@ -0,0 +1,397 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ListContainersRequest = exports.UpdateContainerRequest = exports.CreateContainerRequest = exports.ContainerResponse = exports.GetContainerRequest = exports.Container = exports.ContainerRuntime = exports.ApplyResponse = exports.ApplyRequest = exports.UsageResponse = exports.StatSnapshotResponse = exports.SnapshotInfo = exports.SnapshotKeyRequest = exports.CommitSnapshotRequest = exports.MountsRequest = exports.MountsResponse = exports.PrepareSnapshotRequest = exports.DeleteLeaseRequest = exports.CreateLeaseResponse = exports.CreateLeaseRequest = exports.Lease = exports.AbortRequest = exports.WriteContentResponse = exports.WriteContentRequest = exports.WriteAction = exports.ReadContentResponse = exports.ReadContentRequest = exports.DeleteContentRequest = exports.UpdateContentRequest = exports.InfoResponse = exports.InfoRequest = exports.ContentInfo = exports.DeleteImageRequest = exports.ListImagesResponse = exports.ListImagesRequest = exports.UpdateImageRequest = exports.CreateImageRequest = exports.ImageResponse = exports.GetImageRequest = exports.Image = exports.ListNamespacesResponse = exports.CreateNamespaceRequest = exports.Namespace = exports.VersionResponse = exports.Mount = exports.Descriptor = exports.FieldMask = exports.Any = exports.Timestamp = exports.Empty = void 0;
|
|
4
|
+
exports.DiffResponse = exports.DiffRequest = exports.CgroupV1Metrics = exports.CgroupV2Metrics = exports.MetricsResponse = exports.Metric = exports.MetricsRequest = exports.RuncOptions = exports.EVENTS = exports.Envelope = exports.SubscribeRequest = exports.UpdateTaskRequest = exports.WaitResponse = exports.ListPidsResponse = exports.ContainerIdRequest = exports.CloseIORequest = exports.ResizePtyRequest = exports.ExecProcessRequest = exports.KillRequest = exports.ListTasksResponse = exports.ListTasksRequest = exports.GetTaskResponse = exports.DeleteTaskResponse = exports.DeleteTaskRequest = exports.StartResponse = exports.ProcessRequest = exports.CreateTaskResponse = exports.CreateTaskRequest = exports.Process = exports.ProcessStatus = exports.DeleteContainerRequest = exports.ListContainersResponse = void 0;
|
|
5
|
+
/*
|
|
6
|
+
* The messages of the API of containerd (github.com/containerd/containerd, api/), the fields read and written: their
|
|
7
|
+
* numbers are the ones of its proto files (the version 1 of its services, the ones of containerd 1.6 to 2)
|
|
8
|
+
*/
|
|
9
|
+
exports.Empty = {};
|
|
10
|
+
exports.Timestamp = {
|
|
11
|
+
seconds: { no: 1, type: 'int64' },
|
|
12
|
+
nanos: { no: 2, type: 'int32' }
|
|
13
|
+
};
|
|
14
|
+
exports.Any = {
|
|
15
|
+
typeUrl: { no: 1, type: 'string' },
|
|
16
|
+
value: { no: 2, type: 'bytes' }
|
|
17
|
+
};
|
|
18
|
+
exports.FieldMask = {
|
|
19
|
+
paths: { no: 1, type: 'string', repeated: true }
|
|
20
|
+
};
|
|
21
|
+
exports.Descriptor = {
|
|
22
|
+
mediaType: { no: 1, type: 'string' },
|
|
23
|
+
digest: { no: 2, type: 'string' },
|
|
24
|
+
size: { no: 3, type: 'int64' },
|
|
25
|
+
annotations: { no: 5, type: 'string', map: true }
|
|
26
|
+
};
|
|
27
|
+
exports.Mount = {
|
|
28
|
+
type: { no: 1, type: 'string' },
|
|
29
|
+
source: { no: 2, type: 'string' },
|
|
30
|
+
target: { no: 3, type: 'string' },
|
|
31
|
+
options: { no: 4, type: 'string', repeated: true }
|
|
32
|
+
};
|
|
33
|
+
/*
|
|
34
|
+
* Version
|
|
35
|
+
*/
|
|
36
|
+
exports.VersionResponse = {
|
|
37
|
+
version: { no: 1, type: 'string' },
|
|
38
|
+
revision: { no: 2, type: 'string' }
|
|
39
|
+
};
|
|
40
|
+
/*
|
|
41
|
+
* Namespaces
|
|
42
|
+
*/
|
|
43
|
+
exports.Namespace = {
|
|
44
|
+
name: { no: 1, type: 'string' },
|
|
45
|
+
labels: { no: 2, type: 'string', map: true }
|
|
46
|
+
};
|
|
47
|
+
exports.CreateNamespaceRequest = { namespace: { no: 1, type: exports.Namespace } };
|
|
48
|
+
exports.ListNamespacesResponse = { namespaces: { no: 1, type: exports.Namespace, repeated: true } };
|
|
49
|
+
/*
|
|
50
|
+
* Images
|
|
51
|
+
*/
|
|
52
|
+
exports.Image = {
|
|
53
|
+
name: { no: 1, type: 'string' },
|
|
54
|
+
labels: { no: 2, type: 'string', map: true },
|
|
55
|
+
target: { no: 3, type: exports.Descriptor },
|
|
56
|
+
createdAt: { no: 7, type: exports.Timestamp },
|
|
57
|
+
updatedAt: { no: 8, type: exports.Timestamp }
|
|
58
|
+
};
|
|
59
|
+
exports.GetImageRequest = { name: { no: 1, type: 'string' } };
|
|
60
|
+
exports.ImageResponse = { image: { no: 1, type: exports.Image } };
|
|
61
|
+
exports.CreateImageRequest = { image: { no: 1, type: exports.Image } };
|
|
62
|
+
exports.UpdateImageRequest = { image: { no: 1, type: exports.Image }, updateMask: { no: 2, type: exports.FieldMask } };
|
|
63
|
+
exports.ListImagesRequest = { filters: { no: 1, type: 'string', repeated: true } };
|
|
64
|
+
exports.ListImagesResponse = { images: { no: 1, type: exports.Image, repeated: true } };
|
|
65
|
+
exports.DeleteImageRequest = { name: { no: 1, type: 'string' }, sync: { no: 2, type: 'bool' } };
|
|
66
|
+
/*
|
|
67
|
+
* Content
|
|
68
|
+
*/
|
|
69
|
+
exports.ContentInfo = {
|
|
70
|
+
digest: { no: 1, type: 'string' },
|
|
71
|
+
size: { no: 2, type: 'int64' },
|
|
72
|
+
createdAt: { no: 3, type: exports.Timestamp },
|
|
73
|
+
updatedAt: { no: 4, type: exports.Timestamp },
|
|
74
|
+
labels: { no: 5, type: 'string', map: true }
|
|
75
|
+
};
|
|
76
|
+
exports.InfoRequest = { digest: { no: 1, type: 'string' } };
|
|
77
|
+
exports.InfoResponse = { info: { no: 1, type: exports.ContentInfo } };
|
|
78
|
+
exports.UpdateContentRequest = { info: { no: 1, type: exports.ContentInfo }, updateMask: { no: 2, type: exports.FieldMask } };
|
|
79
|
+
exports.DeleteContentRequest = { digest: { no: 1, type: 'string' } };
|
|
80
|
+
exports.ReadContentRequest = {
|
|
81
|
+
digest: { no: 1, type: 'string' },
|
|
82
|
+
offset: { no: 2, type: 'int64' },
|
|
83
|
+
size: { no: 3, type: 'int64' }
|
|
84
|
+
};
|
|
85
|
+
exports.ReadContentResponse = {
|
|
86
|
+
offset: { no: 1, type: 'int64' },
|
|
87
|
+
data: { no: 2, type: 'bytes' }
|
|
88
|
+
};
|
|
89
|
+
/**
|
|
90
|
+
* The actions of the writes of content
|
|
91
|
+
*/
|
|
92
|
+
var WriteAction;
|
|
93
|
+
(function (WriteAction) {
|
|
94
|
+
WriteAction[WriteAction["STAT"] = 0] = "STAT";
|
|
95
|
+
WriteAction[WriteAction["WRITE"] = 1] = "WRITE";
|
|
96
|
+
WriteAction[WriteAction["COMMIT"] = 2] = "COMMIT";
|
|
97
|
+
})(WriteAction || (exports.WriteAction = WriteAction = {}));
|
|
98
|
+
exports.WriteContentRequest = {
|
|
99
|
+
action: { no: 1, type: 'enum' },
|
|
100
|
+
ref: { no: 2, type: 'string' },
|
|
101
|
+
total: { no: 3, type: 'int64' },
|
|
102
|
+
expected: { no: 4, type: 'string' },
|
|
103
|
+
offset: { no: 5, type: 'int64' },
|
|
104
|
+
data: { no: 6, type: 'bytes' },
|
|
105
|
+
labels: { no: 7, type: 'string', map: true }
|
|
106
|
+
};
|
|
107
|
+
exports.WriteContentResponse = {
|
|
108
|
+
action: { no: 1, type: 'enum' },
|
|
109
|
+
offset: { no: 4, type: 'int64' },
|
|
110
|
+
total: { no: 5, type: 'int64' },
|
|
111
|
+
digest: { no: 6, type: 'string' }
|
|
112
|
+
};
|
|
113
|
+
exports.AbortRequest = { ref: { no: 1, type: 'string' } };
|
|
114
|
+
/*
|
|
115
|
+
* Leases
|
|
116
|
+
*/
|
|
117
|
+
exports.Lease = {
|
|
118
|
+
id: { no: 1, type: 'string' },
|
|
119
|
+
labels: { no: 3, type: 'string', map: true }
|
|
120
|
+
};
|
|
121
|
+
exports.CreateLeaseRequest = {
|
|
122
|
+
id: { no: 1, type: 'string' },
|
|
123
|
+
labels: { no: 3, type: 'string', map: true }
|
|
124
|
+
};
|
|
125
|
+
exports.CreateLeaseResponse = { lease: { no: 1, type: exports.Lease } };
|
|
126
|
+
exports.DeleteLeaseRequest = { id: { no: 1, type: 'string' }, sync: { no: 2, type: 'bool' } };
|
|
127
|
+
/*
|
|
128
|
+
* Snapshots
|
|
129
|
+
*/
|
|
130
|
+
exports.PrepareSnapshotRequest = {
|
|
131
|
+
snapshotter: { no: 1, type: 'string' },
|
|
132
|
+
key: { no: 2, type: 'string' },
|
|
133
|
+
parent: { no: 3, type: 'string' },
|
|
134
|
+
labels: { no: 4, type: 'string', map: true }
|
|
135
|
+
};
|
|
136
|
+
exports.MountsResponse = { mounts: { no: 1, type: exports.Mount, repeated: true } };
|
|
137
|
+
exports.MountsRequest = { snapshotter: { no: 1, type: 'string' }, key: { no: 2, type: 'string' } };
|
|
138
|
+
exports.CommitSnapshotRequest = {
|
|
139
|
+
snapshotter: { no: 1, type: 'string' },
|
|
140
|
+
name: { no: 2, type: 'string' },
|
|
141
|
+
key: { no: 3, type: 'string' },
|
|
142
|
+
labels: { no: 4, type: 'string', map: true }
|
|
143
|
+
};
|
|
144
|
+
exports.SnapshotKeyRequest = { snapshotter: { no: 1, type: 'string' }, key: { no: 2, type: 'string' } };
|
|
145
|
+
exports.SnapshotInfo = {
|
|
146
|
+
name: { no: 1, type: 'string' },
|
|
147
|
+
parent: { no: 2, type: 'string' },
|
|
148
|
+
kind: { no: 3, type: 'enum' },
|
|
149
|
+
createdAt: { no: 4, type: exports.Timestamp },
|
|
150
|
+
updatedAt: { no: 5, type: exports.Timestamp },
|
|
151
|
+
labels: { no: 6, type: 'string', map: true }
|
|
152
|
+
};
|
|
153
|
+
exports.StatSnapshotResponse = { info: { no: 1, type: exports.SnapshotInfo } };
|
|
154
|
+
exports.UsageResponse = { size: { no: 1, type: 'int64' }, inodes: { no: 2, type: 'int64' } };
|
|
155
|
+
/*
|
|
156
|
+
* Diff
|
|
157
|
+
*/
|
|
158
|
+
exports.ApplyRequest = {
|
|
159
|
+
diff: { no: 1, type: exports.Descriptor },
|
|
160
|
+
mounts: { no: 2, type: exports.Mount, repeated: true }
|
|
161
|
+
};
|
|
162
|
+
exports.ApplyResponse = { applied: { no: 1, type: exports.Descriptor } };
|
|
163
|
+
/*
|
|
164
|
+
* Containers
|
|
165
|
+
*/
|
|
166
|
+
exports.ContainerRuntime = {
|
|
167
|
+
name: { no: 1, type: 'string' },
|
|
168
|
+
options: { no: 2, type: exports.Any }
|
|
169
|
+
};
|
|
170
|
+
exports.Container = {
|
|
171
|
+
id: { no: 1, type: 'string' },
|
|
172
|
+
labels: { no: 2, type: 'string', map: true },
|
|
173
|
+
image: { no: 3, type: 'string' },
|
|
174
|
+
runtime: { no: 4, type: exports.ContainerRuntime },
|
|
175
|
+
spec: { no: 5, type: exports.Any },
|
|
176
|
+
snapshotter: { no: 6, type: 'string' },
|
|
177
|
+
snapshotKey: { no: 7, type: 'string' },
|
|
178
|
+
createdAt: { no: 8, type: exports.Timestamp },
|
|
179
|
+
updatedAt: { no: 9, type: exports.Timestamp },
|
|
180
|
+
extensions: { no: 10, type: exports.Any, map: true }
|
|
181
|
+
};
|
|
182
|
+
exports.GetContainerRequest = { id: { no: 1, type: 'string' } };
|
|
183
|
+
exports.ContainerResponse = { container: { no: 1, type: exports.Container } };
|
|
184
|
+
exports.CreateContainerRequest = { container: { no: 1, type: exports.Container } };
|
|
185
|
+
exports.UpdateContainerRequest = { container: { no: 1, type: exports.Container }, updateMask: { no: 2, type: exports.FieldMask } };
|
|
186
|
+
exports.ListContainersRequest = { filters: { no: 1, type: 'string', repeated: true } };
|
|
187
|
+
exports.ListContainersResponse = { containers: { no: 1, type: exports.Container, repeated: true } };
|
|
188
|
+
exports.DeleteContainerRequest = { id: { no: 1, type: 'string' } };
|
|
189
|
+
/*
|
|
190
|
+
* Tasks
|
|
191
|
+
*/
|
|
192
|
+
/**
|
|
193
|
+
* The states of the processes of the tasks
|
|
194
|
+
*/
|
|
195
|
+
var ProcessStatus;
|
|
196
|
+
(function (ProcessStatus) {
|
|
197
|
+
ProcessStatus[ProcessStatus["UNKNOWN"] = 0] = "UNKNOWN";
|
|
198
|
+
ProcessStatus[ProcessStatus["CREATED"] = 1] = "CREATED";
|
|
199
|
+
ProcessStatus[ProcessStatus["RUNNING"] = 2] = "RUNNING";
|
|
200
|
+
ProcessStatus[ProcessStatus["STOPPED"] = 3] = "STOPPED";
|
|
201
|
+
ProcessStatus[ProcessStatus["PAUSED"] = 4] = "PAUSED";
|
|
202
|
+
ProcessStatus[ProcessStatus["PAUSING"] = 5] = "PAUSING";
|
|
203
|
+
})(ProcessStatus || (exports.ProcessStatus = ProcessStatus = {}));
|
|
204
|
+
exports.Process = {
|
|
205
|
+
containerId: { no: 1, type: 'string' },
|
|
206
|
+
id: { no: 2, type: 'string' },
|
|
207
|
+
pid: { no: 3, type: 'uint32' },
|
|
208
|
+
status: { no: 4, type: 'enum' },
|
|
209
|
+
stdin: { no: 5, type: 'string' },
|
|
210
|
+
stdout: { no: 6, type: 'string' },
|
|
211
|
+
stderr: { no: 7, type: 'string' },
|
|
212
|
+
terminal: { no: 8, type: 'bool' },
|
|
213
|
+
exitStatus: { no: 9, type: 'uint32' },
|
|
214
|
+
exitedAt: { no: 10, type: exports.Timestamp }
|
|
215
|
+
};
|
|
216
|
+
exports.CreateTaskRequest = {
|
|
217
|
+
containerId: { no: 1, type: 'string' },
|
|
218
|
+
rootfs: { no: 3, type: exports.Mount, repeated: true },
|
|
219
|
+
stdin: { no: 4, type: 'string' },
|
|
220
|
+
stdout: { no: 5, type: 'string' },
|
|
221
|
+
stderr: { no: 6, type: 'string' },
|
|
222
|
+
terminal: { no: 7, type: 'bool' },
|
|
223
|
+
options: { no: 9, type: exports.Any }
|
|
224
|
+
};
|
|
225
|
+
exports.CreateTaskResponse = { containerId: { no: 1, type: 'string' }, pid: { no: 2, type: 'uint32' } };
|
|
226
|
+
exports.ProcessRequest = { containerId: { no: 1, type: 'string' }, execId: { no: 2, type: 'string' } };
|
|
227
|
+
exports.StartResponse = { pid: { no: 1, type: 'uint32' } };
|
|
228
|
+
exports.DeleteTaskRequest = { containerId: { no: 1, type: 'string' } };
|
|
229
|
+
exports.DeleteTaskResponse = {
|
|
230
|
+
id: { no: 1, type: 'string' },
|
|
231
|
+
pid: { no: 2, type: 'uint32' },
|
|
232
|
+
exitStatus: { no: 3, type: 'uint32' },
|
|
233
|
+
exitedAt: { no: 4, type: exports.Timestamp }
|
|
234
|
+
};
|
|
235
|
+
exports.GetTaskResponse = { process: { no: 1, type: exports.Process } };
|
|
236
|
+
exports.ListTasksRequest = { filter: { no: 1, type: 'string' } };
|
|
237
|
+
exports.ListTasksResponse = { tasks: { no: 1, type: exports.Process, repeated: true } };
|
|
238
|
+
exports.KillRequest = {
|
|
239
|
+
containerId: { no: 1, type: 'string' },
|
|
240
|
+
execId: { no: 2, type: 'string' },
|
|
241
|
+
signal: { no: 3, type: 'uint32' },
|
|
242
|
+
all: { no: 4, type: 'bool' }
|
|
243
|
+
};
|
|
244
|
+
exports.ExecProcessRequest = {
|
|
245
|
+
containerId: { no: 1, type: 'string' },
|
|
246
|
+
stdin: { no: 2, type: 'string' },
|
|
247
|
+
stdout: { no: 3, type: 'string' },
|
|
248
|
+
stderr: { no: 4, type: 'string' },
|
|
249
|
+
terminal: { no: 5, type: 'bool' },
|
|
250
|
+
spec: { no: 6, type: exports.Any },
|
|
251
|
+
execId: { no: 7, type: 'string' }
|
|
252
|
+
};
|
|
253
|
+
exports.ResizePtyRequest = {
|
|
254
|
+
containerId: { no: 1, type: 'string' },
|
|
255
|
+
execId: { no: 2, type: 'string' },
|
|
256
|
+
width: { no: 3, type: 'uint32' },
|
|
257
|
+
height: { no: 4, type: 'uint32' }
|
|
258
|
+
};
|
|
259
|
+
exports.CloseIORequest = { containerId: { no: 1, type: 'string' }, execId: { no: 2, type: 'string' }, stdin: { no: 3, type: 'bool' } };
|
|
260
|
+
exports.ContainerIdRequest = { containerId: { no: 1, type: 'string' } };
|
|
261
|
+
exports.ListPidsResponse = { processes: { no: 1, type: { pid: { no: 1, type: 'uint32' } }, repeated: true } };
|
|
262
|
+
exports.WaitResponse = { exitStatus: { no: 1, type: 'uint32' }, exitedAt: { no: 2, type: exports.Timestamp } };
|
|
263
|
+
exports.UpdateTaskRequest = {
|
|
264
|
+
containerId: { no: 1, type: 'string' },
|
|
265
|
+
resources: { no: 2, type: exports.Any },
|
|
266
|
+
annotations: { no: 3, type: 'string', map: true }
|
|
267
|
+
};
|
|
268
|
+
/*
|
|
269
|
+
* Events
|
|
270
|
+
*/
|
|
271
|
+
exports.SubscribeRequest = { filters: { no: 1, type: 'string', repeated: true } };
|
|
272
|
+
exports.Envelope = {
|
|
273
|
+
timestamp: { no: 1, type: exports.Timestamp },
|
|
274
|
+
namespace: { no: 2, type: 'string' },
|
|
275
|
+
topic: { no: 3, type: 'string' },
|
|
276
|
+
event: { no: 4, type: exports.Any }
|
|
277
|
+
};
|
|
278
|
+
/**
|
|
279
|
+
* The events of containerd decoded, by their type (the type URL of their Any)
|
|
280
|
+
*/
|
|
281
|
+
exports.EVENTS = {
|
|
282
|
+
'containerd.events.TaskCreate': { containerId: { no: 1, type: 'string' }, pid: { no: 6, type: 'uint32' } },
|
|
283
|
+
'containerd.events.TaskStart': { containerId: { no: 1, type: 'string' }, pid: { no: 2, type: 'uint32' } },
|
|
284
|
+
'containerd.events.TaskDelete': { containerId: { no: 1, type: 'string' }, pid: { no: 2, type: 'uint32' }, exitStatus: { no: 3, type: 'uint32' }, exitedAt: { no: 4, type: exports.Timestamp }, id: { no: 5, type: 'string' } },
|
|
285
|
+
'containerd.events.TaskExit': { containerId: { no: 1, type: 'string' }, id: { no: 2, type: 'string' }, pid: { no: 3, type: 'uint32' }, exitStatus: { no: 4, type: 'uint32' }, exitedAt: { no: 5, type: exports.Timestamp } },
|
|
286
|
+
'containerd.events.TaskOOM': { containerId: { no: 1, type: 'string' } },
|
|
287
|
+
'containerd.events.TaskExecAdded': { containerId: { no: 1, type: 'string' }, execId: { no: 2, type: 'string' } },
|
|
288
|
+
'containerd.events.TaskExecStarted': { containerId: { no: 1, type: 'string' }, execId: { no: 2, type: 'string' }, pid: { no: 3, type: 'uint32' } },
|
|
289
|
+
'containerd.events.TaskPaused': { containerId: { no: 1, type: 'string' } },
|
|
290
|
+
'containerd.events.TaskResumed': { containerId: { no: 1, type: 'string' } },
|
|
291
|
+
'containerd.events.ContainerCreate': { id: { no: 1, type: 'string' }, image: { no: 2, type: 'string' } },
|
|
292
|
+
'containerd.events.ContainerUpdate': { id: { no: 1, type: 'string' }, image: { no: 2, type: 'string' }, labels: { no: 3, type: 'string', map: true } },
|
|
293
|
+
'containerd.events.ContainerDelete': { id: { no: 1, type: 'string' } },
|
|
294
|
+
'containerd.events.ImageCreate': { name: { no: 1, type: 'string' }, labels: { no: 2, type: 'string', map: true } },
|
|
295
|
+
'containerd.events.ImageUpdate': { name: { no: 1, type: 'string' }, labels: { no: 2, type: 'string', map: true } },
|
|
296
|
+
'containerd.events.ImageDelete': { name: { no: 1, type: 'string' } },
|
|
297
|
+
'containerd.events.SnapshotPrepare': { key: { no: 1, type: 'string' }, parent: { no: 2, type: 'string' }, snapshotter: { no: 5, type: 'string' } },
|
|
298
|
+
'containerd.events.SnapshotCommit': { key: { no: 1, type: 'string' }, name: { no: 2, type: 'string' }, snapshotter: { no: 5, type: 'string' } },
|
|
299
|
+
'containerd.events.SnapshotRemove': { key: { no: 1, type: 'string' }, snapshotter: { no: 5, type: 'string' } }
|
|
300
|
+
};
|
|
301
|
+
/*
|
|
302
|
+
* The options of the runtime of runc (io.containerd.runc.v2)
|
|
303
|
+
*/
|
|
304
|
+
exports.RuncOptions = {
|
|
305
|
+
binaryName: { no: 6, type: 'string' },
|
|
306
|
+
root: { no: 7, type: 'string' },
|
|
307
|
+
systemdCgroup: { no: 9, type: 'bool' }
|
|
308
|
+
};
|
|
309
|
+
/*
|
|
310
|
+
* Metrics (Tasks.Metrics): the ones of the cgroups v1 and v2 (github.com/containerd/cgroups, stats)
|
|
311
|
+
*/
|
|
312
|
+
exports.MetricsRequest = { filters: { no: 1, type: 'string', repeated: true } };
|
|
313
|
+
exports.Metric = {
|
|
314
|
+
timestamp: { no: 1, type: exports.Timestamp },
|
|
315
|
+
id: { no: 2, type: 'string' },
|
|
316
|
+
data: { no: 3, type: exports.Any }
|
|
317
|
+
};
|
|
318
|
+
exports.MetricsResponse = { metrics: { no: 1, type: exports.Metric, repeated: true } };
|
|
319
|
+
const PidsStat = { current: { no: 1, type: 'uint64' }, limit: { no: 2, type: 'uint64' } };
|
|
320
|
+
exports.CgroupV2Metrics = {
|
|
321
|
+
pids: { no: 1, type: PidsStat },
|
|
322
|
+
cpu: {
|
|
323
|
+
no: 2, type: {
|
|
324
|
+
usageUsec: { no: 1, type: 'uint64' },
|
|
325
|
+
userUsec: { no: 2, type: 'uint64' },
|
|
326
|
+
systemUsec: { no: 3, type: 'uint64' },
|
|
327
|
+
nrPeriods: { no: 4, type: 'uint64' },
|
|
328
|
+
nrThrottled: { no: 5, type: 'uint64' },
|
|
329
|
+
throttledUsec: { no: 6, type: 'uint64' }
|
|
330
|
+
}
|
|
331
|
+
},
|
|
332
|
+
memory: {
|
|
333
|
+
no: 4, type: {
|
|
334
|
+
anon: { no: 1, type: 'uint64' },
|
|
335
|
+
file: { no: 2, type: 'uint64' },
|
|
336
|
+
inactiveFile: { no: 13, type: 'uint64' },
|
|
337
|
+
usage: { no: 32, type: 'uint64' },
|
|
338
|
+
usageLimit: { no: 33, type: 'uint64' },
|
|
339
|
+
swapUsage: { no: 34, type: 'uint64' },
|
|
340
|
+
swapLimit: { no: 35, type: 'uint64' },
|
|
341
|
+
maxUsage: { no: 36, type: 'uint64' }
|
|
342
|
+
}
|
|
343
|
+
},
|
|
344
|
+
io: {
|
|
345
|
+
no: 6, type: {
|
|
346
|
+
usage: {
|
|
347
|
+
no: 1, repeated: true, type: {
|
|
348
|
+
major: { no: 1, type: 'uint64' },
|
|
349
|
+
minor: { no: 2, type: 'uint64' },
|
|
350
|
+
rbytes: { no: 3, type: 'uint64' },
|
|
351
|
+
wbytes: { no: 4, type: 'uint64' },
|
|
352
|
+
rios: { no: 5, type: 'uint64' },
|
|
353
|
+
wios: { no: 6, type: 'uint64' }
|
|
354
|
+
}
|
|
355
|
+
}
|
|
356
|
+
}
|
|
357
|
+
},
|
|
358
|
+
memoryEvents: { no: 8, type: { oom: { no: 4, type: 'uint64' }, oomKill: { no: 5, type: 'uint64' } } }
|
|
359
|
+
};
|
|
360
|
+
const MemoryEntry = { limit: { no: 1, type: 'uint64' }, usage: { no: 2, type: 'uint64' }, max: { no: 3, type: 'uint64' }, failcnt: { no: 4, type: 'uint64' } };
|
|
361
|
+
const BlkIOEntry = { op: { no: 1, type: 'string' }, major: { no: 3, type: 'uint64' }, minor: { no: 4, type: 'uint64' }, value: { no: 5, type: 'uint64' } };
|
|
362
|
+
exports.CgroupV1Metrics = {
|
|
363
|
+
pids: { no: 2, type: PidsStat },
|
|
364
|
+
cpu: {
|
|
365
|
+
no: 3, type: {
|
|
366
|
+
usage: { no: 1, type: { total: { no: 1, type: 'uint64' }, kernel: { no: 2, type: 'uint64' }, user: { no: 3, type: 'uint64' }, perCpu: { no: 4, type: 'uint64', repeated: true } } },
|
|
367
|
+
throttling: { no: 2, type: { periods: { no: 1, type: 'uint64' }, throttledPeriods: { no: 2, type: 'uint64' }, throttledTime: { no: 3, type: 'uint64' } } }
|
|
368
|
+
}
|
|
369
|
+
},
|
|
370
|
+
memory: {
|
|
371
|
+
no: 4, type: {
|
|
372
|
+
cache: { no: 1, type: 'uint64' },
|
|
373
|
+
rss: { no: 2, type: 'uint64' },
|
|
374
|
+
totalInactiveFile: { no: 30, type: 'uint64' },
|
|
375
|
+
usage: { no: 33, type: MemoryEntry },
|
|
376
|
+
swap: { no: 34, type: MemoryEntry }
|
|
377
|
+
}
|
|
378
|
+
},
|
|
379
|
+
blkio: {
|
|
380
|
+
no: 5, type: {
|
|
381
|
+
ioServiceBytesRecursive: { no: 1, type: BlkIOEntry, repeated: true },
|
|
382
|
+
ioServicedRecursive: { no: 2, type: BlkIOEntry, repeated: true }
|
|
383
|
+
}
|
|
384
|
+
},
|
|
385
|
+
memoryOomControl: { no: 9, type: { oomKill: { no: 3, type: 'uint64' } } }
|
|
386
|
+
};
|
|
387
|
+
/*
|
|
388
|
+
* Diff (the layers of the changes of the snapshots), the views of the snapshots
|
|
389
|
+
*/
|
|
390
|
+
exports.DiffRequest = {
|
|
391
|
+
left: { no: 1, type: exports.Mount, repeated: true },
|
|
392
|
+
right: { no: 2, type: exports.Mount, repeated: true },
|
|
393
|
+
mediaType: { no: 3, type: 'string' },
|
|
394
|
+
ref: { no: 4, type: 'string' },
|
|
395
|
+
labels: { no: 5, type: 'string', map: true }
|
|
396
|
+
};
|
|
397
|
+
exports.DiffResponse = { diff: { no: 3, type: exports.Descriptor } };
|