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