@docker/github-builder-runtime 0.90.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 (211) hide show
  1. package/LICENSE +191 -0
  2. package/README.md +5 -0
  3. package/lib/buildkit/buildkit.d.ts +29 -0
  4. package/lib/buildkit/buildkit.js +95 -0
  5. package/lib/buildkit/buildkit.js.map +1 -0
  6. package/lib/buildkit/config.d.ts +20 -0
  7. package/lib/buildkit/config.js +37 -0
  8. package/lib/buildkit/config.js.map +1 -0
  9. package/lib/buildkit/git.d.ts +24 -0
  10. package/lib/buildkit/git.js +103 -0
  11. package/lib/buildkit/git.js.map +1 -0
  12. package/lib/buildx/bake.d.ts +64 -0
  13. package/lib/buildx/bake.js +387 -0
  14. package/lib/buildx/bake.js.map +1 -0
  15. package/lib/buildx/build.d.ts +63 -0
  16. package/lib/buildx/build.js +356 -0
  17. package/lib/buildx/build.js.map +1 -0
  18. package/lib/buildx/builder.d.ts +27 -0
  19. package/lib/buildx/builder.js +290 -0
  20. package/lib/buildx/builder.js.map +1 -0
  21. package/lib/buildx/buildx.d.ts +47 -0
  22. package/lib/buildx/buildx.js +374 -0
  23. package/lib/buildx/buildx.js.map +1 -0
  24. package/lib/buildx/history.d.ts +39 -0
  25. package/lib/buildx/history.js +144 -0
  26. package/lib/buildx/history.js.map +1 -0
  27. package/lib/buildx/imagetools.d.ts +47 -0
  28. package/lib/buildx/imagetools.js +205 -0
  29. package/lib/buildx/imagetools.js.map +1 -0
  30. package/lib/buildx/install.d.ts +47 -0
  31. package/lib/buildx/install.js +314 -0
  32. package/lib/buildx/install.js.map +1 -0
  33. package/lib/cache.d.ts +40 -0
  34. package/lib/cache.js +129 -0
  35. package/lib/cache.js.map +1 -0
  36. package/lib/compose/compose.d.ts +33 -0
  37. package/lib/compose/compose.js +91 -0
  38. package/lib/compose/compose.js.map +1 -0
  39. package/lib/compose/install.d.ts +34 -0
  40. package/lib/compose/install.js +190 -0
  41. package/lib/compose/install.js.map +1 -0
  42. package/lib/context.d.ts +22 -0
  43. package/lib/context.js +33 -0
  44. package/lib/context.js.map +1 -0
  45. package/lib/cosign/cosign.d.ts +40 -0
  46. package/lib/cosign/cosign.js +127 -0
  47. package/lib/cosign/cosign.js.map +1 -0
  48. package/lib/cosign/dockerfile.d.ts +16 -0
  49. package/lib/cosign/dockerfile.js +61 -0
  50. package/lib/cosign/dockerfile.js.map +1 -0
  51. package/lib/cosign/install.d.ts +45 -0
  52. package/lib/cosign/install.js +229 -0
  53. package/lib/cosign/install.js.map +1 -0
  54. package/lib/docker/assets.d.ts +21 -0
  55. package/lib/docker/assets.js +346 -0
  56. package/lib/docker/assets.js.map +1 -0
  57. package/lib/docker/docker.d.ts +35 -0
  58. package/lib/docker/docker.js +199 -0
  59. package/lib/docker/docker.js.map +1 -0
  60. package/lib/docker/install.d.ts +85 -0
  61. package/lib/docker/install.js +726 -0
  62. package/lib/docker/install.js.map +1 -0
  63. package/lib/dockerhub.d.ts +33 -0
  64. package/lib/dockerhub.js +111 -0
  65. package/lib/dockerhub.js.map +1 -0
  66. package/lib/exec.d.ts +20 -0
  67. package/lib/exec.js +28 -0
  68. package/lib/exec.js.map +1 -0
  69. package/lib/git.d.ts +33 -0
  70. package/lib/git.js +185 -0
  71. package/lib/git.js.map +1 -0
  72. package/lib/github/artifact.d.ts +19 -0
  73. package/lib/github/artifact.js +49 -0
  74. package/lib/github/artifact.js.map +1 -0
  75. package/lib/github/github.d.ts +39 -0
  76. package/lib/github/github.js +135 -0
  77. package/lib/github/github.js.map +1 -0
  78. package/lib/github/summary.d.ts +20 -0
  79. package/lib/github/summary.js +166 -0
  80. package/lib/github/summary.js.map +1 -0
  81. package/lib/index.d.ts +24 -0
  82. package/lib/index.js +48 -0
  83. package/lib/index.js.map +1 -0
  84. package/lib/oci/oci.d.ts +11 -0
  85. package/lib/oci/oci.js +199 -0
  86. package/lib/oci/oci.js.map +1 -0
  87. package/lib/regclient/install.d.ts +30 -0
  88. package/lib/regclient/install.js +136 -0
  89. package/lib/regclient/install.js.map +1 -0
  90. package/lib/regclient/regctl.d.ts +39 -0
  91. package/lib/regclient/regctl.js +102 -0
  92. package/lib/regclient/regctl.js.map +1 -0
  93. package/lib/sigstore/sigstore.d.ts +41 -0
  94. package/lib/sigstore/sigstore.js +461 -0
  95. package/lib/sigstore/sigstore.js.map +1 -0
  96. package/lib/toolkit.d.ts +57 -0
  97. package/lib/toolkit.js +68 -0
  98. package/lib/toolkit.js.map +1 -0
  99. package/lib/types/buildkit/buildkit.d.ts +16 -0
  100. package/lib/types/buildkit/buildkit.js +18 -0
  101. package/lib/types/buildkit/buildkit.js.map +1 -0
  102. package/lib/types/buildkit/client.d.ts +61 -0
  103. package/lib/types/buildkit/client.js +17 -0
  104. package/lib/types/buildkit/client.js.map +1 -0
  105. package/lib/types/buildkit/control.d.ts +88 -0
  106. package/lib/types/buildkit/control.js +17 -0
  107. package/lib/types/buildkit/control.js.map +1 -0
  108. package/lib/types/buildkit/git.d.ts +40 -0
  109. package/lib/types/buildkit/git.js +17 -0
  110. package/lib/types/buildkit/git.js.map +1 -0
  111. package/lib/types/buildkit/ops.d.ts +60 -0
  112. package/lib/types/buildkit/ops.js +17 -0
  113. package/lib/types/buildkit/ops.js.map +1 -0
  114. package/lib/types/buildkit/rpc.d.ts +24 -0
  115. package/lib/types/buildkit/rpc.js +17 -0
  116. package/lib/types/buildkit/rpc.js.map +1 -0
  117. package/lib/types/buildx/bake.d.ts +70 -0
  118. package/lib/types/buildx/bake.js +17 -0
  119. package/lib/types/buildx/bake.js.map +1 -0
  120. package/lib/types/buildx/build.d.ts +19 -0
  121. package/lib/types/buildx/build.js +17 -0
  122. package/lib/types/buildx/build.js.map +1 -0
  123. package/lib/types/buildx/builder.d.ts +52 -0
  124. package/lib/types/buildx/builder.js +17 -0
  125. package/lib/types/buildx/builder.js.map +1 -0
  126. package/lib/types/buildx/buildx.d.ts +42 -0
  127. package/lib/types/buildx/buildx.js +17 -0
  128. package/lib/types/buildx/buildx.js.map +1 -0
  129. package/lib/types/buildx/history.d.ts +111 -0
  130. package/lib/types/buildx/history.js +17 -0
  131. package/lib/types/buildx/history.js.map +1 -0
  132. package/lib/types/buildx/imagetools.d.ts +52 -0
  133. package/lib/types/buildx/imagetools.js +17 -0
  134. package/lib/types/buildx/imagetools.js.map +1 -0
  135. package/lib/types/compose/compose.d.ts +22 -0
  136. package/lib/types/compose/compose.js +17 -0
  137. package/lib/types/compose/compose.js.map +1 -0
  138. package/lib/types/cosign/cosign.d.ts +21 -0
  139. package/lib/types/cosign/cosign.js +17 -0
  140. package/lib/types/cosign/cosign.js.map +1 -0
  141. package/lib/types/docker/docker.d.ts +82 -0
  142. package/lib/types/docker/docker.js +17 -0
  143. package/lib/types/docker/docker.js.map +1 -0
  144. package/lib/types/docker/mediatype.d.ts +18 -0
  145. package/lib/types/docker/mediatype.js +19 -0
  146. package/lib/types/docker/mediatype.js.map +1 -0
  147. package/lib/types/dockerhub.d.ts +104 -0
  148. package/lib/types/dockerhub.js +17 -0
  149. package/lib/types/dockerhub.js.map +1 -0
  150. package/lib/types/github/artifact.d.ts +26 -0
  151. package/lib/types/github/artifact.js +17 -0
  152. package/lib/types/github/artifact.js.map +1 -0
  153. package/lib/types/github/github.d.ts +43 -0
  154. package/lib/types/github/github.js +17 -0
  155. package/lib/types/github/github.js.map +1 -0
  156. package/lib/types/github/summary.d.ts +29 -0
  157. package/lib/types/github/summary.js +17 -0
  158. package/lib/types/github/summary.js.map +1 -0
  159. package/lib/types/intoto/intoto.d.ts +21 -0
  160. package/lib/types/intoto/intoto.js +19 -0
  161. package/lib/types/intoto/intoto.js.map +1 -0
  162. package/lib/types/intoto/slsa_provenance/v0.2/provenance.d.ts +55 -0
  163. package/lib/types/intoto/slsa_provenance/v0.2/provenance.js +18 -0
  164. package/lib/types/intoto/slsa_provenance/v0.2/provenance.js.map +1 -0
  165. package/lib/types/oci/config.d.ts +47 -0
  166. package/lib/types/oci/config.js +17 -0
  167. package/lib/types/oci/config.js.map +1 -0
  168. package/lib/types/oci/descriptor.d.ts +34 -0
  169. package/lib/types/oci/descriptor.js +23 -0
  170. package/lib/types/oci/descriptor.js.map +1 -0
  171. package/lib/types/oci/digest.d.ts +16 -0
  172. package/lib/types/oci/digest.js +17 -0
  173. package/lib/types/oci/digest.js.map +1 -0
  174. package/lib/types/oci/index.d.ts +24 -0
  175. package/lib/types/oci/index.js +17 -0
  176. package/lib/types/oci/index.js.map +1 -0
  177. package/lib/types/oci/layout.d.ts +22 -0
  178. package/lib/types/oci/layout.js +20 -0
  179. package/lib/types/oci/layout.js.map +1 -0
  180. package/lib/types/oci/manifest.d.ts +25 -0
  181. package/lib/types/oci/manifest.js +17 -0
  182. package/lib/types/oci/manifest.js.map +1 -0
  183. package/lib/types/oci/mediatype.d.ts +21 -0
  184. package/lib/types/oci/mediatype.js +22 -0
  185. package/lib/types/oci/mediatype.js.map +1 -0
  186. package/lib/types/oci/oci.d.ts +32 -0
  187. package/lib/types/oci/oci.js +17 -0
  188. package/lib/types/oci/oci.js.map +1 -0
  189. package/lib/types/oci/versioned.d.ts +18 -0
  190. package/lib/types/oci/versioned.js +17 -0
  191. package/lib/types/oci/versioned.js.map +1 -0
  192. package/lib/types/regclient/regclient.d.ts +21 -0
  193. package/lib/types/regclient/regclient.js +17 -0
  194. package/lib/types/regclient/regclient.js.map +1 -0
  195. package/lib/types/sigstore/sigstore.d.ts +80 -0
  196. package/lib/types/sigstore/sigstore.js +20 -0
  197. package/lib/types/sigstore/sigstore.js.map +1 -0
  198. package/lib/types/undock/undock.d.ts +21 -0
  199. package/lib/types/undock/undock.js +17 -0
  200. package/lib/types/undock/undock.js.map +1 -0
  201. package/lib/undock/install.d.ts +30 -0
  202. package/lib/undock/install.js +146 -0
  203. package/lib/undock/install.js.map +1 -0
  204. package/lib/undock/undock.d.ts +42 -0
  205. package/lib/undock/undock.js +121 -0
  206. package/lib/undock/undock.js.map +1 -0
  207. package/lib/util.d.ts +49 -0
  208. package/lib/util.js +218 -0
  209. package/lib/util.js.map +1 -0
  210. package/npm-shrinkwrap.json +2858 -0
  211. package/package.json +57 -0
@@ -0,0 +1,43 @@
1
+ /**
2
+ * Copyright 2023 actions-toolkit authors
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import { AnnotationProperties } from '@actions/core';
17
+ import type { getOctokit } from '@actions/github';
18
+ import { JwtPayload } from 'jwt-decode';
19
+ export interface GitHubRelease {
20
+ id: number;
21
+ tag_name: string;
22
+ html_url: string;
23
+ assets: Array<string>;
24
+ }
25
+ export interface GitHubContentOpts {
26
+ owner: string;
27
+ repo: string;
28
+ ref?: string;
29
+ path: string;
30
+ }
31
+ type Octokit = ReturnType<typeof getOctokit>;
32
+ export type GitHubRepo = Awaited<ReturnType<Octokit['rest']['repos']['get']>>['data'];
33
+ export interface GitHubActionsRuntimeToken extends JwtPayload {
34
+ ac?: string;
35
+ }
36
+ export interface GitHubActionsRuntimeTokenAC {
37
+ Scope: string;
38
+ Permission: number;
39
+ }
40
+ export interface GitHubAnnotation extends AnnotationProperties {
41
+ message: string;
42
+ }
43
+ export {};
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Copyright 2023 actions-toolkit authors
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ export {};
17
+ //# sourceMappingURL=github.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"github.js","sourceRoot":"","sources":["../../../src/types/github/github.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG"}
@@ -0,0 +1,29 @@
1
+ /**
2
+ * Copyright 2026 actions-toolkit authors
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import * as core from '@actions/core';
17
+ import { UploadResponse } from './artifact.js';
18
+ import { BakeDefinition } from '../buildx/bake.js';
19
+ import { ExportResponse } from '../buildx/history.js';
20
+ export type SummaryTableRow = Parameters<typeof core.summary.addTable>[0][number];
21
+ export type SummaryTableCell = Exclude<SummaryTableRow[number], string>;
22
+ export interface BuildSummaryOpts {
23
+ exportRes: ExportResponse;
24
+ uploadRes?: UploadResponse;
25
+ inputs?: any;
26
+ bakeDefinition?: BakeDefinition;
27
+ driver?: string;
28
+ endpoint?: string;
29
+ }
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Copyright 2026 actions-toolkit authors
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ export {};
17
+ //# sourceMappingURL=summary.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"summary.js","sourceRoot":"","sources":["../../../src/types/github/summary.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG"}
@@ -0,0 +1,21 @@
1
+ /**
2
+ * Copyright 2024 actions-toolkit authors
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ export declare const MEDIATYPE_PAYLOAD = "application/vnd.in-toto+json";
17
+ export declare const MEDIATYPE_PREDICATE = "in-toto.io/predicate-type";
18
+ export interface Subject {
19
+ name: string;
20
+ digest: Record<string, string>;
21
+ }
@@ -0,0 +1,19 @@
1
+ /**
2
+ * Copyright 2024 actions-toolkit authors
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ // https://github.com/in-toto/in-toto-golang/blob/dd6278764ab1dae7301609c7510129888e2fd569/in_toto/envelope.go#L17
17
+ export const MEDIATYPE_PAYLOAD = 'application/vnd.in-toto+json';
18
+ export const MEDIATYPE_PREDICATE = 'in-toto.io/predicate-type';
19
+ //# sourceMappingURL=intoto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"intoto.js","sourceRoot":"","sources":["../../../src/types/intoto/intoto.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,kHAAkH;AAClH,MAAM,CAAC,MAAM,iBAAiB,GAAG,8BAA8B,CAAC;AAEhE,MAAM,CAAC,MAAM,mBAAmB,GAAG,2BAA2B,CAAC"}
@@ -0,0 +1,55 @@
1
+ /**
2
+ * Copyright 2024 actions-toolkit authors
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ export declare const PREDICATE_SLSA_PROVENANCE = "https://slsa.dev/provenance/v0.2";
17
+ export interface ProvenancePredicate {
18
+ builder: ProvenanceBuilder;
19
+ buildType: string;
20
+ invocation?: ProvenanceInvocation;
21
+ buildConfig?: any;
22
+ metadata: ProvenanceMetadata;
23
+ materials?: Material[];
24
+ }
25
+ export interface ProvenanceBuilder {
26
+ id: string;
27
+ }
28
+ export interface ProvenanceInvocation {
29
+ configSource?: ConfigSource;
30
+ parameters?: any;
31
+ environment?: any;
32
+ }
33
+ export interface DigestSet {
34
+ [key: string]: string;
35
+ }
36
+ export interface ConfigSource {
37
+ uri?: string;
38
+ digest?: DigestSet;
39
+ entryPoint?: string;
40
+ }
41
+ export interface Completeness {
42
+ parameters?: boolean;
43
+ environment?: boolean;
44
+ materials?: boolean;
45
+ }
46
+ export interface ProvenanceMetadata {
47
+ buildInvocationId?: string;
48
+ buildStartedOn?: string;
49
+ completeness?: Completeness;
50
+ reproducible?: boolean;
51
+ }
52
+ export interface Material {
53
+ uri: string;
54
+ digest: DigestSet;
55
+ }
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Copyright 2024 actions-toolkit authors
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ // https://github.com/in-toto/in-toto-golang/blob/master/in_toto/slsa_provenance/v0.2/provenance.go
17
+ export const PREDICATE_SLSA_PROVENANCE = 'https://slsa.dev/provenance/v0.2';
18
+ //# sourceMappingURL=provenance.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"provenance.js","sourceRoot":"","sources":["../../../../../src/types/intoto/slsa_provenance/v0.2/provenance.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,mGAAmG;AAEnG,MAAM,CAAC,MAAM,yBAAyB,GAAG,kCAAkC,CAAC"}
@@ -0,0 +1,47 @@
1
+ /**
2
+ * Copyright 2024 actions-toolkit authors
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import { Digest } from './digest.js';
17
+ import { Platform } from './descriptor.js';
18
+ export interface ImageConfig {
19
+ User?: string;
20
+ ExposedPorts?: Record<string, unknown>;
21
+ Env?: string[];
22
+ Entrypoint?: string[];
23
+ Cmd?: string[];
24
+ Volumes?: Record<string, unknown>;
25
+ WorkingDir?: string;
26
+ Labels?: Record<string, string>;
27
+ StopSignal?: string;
28
+ ArgsEscaped?: boolean;
29
+ }
30
+ export interface RootFS {
31
+ type: string;
32
+ diff_ids: Digest[];
33
+ }
34
+ export interface History {
35
+ created?: string;
36
+ created_by?: string;
37
+ author?: string;
38
+ comment?: string;
39
+ empty_layer?: boolean;
40
+ }
41
+ export interface Image extends Platform {
42
+ created?: string;
43
+ author?: string;
44
+ config?: ImageConfig;
45
+ rootfs: RootFS;
46
+ history?: History[];
47
+ }
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Copyright 2024 actions-toolkit authors
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ export {};
17
+ //# sourceMappingURL=config.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"config.js","sourceRoot":"","sources":["../../../src/types/oci/config.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG"}
@@ -0,0 +1,34 @@
1
+ /**
2
+ * Copyright 2024 actions-toolkit authors
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import { Digest } from './digest.js';
17
+ export interface Descriptor {
18
+ mediaType: string;
19
+ digest: Digest;
20
+ size: number;
21
+ urls?: string[];
22
+ annotations?: Record<string, string>;
23
+ data?: string;
24
+ platform?: Platform;
25
+ artifactType?: string;
26
+ }
27
+ export interface Platform {
28
+ architecture: string;
29
+ os: string;
30
+ 'os.version'?: string;
31
+ 'os.features'?: string[];
32
+ variant?: string;
33
+ }
34
+ export declare const DescriptorEmptyJSON: Descriptor;
@@ -0,0 +1,23 @@
1
+ /**
2
+ * Copyright 2024 actions-toolkit authors
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import { MEDIATYPE_EMPTY_JSON_V1 } from './mediatype.js';
17
+ export const DescriptorEmptyJSON = {
18
+ mediaType: MEDIATYPE_EMPTY_JSON_V1,
19
+ digest: 'sha256:44136fa355b3678a1146ad16f7e8649e94fb4fc21fe77e8310c060f61caaff8a',
20
+ size: 2,
21
+ data: '{}'
22
+ };
23
+ //# sourceMappingURL=descriptor.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"descriptor.js","sourceRoot":"","sources":["../../../src/types/oci/descriptor.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAIH,OAAO,EAAC,uBAAuB,EAAC,MAAM,gBAAgB,CAAC;AAqBvD,MAAM,CAAC,MAAM,mBAAmB,GAAe;IAC7C,SAAS,EAAE,uBAAuB;IAClC,MAAM,EAAE,yEAAyE;IACjF,IAAI,EAAE,CAAC;IACP,IAAI,EAAE,IAAI;CACX,CAAC"}
@@ -0,0 +1,16 @@
1
+ /**
2
+ * Copyright 2024 actions-toolkit authors
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ export type Digest = string;
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Copyright 2024 actions-toolkit authors
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ export {};
17
+ //# sourceMappingURL=digest.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"digest.js","sourceRoot":"","sources":["../../../src/types/oci/digest.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG"}
@@ -0,0 +1,24 @@
1
+ /**
2
+ * Copyright 2024 actions-toolkit authors
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import { Versioned } from './versioned.js';
17
+ import { Descriptor } from './descriptor.js';
18
+ export interface Index extends Versioned {
19
+ mediaType?: string;
20
+ artifactType?: string;
21
+ manifests: Descriptor[];
22
+ subject?: Descriptor;
23
+ annotations?: Record<string, string>;
24
+ }
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Copyright 2024 actions-toolkit authors
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ export {};
17
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/oci/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG"}
@@ -0,0 +1,22 @@
1
+ /**
2
+ * Copyright 2024 actions-toolkit authors
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ export declare const IMAGE_LAYOUT_FILE_V1 = "oci-layout";
17
+ export declare const IMAGE_LAYOUT_VERSION_V1 = "1.0.0";
18
+ export declare const IMAGE_INDEX_FILE_V1 = "index.json";
19
+ export declare const IMAGE_BLOBS_DIR_V1 = "blobs";
20
+ export interface ImageLayout {
21
+ version: string;
22
+ }
@@ -0,0 +1,20 @@
1
+ /**
2
+ * Copyright 2024 actions-toolkit authors
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ export const IMAGE_LAYOUT_FILE_V1 = 'oci-layout';
17
+ export const IMAGE_LAYOUT_VERSION_V1 = '1.0.0';
18
+ export const IMAGE_INDEX_FILE_V1 = 'index.json';
19
+ export const IMAGE_BLOBS_DIR_V1 = 'blobs';
20
+ //# sourceMappingURL=layout.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"layout.js","sourceRoot":"","sources":["../../../src/types/oci/layout.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,MAAM,CAAC,MAAM,oBAAoB,GAAG,YAAY,CAAC;AAEjD,MAAM,CAAC,MAAM,uBAAuB,GAAG,OAAO,CAAC;AAE/C,MAAM,CAAC,MAAM,mBAAmB,GAAG,YAAY,CAAC;AAEhD,MAAM,CAAC,MAAM,kBAAkB,GAAG,OAAO,CAAC"}
@@ -0,0 +1,25 @@
1
+ /**
2
+ * Copyright 2024 actions-toolkit authors
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import { Descriptor } from './descriptor.js';
17
+ import { Versioned } from './versioned.js';
18
+ export interface Manifest extends Versioned {
19
+ mediaType?: string;
20
+ artifactType?: string;
21
+ config: Descriptor;
22
+ layers: Descriptor[];
23
+ subject?: Descriptor;
24
+ annotations?: Record<string, string>;
25
+ }
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Copyright 2024 actions-toolkit authors
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ export {};
17
+ //# sourceMappingURL=manifest.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"manifest.js","sourceRoot":"","sources":["../../../src/types/oci/manifest.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG"}
@@ -0,0 +1,21 @@
1
+ /**
2
+ * Copyright 2024 actions-toolkit authors
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ export declare const MEDIATYPE_DESCRIPTOR_V1 = "application/vnd.oci.descriptor.v1+json";
17
+ export declare const MEDIATYPE_IMAGE_MANIFEST_V1 = "application/vnd.oci.image.manifest.v1+json";
18
+ export declare const MEDIATYPE_IMAGE_INDEX_V1 = "application/vnd.oci.image.index.v1+json";
19
+ export declare const MEDIATYPE_IMAGE_LAYER_V1 = "application/vnd.oci.image.layer.v1.tar";
20
+ export declare const MEDIATYPE_EMPTY_JSON_V1 = "application/vnd.oci.empty.v1+json";
21
+ export declare const MEDIATYPE_IMAGE_CONFIG_V1 = "application/vnd.oci.image.config.v1+json";
@@ -0,0 +1,22 @@
1
+ /**
2
+ * Copyright 2024 actions-toolkit authors
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ export const MEDIATYPE_DESCRIPTOR_V1 = 'application/vnd.oci.descriptor.v1+json';
17
+ export const MEDIATYPE_IMAGE_MANIFEST_V1 = 'application/vnd.oci.image.manifest.v1+json';
18
+ export const MEDIATYPE_IMAGE_INDEX_V1 = 'application/vnd.oci.image.index.v1+json';
19
+ export const MEDIATYPE_IMAGE_LAYER_V1 = 'application/vnd.oci.image.layer.v1.tar';
20
+ export const MEDIATYPE_EMPTY_JSON_V1 = 'application/vnd.oci.empty.v1+json';
21
+ export const MEDIATYPE_IMAGE_CONFIG_V1 = 'application/vnd.oci.image.config.v1+json';
22
+ //# sourceMappingURL=mediatype.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mediatype.js","sourceRoot":"","sources":["../../../src/types/oci/mediatype.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,MAAM,CAAC,MAAM,uBAAuB,GAAG,wCAAwC,CAAC;AAEhF,MAAM,CAAC,MAAM,2BAA2B,GAAG,4CAA4C,CAAC;AAExF,MAAM,CAAC,MAAM,wBAAwB,GAAG,yCAAyC,CAAC;AAElF,MAAM,CAAC,MAAM,wBAAwB,GAAG,wCAAwC,CAAC;AAEjF,MAAM,CAAC,MAAM,uBAAuB,GAAG,mCAAmC,CAAC;AAE3E,MAAM,CAAC,MAAM,yBAAyB,GAAG,0CAA0C,CAAC"}
@@ -0,0 +1,32 @@
1
+ /**
2
+ * Copyright 2024 actions-toolkit authors
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import { Index } from './index.js';
17
+ import { ImageLayout } from './layout.js';
18
+ import { Manifest } from './manifest.js';
19
+ import { Image } from './config.js';
20
+ export interface LoadArchiveOpts {
21
+ file: string;
22
+ }
23
+ export interface Archive {
24
+ root: {
25
+ index: Index;
26
+ layout: ImageLayout;
27
+ };
28
+ indexes: Record<string, Index>;
29
+ manifests: Record<string, Manifest>;
30
+ images: Record<string, Image>;
31
+ blobs: Record<string, any>;
32
+ }