@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.
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,9 @@
1
+ import { Exception } from '@lakutata/core';
2
+ /**
3
+ * Thrown when the {@link Containerd} component is created and containerd does not answer on its `socketPath`
4
+ * (containerd not running, no access to the socket: run as root or as a member of the socket's group), or its
5
+ * `buildkitTLS` is given with a unix socket `buildkitAddress`. Its `errno` is `E_CONTAINERD_CONNECTION`.
6
+ */
7
+ export declare class ContainerdConnectionException extends Exception {
8
+ errno: string | number;
9
+ }
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ContainerdConnectionException = void 0;
4
+ const core_1 = require("@lakutata/core");
5
+ /**
6
+ * Thrown when the {@link Containerd} component is created and containerd does not answer on its `socketPath`
7
+ * (containerd not running, no access to the socket: run as root or as a member of the socket's group), or its
8
+ * `buildkitTLS` is given with a unix socket `buildkitAddress`. Its `errno` is `E_CONTAINERD_CONNECTION`.
9
+ */
10
+ class ContainerdConnectionException extends core_1.Exception {
11
+ constructor() {
12
+ super(...arguments);
13
+ this.errno = 'E_CONTAINERD_CONNECTION';
14
+ }
15
+ }
16
+ exports.ContainerdConnectionException = ContainerdConnectionException;
@@ -0,0 +1,8 @@
1
+ import { Exception } from '@lakutata/core';
2
+ /**
3
+ * Thrown when a container is created (or created again by an update) with a name another container of the namespace
4
+ * has. Its `errno` is `E_CONTAINERD_CONTAINER_NAME_CONFLICT`.
5
+ */
6
+ export declare class ContainerdContainerNameConflictException extends Exception {
7
+ errno: string | number;
8
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ContainerdContainerNameConflictException = void 0;
4
+ const core_1 = require("@lakutata/core");
5
+ /**
6
+ * Thrown when a container is created (or created again by an update) with a name another container of the namespace
7
+ * has. Its `errno` is `E_CONTAINERD_CONTAINER_NAME_CONFLICT`.
8
+ */
9
+ class ContainerdContainerNameConflictException extends core_1.Exception {
10
+ constructor() {
11
+ super(...arguments);
12
+ this.errno = 'E_CONTAINERD_CONTAINER_NAME_CONFLICT';
13
+ }
14
+ }
15
+ exports.ContainerdContainerNameConflictException = ContainerdContainerNameConflictException;
@@ -0,0 +1,9 @@
1
+ import { Exception } from '@lakutata/core';
2
+ /**
3
+ * Thrown when no container of the namespace has the identifier, name or identifier prefix asked
4
+ * ({@link Containerd.getContainer}), or when a container object is synced after its container was removed. Its `errno`
5
+ * is `E_CONTAINERD_CONTAINER_NOT_FOUND`.
6
+ */
7
+ export declare class ContainerdContainerNotFoundException extends Exception {
8
+ errno: string | number;
9
+ }
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ContainerdContainerNotFoundException = void 0;
4
+ const core_1 = require("@lakutata/core");
5
+ /**
6
+ * Thrown when no container of the namespace has the identifier, name or identifier prefix asked
7
+ * ({@link Containerd.getContainer}), or when a container object is synced after its container was removed. Its `errno`
8
+ * is `E_CONTAINERD_CONTAINER_NOT_FOUND`.
9
+ */
10
+ class ContainerdContainerNotFoundException extends core_1.Exception {
11
+ constructor() {
12
+ super(...arguments);
13
+ this.errno = 'E_CONTAINERD_CONTAINER_NOT_FOUND';
14
+ }
15
+ }
16
+ exports.ContainerdContainerNotFoundException = ContainerdContainerNotFoundException;
@@ -0,0 +1,10 @@
1
+ import { Exception } from '@lakutata/core';
2
+ /**
3
+ * Thrown when a container is not in the state an operation needs: `exec()`, `createTTY()`, `stats()`, `kill()`,
4
+ * `pause()`, `unpause()` and `processes()` on a container that is not running, `start()` on a paused one, `remove()`
5
+ * on a running one without `force`, or an `update()` needing a recreation for a container the component did not
6
+ * create. Its `errno` is `E_CONTAINERD_CONTAINER_STATE`.
7
+ */
8
+ export declare class ContainerdContainerStateException extends Exception {
9
+ errno: string | number;
10
+ }
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ContainerdContainerStateException = void 0;
4
+ const core_1 = require("@lakutata/core");
5
+ /**
6
+ * Thrown when a container is not in the state an operation needs: `exec()`, `createTTY()`, `stats()`, `kill()`,
7
+ * `pause()`, `unpause()` and `processes()` on a container that is not running, `start()` on a paused one, `remove()`
8
+ * on a running one without `force`, or an `update()` needing a recreation for a container the component did not
9
+ * create. Its `errno` is `E_CONTAINERD_CONTAINER_STATE`.
10
+ */
11
+ class ContainerdContainerStateException extends core_1.Exception {
12
+ constructor() {
13
+ super(...arguments);
14
+ this.errno = 'E_CONTAINERD_CONTAINER_STATE';
15
+ }
16
+ }
17
+ exports.ContainerdContainerStateException = ContainerdContainerStateException;
@@ -0,0 +1,9 @@
1
+ import { Exception } from '@lakutata/core';
2
+ /**
3
+ * Thrown by {@link Containerd.buildImage}, {@link Containerd.buildkitVersion} and
4
+ * {@link Containerd.buildkitPlatforms} when BuildKit cannot be reached at `buildkitAddress`, when the build fails (its
5
+ * message has the failing step), or when the image built cannot be imported. Its `errno` is `E_CONTAINERD_IMAGE_BUILD`.
6
+ */
7
+ export declare class ContainerdImageBuildException extends Exception {
8
+ errno: string | number;
9
+ }
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ContainerdImageBuildException = void 0;
4
+ const core_1 = require("@lakutata/core");
5
+ /**
6
+ * Thrown by {@link Containerd.buildImage}, {@link Containerd.buildkitVersion} and
7
+ * {@link Containerd.buildkitPlatforms} when BuildKit cannot be reached at `buildkitAddress`, when the build fails (its
8
+ * message has the failing step), or when the image built cannot be imported. Its `errno` is `E_CONTAINERD_IMAGE_BUILD`.
9
+ */
10
+ class ContainerdImageBuildException extends core_1.Exception {
11
+ constructor() {
12
+ super(...arguments);
13
+ this.errno = 'E_CONTAINERD_IMAGE_BUILD';
14
+ }
15
+ }
16
+ exports.ContainerdImageBuildException = ContainerdImageBuildException;
@@ -0,0 +1,9 @@
1
+ import { Exception } from '@lakutata/core';
2
+ /**
3
+ * Thrown when images cannot be exported into an archive ({@link Containerd.exportImages},
4
+ * {@link ContainerdImage.export}): the destination cannot be written, or their content is incomplete. Its `errno` is
5
+ * `E_CONTAINERD_IMAGE_EXPORT`.
6
+ */
7
+ export declare class ContainerdImageExportException extends Exception {
8
+ errno: string | number;
9
+ }
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ContainerdImageExportException = void 0;
4
+ const core_1 = require("@lakutata/core");
5
+ /**
6
+ * Thrown when images cannot be exported into an archive ({@link Containerd.exportImages},
7
+ * {@link ContainerdImage.export}): the destination cannot be written, or their content is incomplete. Its `errno` is
8
+ * `E_CONTAINERD_IMAGE_EXPORT`.
9
+ */
10
+ class ContainerdImageExportException extends core_1.Exception {
11
+ constructor() {
12
+ super(...arguments);
13
+ this.errno = 'E_CONTAINERD_IMAGE_EXPORT';
14
+ }
15
+ }
16
+ exports.ContainerdImageExportException = ContainerdImageExportException;
@@ -0,0 +1,9 @@
1
+ import { Exception } from '@lakutata/core';
2
+ /**
3
+ * Thrown by {@link Containerd.importImage} when the archive cannot be read, is not an OCI image layout nor a
4
+ * `docker save` archive, has no image, or has several images and a `name` is given; or when its images fail to be
5
+ * unpacked. Its `errno` is `E_CONTAINERD_IMAGE_IMPORT`.
6
+ */
7
+ export declare class ContainerdImageImportException extends Exception {
8
+ errno: string | number;
9
+ }
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ContainerdImageImportException = void 0;
4
+ const core_1 = require("@lakutata/core");
5
+ /**
6
+ * Thrown by {@link Containerd.importImage} when the archive cannot be read, is not an OCI image layout nor a
7
+ * `docker save` archive, has no image, or has several images and a `name` is given; or when its images fail to be
8
+ * unpacked. Its `errno` is `E_CONTAINERD_IMAGE_IMPORT`.
9
+ */
10
+ class ContainerdImageImportException extends core_1.Exception {
11
+ constructor() {
12
+ super(...arguments);
13
+ this.errno = 'E_CONTAINERD_IMAGE_IMPORT';
14
+ }
15
+ }
16
+ exports.ContainerdImageImportException = ContainerdImageImportException;
@@ -0,0 +1,9 @@
1
+ import { Exception } from '@lakutata/core';
2
+ /**
3
+ * Thrown when no image of the namespace has the name asked: by {@link Containerd.getImage}, the creation of a
4
+ * container of an image not pulled (images are never pulled implicitly), and the operations on an image removed. Its
5
+ * `errno` is `E_CONTAINERD_IMAGE_NOT_FOUND`.
6
+ */
7
+ export declare class ContainerdImageNotFoundException extends Exception {
8
+ errno: string | number;
9
+ }
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ContainerdImageNotFoundException = void 0;
4
+ const core_1 = require("@lakutata/core");
5
+ /**
6
+ * Thrown when no image of the namespace has the name asked: by {@link Containerd.getImage}, the creation of a
7
+ * container of an image not pulled (images are never pulled implicitly), and the operations on an image removed. Its
8
+ * `errno` is `E_CONTAINERD_IMAGE_NOT_FOUND`.
9
+ */
10
+ class ContainerdImageNotFoundException extends core_1.Exception {
11
+ constructor() {
12
+ super(...arguments);
13
+ this.errno = 'E_CONTAINERD_IMAGE_NOT_FOUND';
14
+ }
15
+ }
16
+ exports.ContainerdImageNotFoundException = ContainerdImageNotFoundException;
@@ -0,0 +1,9 @@
1
+ import { Exception } from '@lakutata/core';
2
+ /**
3
+ * Thrown by {@link Containerd.pullImage} when the registry cannot be reached, refuses the credentials, does not
4
+ * have the reference, the transfer fails or is aborted (the component destroyed), or the unpacking fails. Its `errno`
5
+ * is `E_CONTAINERD_IMAGE_PULL`.
6
+ */
7
+ export declare class ContainerdImagePullException extends Exception {
8
+ errno: string | number;
9
+ }
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ContainerdImagePullException = void 0;
4
+ const core_1 = require("@lakutata/core");
5
+ /**
6
+ * Thrown by {@link Containerd.pullImage} when the registry cannot be reached, refuses the credentials, does not
7
+ * have the reference, the transfer fails or is aborted (the component destroyed), or the unpacking fails. Its `errno`
8
+ * is `E_CONTAINERD_IMAGE_PULL`.
9
+ */
10
+ class ContainerdImagePullException extends core_1.Exception {
11
+ constructor() {
12
+ super(...arguments);
13
+ this.errno = 'E_CONTAINERD_IMAGE_PULL';
14
+ }
15
+ }
16
+ exports.ContainerdImagePullException = ContainerdImagePullException;
@@ -0,0 +1,8 @@
1
+ import { Exception } from '@lakutata/core';
2
+ /**
3
+ * Thrown by {@link ContainerdImage.push} (and {@link Containerd.buildImage} with `push`) when the registry cannot be
4
+ * reached or refuses the push (credentials, rights). Its `errno` is `E_CONTAINERD_IMAGE_PUSH`.
5
+ */
6
+ export declare class ContainerdImagePushException extends Exception {
7
+ errno: string | number;
8
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ContainerdImagePushException = void 0;
4
+ const core_1 = require("@lakutata/core");
5
+ /**
6
+ * Thrown by {@link ContainerdImage.push} (and {@link Containerd.buildImage} with `push`) when the registry cannot be
7
+ * reached or refuses the push (credentials, rights). Its `errno` is `E_CONTAINERD_IMAGE_PUSH`.
8
+ */
9
+ class ContainerdImagePushException extends core_1.Exception {
10
+ constructor() {
11
+ super(...arguments);
12
+ this.errno = 'E_CONTAINERD_IMAGE_PUSH';
13
+ }
14
+ }
15
+ exports.ContainerdImagePushException = ContainerdImagePushException;
@@ -0,0 +1,9 @@
1
+ import { Exception } from '@lakutata/core';
2
+ /**
3
+ * Thrown when a network cannot be created or removed: its name is taken (`host`, `none` and `bridge` included),
4
+ * its subnet overlaps another network's, a container uses it, it is the default `bridge`, or it was not created by
5
+ * nerdctl. Its `errno` is `E_CONTAINERD_NETWORK_CONFLICT`.
6
+ */
7
+ export declare class ContainerdNetworkConflictException extends Exception {
8
+ errno: string | number;
9
+ }
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ContainerdNetworkConflictException = void 0;
4
+ const core_1 = require("@lakutata/core");
5
+ /**
6
+ * Thrown when a network cannot be created or removed: its name is taken (`host`, `none` and `bridge` included),
7
+ * its subnet overlaps another network's, a container uses it, it is the default `bridge`, or it was not created by
8
+ * nerdctl. Its `errno` is `E_CONTAINERD_NETWORK_CONFLICT`.
9
+ */
10
+ class ContainerdNetworkConflictException extends core_1.Exception {
11
+ constructor() {
12
+ super(...arguments);
13
+ this.errno = 'E_CONTAINERD_NETWORK_CONFLICT';
14
+ }
15
+ }
16
+ exports.ContainerdNetworkConflictException = ContainerdNetworkConflictException;
@@ -0,0 +1,9 @@
1
+ import { Exception } from '@lakutata/core';
2
+ /**
3
+ * Thrown when no network has the name, identifier or prefix asked ({@link Containerd.getNetwork},
4
+ * {@link Containerd.removeNetwork}), or when a container is created on a CNI network that does not exist. Its `errno` is
5
+ * `E_CONTAINERD_NETWORK_NOT_FOUND`.
6
+ */
7
+ export declare class ContainerdNetworkNotFoundException extends Exception {
8
+ errno: string | number;
9
+ }
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ContainerdNetworkNotFoundException = void 0;
4
+ const core_1 = require("@lakutata/core");
5
+ /**
6
+ * Thrown when no network has the name, identifier or prefix asked ({@link Containerd.getNetwork},
7
+ * {@link Containerd.removeNetwork}), or when a container is created on a CNI network that does not exist. Its `errno` is
8
+ * `E_CONTAINERD_NETWORK_NOT_FOUND`.
9
+ */
10
+ class ContainerdNetworkNotFoundException extends core_1.Exception {
11
+ constructor() {
12
+ super(...arguments);
13
+ this.errno = 'E_CONTAINERD_NETWORK_NOT_FOUND';
14
+ }
15
+ }
16
+ exports.ContainerdNetworkNotFoundException = ContainerdNetworkNotFoundException;
@@ -0,0 +1,8 @@
1
+ import { Exception } from '@lakutata/core';
2
+ /**
3
+ * Thrown by {@link ContainerdContainer.exportDirectory} when the path does not exist in the container (its symbolic
4
+ * links resolved inside it). Its `errno` is `E_CONTAINERD_PATH_NOT_FOUND`.
5
+ */
6
+ export declare class ContainerdPathNotFoundException extends Exception {
7
+ errno: string | number;
8
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ContainerdPathNotFoundException = void 0;
4
+ const core_1 = require("@lakutata/core");
5
+ /**
6
+ * Thrown by {@link ContainerdContainer.exportDirectory} when the path does not exist in the container (its symbolic
7
+ * links resolved inside it). Its `errno` is `E_CONTAINERD_PATH_NOT_FOUND`.
8
+ */
9
+ class ContainerdPathNotFoundException extends core_1.Exception {
10
+ constructor() {
11
+ super(...arguments);
12
+ this.errno = 'E_CONTAINERD_PATH_NOT_FOUND';
13
+ }
14
+ }
15
+ exports.ContainerdPathNotFoundException = ContainerdPathNotFoundException;
@@ -0,0 +1,9 @@
1
+ import { Exception } from '@lakutata/core';
2
+ /**
3
+ * Thrown when an image has no manifest for the platform asked: a pull or a push of a platform the image does not
4
+ * have, a container created for a platform not pulled, or an image none of whose platforms' content is present. Its
5
+ * `errno` is `E_CONTAINERD_PLATFORM`.
6
+ */
7
+ export declare class ContainerdPlatformException extends Exception {
8
+ errno: string | number;
9
+ }
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ContainerdPlatformException = void 0;
4
+ const core_1 = require("@lakutata/core");
5
+ /**
6
+ * Thrown when an image has no manifest for the platform asked: a pull or a push of a platform the image does not
7
+ * have, a container created for a platform not pulled, or an image none of whose platforms' content is present. Its
8
+ * `errno` is `E_CONTAINERD_PLATFORM`.
9
+ */
10
+ class ContainerdPlatformException extends core_1.Exception {
11
+ constructor() {
12
+ super(...arguments);
13
+ this.errno = 'E_CONTAINERD_PLATFORM';
14
+ }
15
+ }
16
+ exports.ContainerdPlatformException = ContainerdPlatformException;
@@ -0,0 +1,8 @@
1
+ import { Exception } from '@lakutata/core';
2
+ /**
3
+ * Thrown by {@link Containerd.removeVolume} when a container of the namespace mounts the volume, even a stopped one.
4
+ * Its `errno` is `E_CONTAINERD_VOLUME_IN_USE`.
5
+ */
6
+ export declare class ContainerdVolumeInUseException extends Exception {
7
+ errno: string | number;
8
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ContainerdVolumeInUseException = void 0;
4
+ const core_1 = require("@lakutata/core");
5
+ /**
6
+ * Thrown by {@link Containerd.removeVolume} when a container of the namespace mounts the volume, even a stopped one.
7
+ * Its `errno` is `E_CONTAINERD_VOLUME_IN_USE`.
8
+ */
9
+ class ContainerdVolumeInUseException extends core_1.Exception {
10
+ constructor() {
11
+ super(...arguments);
12
+ this.errno = 'E_CONTAINERD_VOLUME_IN_USE';
13
+ }
14
+ }
15
+ exports.ContainerdVolumeInUseException = ContainerdVolumeInUseException;
@@ -0,0 +1,8 @@
1
+ import { Exception } from '@lakutata/core';
2
+ /**
3
+ * Thrown by {@link Containerd.getVolume} and {@link Containerd.removeVolume} when the volume does not exist. Its
4
+ * `errno` is `E_CONTAINERD_VOLUME_NOT_FOUND`.
5
+ */
6
+ export declare class ContainerdVolumeNotFoundException extends Exception {
7
+ errno: string | number;
8
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ContainerdVolumeNotFoundException = void 0;
4
+ const core_1 = require("@lakutata/core");
5
+ /**
6
+ * Thrown by {@link Containerd.getVolume} and {@link Containerd.removeVolume} when the volume does not exist. Its
7
+ * `errno` is `E_CONTAINERD_VOLUME_NOT_FOUND`.
8
+ */
9
+ class ContainerdVolumeNotFoundException extends core_1.Exception {
10
+ constructor() {
11
+ super(...arguments);
12
+ this.errno = 'E_CONTAINERD_VOLUME_NOT_FOUND';
13
+ }
14
+ }
15
+ exports.ContainerdVolumeNotFoundException = ContainerdVolumeNotFoundException;