@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,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/moby/buildkit/blob/v0.14.0/solver/llbsolver/history.go#L672
17
+ export const MEDIATYPE_STATUS_V0 = 'application/vnd.buildkit.status.v0';
18
+ //# sourceMappingURL=buildkit.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"buildkit.js","sourceRoot":"","sources":["../../../src/types/buildkit/buildkit.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,iFAAiF;AACjF,MAAM,CAAC,MAAM,mBAAmB,GAAG,oCAAoC,CAAC"}
@@ -0,0 +1,61 @@
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 '../oci/digest.js';
17
+ import { ProgressGroup, Range, SourceInfo } from './ops.js';
18
+ export interface Vertex {
19
+ digest?: Digest;
20
+ inputs?: Array<Digest>;
21
+ name?: string;
22
+ started?: Date;
23
+ completed?: Date;
24
+ cached?: boolean;
25
+ error?: string;
26
+ progressGroup?: ProgressGroup;
27
+ }
28
+ export interface VertexStatus {
29
+ id: string;
30
+ vertex?: Digest;
31
+ name?: string;
32
+ total?: number;
33
+ current: number;
34
+ timestamp?: Date;
35
+ started?: Date;
36
+ completed?: Date;
37
+ }
38
+ export interface VertexLog {
39
+ vertex?: Digest;
40
+ stream?: number;
41
+ data: any;
42
+ timestamp: Date;
43
+ }
44
+ export interface VertexWarning {
45
+ vertex?: Digest;
46
+ level?: number;
47
+ short?: any;
48
+ detail?: Array<any>;
49
+ url?: string;
50
+ sourceInfo?: SourceInfo;
51
+ range?: Array<Range>;
52
+ }
53
+ export interface SolveStatus {
54
+ vertexes?: Array<Vertex>;
55
+ statuses?: Array<VertexStatus>;
56
+ logs?: Array<VertexLog>;
57
+ warnings?: Array<VertexWarning>;
58
+ }
59
+ export interface SolveResponse {
60
+ exporterResponse: Record<string, string>;
61
+ }
@@ -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=client.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"client.js","sourceRoot":"","sources":["../../../src/types/buildkit/client.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG"}
@@ -0,0 +1,88 @@
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 '../oci/descriptor.js';
17
+ import { Digest } from '../oci/digest.js';
18
+ import { ProgressGroup, Range, SourceInfo } from './ops.js';
19
+ import { RpcStatus } from './rpc.js';
20
+ export interface BuildHistoryRecord {
21
+ Ref: string;
22
+ Frontend: string;
23
+ FrontendAttrs: Record<string, string>;
24
+ Exporters: Array<Exporter>;
25
+ error?: RpcStatus;
26
+ CreatedAt?: Date;
27
+ CompletedAt?: Date;
28
+ logs?: Descriptor;
29
+ ExporterResponse: Record<string, string>;
30
+ Result?: BuildResultInfo;
31
+ Results: Record<string, BuildResultInfo>;
32
+ Generation: number;
33
+ trace?: Descriptor;
34
+ pinned: boolean;
35
+ numCachedSteps: number;
36
+ numTotalSteps: number;
37
+ numCompletedSteps: number;
38
+ }
39
+ export interface Exporter {
40
+ Type: string;
41
+ Attrs: Record<string, string>;
42
+ }
43
+ export interface BuildResultInfo {
44
+ ResultDeprecated?: Descriptor;
45
+ Attestations?: Array<Descriptor>;
46
+ Results?: Record<number, Descriptor>;
47
+ }
48
+ export interface StatusResponse {
49
+ vertexes?: Array<Vertex>;
50
+ statuses?: Array<VertexStatus>;
51
+ logs?: Array<VertexLog>;
52
+ warnings?: Array<VertexWarning>;
53
+ }
54
+ export interface Vertex {
55
+ digest: Digest;
56
+ inputs: Array<Digest>;
57
+ name?: string;
58
+ cached?: boolean;
59
+ started?: Date;
60
+ completed?: Date;
61
+ error?: string;
62
+ progressGroup?: ProgressGroup;
63
+ }
64
+ export interface VertexStatus {
65
+ ID?: string;
66
+ vertex: Digest;
67
+ name?: string;
68
+ current?: number;
69
+ total?: number;
70
+ timestamp: Date;
71
+ started?: Date;
72
+ completed?: Date;
73
+ }
74
+ export interface VertexLog {
75
+ vertex: Digest;
76
+ timestamp: Date;
77
+ stream?: number;
78
+ msg?: any;
79
+ }
80
+ export interface VertexWarning {
81
+ vertex: Digest;
82
+ level?: number;
83
+ short?: any;
84
+ detail?: Array<any>;
85
+ url?: string;
86
+ info?: SourceInfo;
87
+ ranges?: Array<Range>;
88
+ }
@@ -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=control.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"control.js","sourceRoot":"","sources":["../../../src/types/buildkit/control.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG"}
@@ -0,0 +1,40 @@
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 interface GitURL {
17
+ scheme: string;
18
+ host: string;
19
+ path: string;
20
+ user?: URLUserInfo;
21
+ fragment?: GitURLFragment;
22
+ remote: string;
23
+ }
24
+ export interface GitURLFragment {
25
+ ref: string;
26
+ subdir: string;
27
+ }
28
+ export interface GitRef {
29
+ remote?: string;
30
+ shortName?: string;
31
+ commit?: string;
32
+ subDir?: string;
33
+ indistinguishableFromLocal?: boolean;
34
+ unencryptedTCP?: boolean;
35
+ }
36
+ export interface URLUserInfo {
37
+ username: string;
38
+ password: string;
39
+ passwordSet: boolean;
40
+ }
@@ -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=git.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"git.js","sourceRoot":"","sources":["../../../src/types/buildkit/git.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG"}
@@ -0,0 +1,60 @@
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 interface Definition {
17
+ def?: Array<any>;
18
+ metadata: Record<string, OpMetadata>;
19
+ Source?: Source;
20
+ }
21
+ export interface OpMetadata {
22
+ ignore_cache?: boolean;
23
+ description?: Record<string, string>;
24
+ export_cache?: ExportCache;
25
+ caps: Record<string, boolean>;
26
+ progress_group?: ProgressGroup;
27
+ }
28
+ export interface Source {
29
+ locations?: Record<string, Locations>;
30
+ infos?: Array<SourceInfo>;
31
+ }
32
+ export interface Locations {
33
+ locations?: Array<Location>;
34
+ }
35
+ export interface Location {
36
+ sourceIndex?: number;
37
+ ranges?: Array<Range>;
38
+ }
39
+ export interface Range {
40
+ start: Position;
41
+ end: Position;
42
+ }
43
+ export interface Position {
44
+ line: number;
45
+ character: number;
46
+ }
47
+ export interface SourceInfo {
48
+ filename?: string;
49
+ data?: any;
50
+ definition?: Definition;
51
+ language?: string;
52
+ }
53
+ export interface ExportCache {
54
+ Value?: boolean;
55
+ }
56
+ export interface ProgressGroup {
57
+ id?: string;
58
+ name?: string;
59
+ weak?: boolean;
60
+ }
@@ -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=ops.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ops.js","sourceRoot":"","sources":["../../../src/types/buildkit/ops.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
+ export interface RpcStatus {
17
+ code: number;
18
+ message: string;
19
+ details: Array<RpcAny>;
20
+ }
21
+ export interface RpcAny {
22
+ type_url: string;
23
+ value: any;
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=rpc.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rpc.js","sourceRoot":"","sources":["../../../src/types/buildkit/rpc.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG"}
@@ -0,0 +1,70 @@
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 interface BakeDefinition {
17
+ group: Record<string, Group>;
18
+ target: Record<string, Target>;
19
+ }
20
+ export interface Group {
21
+ description?: string;
22
+ targets: Array<string>;
23
+ }
24
+ export interface Target {
25
+ description?: string;
26
+ args?: Record<string, string>;
27
+ attest?: Array<AttestEntry> | Array<string>;
28
+ 'cache-from'?: Array<CacheEntry> | Array<string>;
29
+ 'cache-to'?: Array<CacheEntry> | Array<string>;
30
+ call?: string;
31
+ context: string;
32
+ contexts?: Record<string, string>;
33
+ dockerfile: string;
34
+ 'dockerfile-inline'?: string;
35
+ entitlements?: Array<string>;
36
+ labels?: Record<string, string>;
37
+ 'no-cache'?: boolean;
38
+ 'no-cache-filter'?: Array<string>;
39
+ output?: Array<ExportEntry> | Array<string>;
40
+ platforms?: Array<string>;
41
+ pull?: boolean;
42
+ secret?: Array<SecretEntry> | Array<string>;
43
+ 'shm-size'?: string;
44
+ ssh?: Array<SSHEntry> | Array<string>;
45
+ tags?: Array<string>;
46
+ target?: string;
47
+ ulimits?: Array<string>;
48
+ }
49
+ export interface AttestEntry {
50
+ type: string;
51
+ disabled?: string | boolean;
52
+ [key: string]: string | boolean | undefined;
53
+ }
54
+ export interface CacheEntry {
55
+ type: string;
56
+ [key: string]: string;
57
+ }
58
+ export interface ExportEntry {
59
+ type: string;
60
+ [key: string]: string;
61
+ }
62
+ export interface SecretEntry {
63
+ id?: string;
64
+ src?: string;
65
+ env?: string;
66
+ }
67
+ export interface SSHEntry {
68
+ id?: string;
69
+ paths?: Array<string>;
70
+ }
@@ -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=bake.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bake.js","sourceRoot":"","sources":["../../../src/types/buildx/bake.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG"}
@@ -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
+ export type GitContextFormat = 'fragment' | 'query';
17
+ export type BuildMetadata = {
18
+ [key: string]: any;
19
+ };
@@ -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=build.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"build.js","sourceRoot":"","sources":["../../../src/types/buildx/build.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG"}
@@ -0,0 +1,52 @@
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 interface BuilderInfo {
17
+ name?: string;
18
+ driver?: string;
19
+ lastActivity?: Date;
20
+ nodes: NodeInfo[];
21
+ }
22
+ export interface Node {
23
+ name?: string;
24
+ endpoint?: string;
25
+ 'driver-opts'?: Array<string>;
26
+ 'buildkitd-flags'?: string;
27
+ platforms?: string;
28
+ }
29
+ export interface NodeInfo extends Node {
30
+ status?: string;
31
+ buildkit?: string;
32
+ features?: Record<string, boolean>;
33
+ labels?: Record<string, string>;
34
+ devices?: Array<Device>;
35
+ gcPolicy?: Array<GCPolicy>;
36
+ files?: Record<string, string>;
37
+ }
38
+ export interface Device {
39
+ name?: string;
40
+ annotations?: Record<string, string>;
41
+ autoAllow?: boolean;
42
+ onDemand?: boolean;
43
+ }
44
+ export interface GCPolicy {
45
+ all?: boolean;
46
+ filter?: string[];
47
+ keepDuration?: string;
48
+ keepBytes?: string;
49
+ reservedSpace?: string;
50
+ maxUsedSpace?: string;
51
+ minFreeSpace?: string;
52
+ }
@@ -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=builder.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"builder.js","sourceRoot":"","sources":["../../../src/types/buildx/builder.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG"}
@@ -0,0 +1,42 @@
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 { GitHubContentOpts } from '../github/github.js';
17
+ export interface Cert {
18
+ cacert?: string;
19
+ cert?: string;
20
+ key?: string;
21
+ }
22
+ export interface DownloadVersion {
23
+ key: string;
24
+ version: string;
25
+ downloadURL: string;
26
+ contentOpts: GitHubContentOpts;
27
+ }
28
+ export interface LocalRefsOpts {
29
+ dir: string;
30
+ builderName?: string;
31
+ nodeName?: string;
32
+ since?: Date;
33
+ }
34
+ export interface LocalRefsResponse {
35
+ [ref: string]: LocalState;
36
+ }
37
+ export interface LocalState {
38
+ Target: string;
39
+ LocalPath: string;
40
+ DockerfilePath: string;
41
+ GroupRef?: string;
42
+ }