@docker/actions-toolkit 0.23.0 → 0.25.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.
- package/lib/buildkit/buildkit.d.ts +1 -1
- package/lib/buildx/bake.d.ts +1 -1
- package/lib/buildx/build.d.ts +2 -1
- package/lib/buildx/build.js +36 -0
- package/lib/buildx/build.js.map +1 -1
- package/lib/buildx/builder.d.ts +1 -1
- package/lib/buildx/buildx.d.ts +1 -1
- package/lib/buildx/history.d.ts +1 -1
- package/lib/buildx/history.js +5 -0
- package/lib/buildx/history.js.map +1 -1
- package/lib/buildx/install.d.ts +1 -1
- package/lib/docker/assets.d.ts +1 -1
- package/lib/docker/assets.js +3 -0
- package/lib/docker/assets.js.map +1 -1
- package/lib/docker/docker.d.ts +1 -1
- package/lib/docker/install.js +6 -2
- package/lib/docker/install.js.map +1 -1
- package/lib/github.d.ts +3 -1
- package/lib/github.js +80 -1
- package/lib/github.js.map +1 -1
- package/lib/oci/oci.d.ts +9 -0
- package/lib/oci/oci.js +199 -0
- package/lib/oci/oci.js.map +1 -0
- package/lib/types/buildx/bake.js.map +1 -0
- package/lib/types/buildx/build.js.map +1 -0
- package/lib/types/buildx/builder.js.map +1 -0
- package/lib/types/buildx/buildx.js.map +1 -0
- package/lib/types/{history.d.ts → buildx/history.d.ts} +14 -0
- package/lib/types/buildx/history.js.map +1 -0
- package/lib/types/docker/docker.js.map +1 -0
- package/lib/types/github.d.ts +8 -0
- package/lib/types/oci/config.d.ts +47 -0
- package/lib/types/oci/config.js +18 -0
- package/lib/types/oci/config.js.map +1 -0
- package/lib/types/oci/descriptor.d.ts +34 -0
- package/lib/types/oci/descriptor.js +26 -0
- package/lib/types/oci/descriptor.js.map +1 -0
- package/lib/types/oci/digest.d.ts +16 -0
- package/lib/types/oci/digest.js +18 -0
- package/lib/types/oci/digest.js.map +1 -0
- package/lib/types/oci/index.d.ts +24 -0
- package/lib/types/oci/index.js +18 -0
- package/lib/types/oci/index.js.map +1 -0
- package/lib/types/oci/layout.d.ts +22 -0
- package/lib/types/oci/layout.js +23 -0
- package/lib/types/oci/layout.js.map +1 -0
- package/lib/types/oci/manifest.d.ts +25 -0
- package/lib/types/oci/manifest.js +18 -0
- package/lib/types/oci/manifest.js.map +1 -0
- package/lib/types/oci/mediatype.d.ts +20 -0
- package/lib/types/oci/mediatype.js +24 -0
- package/lib/types/oci/mediatype.js.map +1 -0
- package/lib/types/oci/oci.d.ts +32 -0
- package/lib/types/oci/oci.js +18 -0
- package/lib/types/oci/oci.js.map +1 -0
- package/lib/types/oci/versioned.d.ts +18 -0
- package/lib/types/oci/versioned.js +18 -0
- package/lib/types/oci/versioned.js.map +1 -0
- package/package.json +7 -1
- package/lib/types/bake.js.map +0 -1
- package/lib/types/build.js.map +0 -1
- package/lib/types/builder.js.map +0 -1
- package/lib/types/buildx.js.map +0 -1
- package/lib/types/docker.js.map +0 -1
- package/lib/types/history.js.map +0 -1
- /package/lib/types/{bake.d.ts → buildx/bake.d.ts} +0 -0
- /package/lib/types/{bake.js → buildx/bake.js} +0 -0
- /package/lib/types/{build.d.ts → buildx/build.d.ts} +0 -0
- /package/lib/types/{build.js → buildx/build.js} +0 -0
- /package/lib/types/{builder.d.ts → buildx/builder.d.ts} +0 -0
- /package/lib/types/{builder.js → buildx/builder.js} +0 -0
- /package/lib/types/{buildx.d.ts → buildx/buildx.d.ts} +0 -0
- /package/lib/types/{buildx.js → buildx/buildx.js} +0 -0
- /package/lib/types/{history.js → buildx/history.js} +0 -0
- /package/lib/types/{docker.d.ts → docker/docker.d.ts} +0 -0
- /package/lib/types/{docker.js → docker/docker.js} +0 -0
package/lib/oci/oci.js
ADDED
|
@@ -0,0 +1,199 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
26
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
27
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
28
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
29
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
30
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
31
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
32
|
+
});
|
|
33
|
+
};
|
|
34
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
35
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
36
|
+
};
|
|
37
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
38
|
+
exports.OCI = void 0;
|
|
39
|
+
/**
|
|
40
|
+
* Copyright 2024 actions-toolkit authors
|
|
41
|
+
*
|
|
42
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
43
|
+
* you may not use this file except in compliance with the License.
|
|
44
|
+
* You may obtain a copy of the License at
|
|
45
|
+
*
|
|
46
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
47
|
+
*
|
|
48
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
49
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
50
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
51
|
+
* See the License for the specific language governing permissions and
|
|
52
|
+
* limitations under the License.
|
|
53
|
+
*/
|
|
54
|
+
const fs_1 = __importDefault(require("fs"));
|
|
55
|
+
const gunzip_maybe_1 = __importDefault(require("gunzip-maybe"));
|
|
56
|
+
const path = __importStar(require("path"));
|
|
57
|
+
const tar = __importStar(require("tar-stream"));
|
|
58
|
+
const layout_1 = require("../types/oci/layout");
|
|
59
|
+
const mediatype_1 = require("../types/oci/mediatype");
|
|
60
|
+
class OCI {
|
|
61
|
+
static loadArchive(opts) {
|
|
62
|
+
return new Promise((resolve, reject) => {
|
|
63
|
+
const tarex = tar.extract();
|
|
64
|
+
let rootIndex;
|
|
65
|
+
let rootLayout;
|
|
66
|
+
const indexes = {};
|
|
67
|
+
const manifests = {};
|
|
68
|
+
const images = {};
|
|
69
|
+
const blobs = {};
|
|
70
|
+
tarex.on('entry', (header, stream, next) => __awaiter(this, void 0, void 0, function* () {
|
|
71
|
+
if (header.type === 'file') {
|
|
72
|
+
const filename = path.normalize(header.name);
|
|
73
|
+
if (filename === layout_1.IMAGE_INDEX_FILE_V1) {
|
|
74
|
+
rootIndex = yield OCI.streamToJson(stream);
|
|
75
|
+
}
|
|
76
|
+
else if (filename === layout_1.IMAGE_LAYOUT_FILE_V1) {
|
|
77
|
+
rootLayout = yield OCI.streamToJson(stream);
|
|
78
|
+
}
|
|
79
|
+
else if (filename.startsWith(path.join(layout_1.IMAGE_BLOBS_DIR_V1, path.sep))) {
|
|
80
|
+
const blob = yield OCI.extractBlob(stream);
|
|
81
|
+
const digest = `${filename.split(path.sep)[1]}:${filename.split(path.sep)[filename.split(path.sep).length - 1]}`;
|
|
82
|
+
if (OCI.isIndex(blob)) {
|
|
83
|
+
indexes[digest] = JSON.parse(blob);
|
|
84
|
+
}
|
|
85
|
+
else if (OCI.isManifest(blob)) {
|
|
86
|
+
manifests[digest] = JSON.parse(blob);
|
|
87
|
+
}
|
|
88
|
+
else if (OCI.isImage(blob)) {
|
|
89
|
+
images[digest] = JSON.parse(blob);
|
|
90
|
+
}
|
|
91
|
+
else {
|
|
92
|
+
blobs[digest] = blob;
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
else {
|
|
96
|
+
reject(new Error(`Invalid OCI archive: unexpected file ${filename}`));
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
stream.resume();
|
|
100
|
+
next();
|
|
101
|
+
}));
|
|
102
|
+
tarex.on('finish', () => {
|
|
103
|
+
if (!rootIndex || !rootLayout) {
|
|
104
|
+
reject(new Error('Invalid OCI archive: missing index or layout'));
|
|
105
|
+
}
|
|
106
|
+
resolve({
|
|
107
|
+
root: {
|
|
108
|
+
index: rootIndex,
|
|
109
|
+
layout: rootLayout
|
|
110
|
+
},
|
|
111
|
+
indexes: indexes,
|
|
112
|
+
manifests: manifests,
|
|
113
|
+
images: images,
|
|
114
|
+
blobs: blobs
|
|
115
|
+
});
|
|
116
|
+
});
|
|
117
|
+
tarex.on('error', error => {
|
|
118
|
+
reject(error);
|
|
119
|
+
});
|
|
120
|
+
fs_1.default.createReadStream(opts.file).pipe((0, gunzip_maybe_1.default)()).pipe(tarex);
|
|
121
|
+
});
|
|
122
|
+
}
|
|
123
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
124
|
+
static isIndex(blob) {
|
|
125
|
+
try {
|
|
126
|
+
const index = JSON.parse(blob);
|
|
127
|
+
return index.mediaType === mediatype_1.MEDIATYPE_IMAGE_INDEX_V1;
|
|
128
|
+
}
|
|
129
|
+
catch (_a) {
|
|
130
|
+
return false;
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
134
|
+
static isManifest(blob) {
|
|
135
|
+
try {
|
|
136
|
+
const manifest = JSON.parse(blob);
|
|
137
|
+
return manifest.mediaType === mediatype_1.MEDIATYPE_IMAGE_MANIFEST_V1 && manifest.layers.length > 0;
|
|
138
|
+
}
|
|
139
|
+
catch (_a) {
|
|
140
|
+
return false;
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
144
|
+
static isImage(blob) {
|
|
145
|
+
try {
|
|
146
|
+
const image = JSON.parse(blob);
|
|
147
|
+
return image.rootfs.type !== '';
|
|
148
|
+
}
|
|
149
|
+
catch (_a) {
|
|
150
|
+
return false;
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
154
|
+
static extractBlob(stream) {
|
|
155
|
+
return new Promise((resolve, reject) => {
|
|
156
|
+
const chunks = [];
|
|
157
|
+
const dstream = stream.pipe((0, gunzip_maybe_1.default)());
|
|
158
|
+
dstream.on('data', chunk => {
|
|
159
|
+
chunks.push(chunk);
|
|
160
|
+
});
|
|
161
|
+
dstream.on('end', () => {
|
|
162
|
+
resolve(Buffer.concat(chunks).toString('utf8'));
|
|
163
|
+
});
|
|
164
|
+
dstream.on('error', (error) => __awaiter(this, void 0, void 0, function* () {
|
|
165
|
+
reject(error);
|
|
166
|
+
}));
|
|
167
|
+
});
|
|
168
|
+
}
|
|
169
|
+
static streamToJson(stream) {
|
|
170
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
171
|
+
return new Promise((resolve, reject) => {
|
|
172
|
+
const chunks = [];
|
|
173
|
+
let bytes = 0;
|
|
174
|
+
stream.on('data', chunk => {
|
|
175
|
+
bytes += chunk.length;
|
|
176
|
+
if (bytes <= 2 * 1024 * 1024) {
|
|
177
|
+
chunks.push(chunk.toString('utf8'));
|
|
178
|
+
}
|
|
179
|
+
else {
|
|
180
|
+
reject(new Error('The data stream exceeds the size limit for JSON parsing.'));
|
|
181
|
+
}
|
|
182
|
+
});
|
|
183
|
+
stream.on('end', () => {
|
|
184
|
+
try {
|
|
185
|
+
resolve(JSON.parse(chunks.join('')));
|
|
186
|
+
}
|
|
187
|
+
catch (error) {
|
|
188
|
+
reject(error);
|
|
189
|
+
}
|
|
190
|
+
});
|
|
191
|
+
stream.on('error', (error) => __awaiter(this, void 0, void 0, function* () {
|
|
192
|
+
reject(error);
|
|
193
|
+
}));
|
|
194
|
+
});
|
|
195
|
+
});
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
exports.OCI = OCI;
|
|
199
|
+
//# sourceMappingURL=oci.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"oci.js","sourceRoot":"","sources":["../../src/oci/oci.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;GAcG;AACH,4CAAoB;AACpB,gEAAkC;AAClC,2CAA6B;AAE7B,gDAAkC;AAMlC,gDAA+G;AAC/G,sDAA6F;AAE7F,MAAa,GAAG;IACP,MAAM,CAAC,WAAW,CAAC,IAAqB;QAC7C,OAAO,IAAI,OAAO,CAAU,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;YAC9C,MAAM,KAAK,GAAgB,GAAG,CAAC,OAAO,EAAE,CAAC;YAEzC,IAAI,SAAgB,CAAC;YACrB,IAAI,UAAuB,CAAC;YAC5B,MAAM,OAAO,GAA0B,EAAE,CAAC;YAC1C,MAAM,SAAS,GAA6B,EAAE,CAAC;YAC/C,MAAM,MAAM,GAA0B,EAAE,CAAC;YACzC,MAAM,KAAK,GAA4B,EAA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C,CAAA,CAAC,CAAC;YACL,CAAC,CAAC,CAAC;QACL,CAAC;KAAA;CACF;AAtID,kBAsIC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bake.js","sourceRoot":"","sources":["../../../src/types/buildx/bake.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"build.js","sourceRoot":"","sources":["../../../src/types/buildx/build.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"builder.js","sourceRoot":"","sources":["../../../src/types/buildx/builder.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"buildx.js","sourceRoot":"","sources":["../../../src/types/buildx/buildx.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG"}
|
|
@@ -20,7 +20,21 @@ export interface ExportRecordOpts {
|
|
|
20
20
|
export interface ExportRecordResponse {
|
|
21
21
|
dockerbuildFilename: string;
|
|
22
22
|
dockerbuildSize: number;
|
|
23
|
+
summaries: Summaries;
|
|
23
24
|
builderName: string;
|
|
24
25
|
nodeName: string;
|
|
25
26
|
refs: Array<string>;
|
|
26
27
|
}
|
|
28
|
+
export interface Summaries {
|
|
29
|
+
[ref: string]: RecordSummary;
|
|
30
|
+
}
|
|
31
|
+
export interface RecordSummary {
|
|
32
|
+
name: string;
|
|
33
|
+
status: string;
|
|
34
|
+
duration: string;
|
|
35
|
+
numCachedSteps: number;
|
|
36
|
+
numTotalSteps: number;
|
|
37
|
+
numCompletedSteps: number;
|
|
38
|
+
frontendAttrs: Record<string, string>;
|
|
39
|
+
error?: string;
|
|
40
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"history.js","sourceRoot":"","sources":["../../../src/types/buildx/history.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"docker.js","sourceRoot":"","sources":["../../../src/types/docker/docker.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG"}
|
package/lib/types/github.d.ts
CHANGED
|
@@ -15,6 +15,8 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { components as OctoOpenApiTypes } from '@octokit/openapi-types';
|
|
17
17
|
import { JwtPayload } from 'jwt-decode';
|
|
18
|
+
import { BakeDefinition } from './buildx/bake';
|
|
19
|
+
import { ExportRecordResponse } from './buildx/history';
|
|
18
20
|
export interface GitHubRelease {
|
|
19
21
|
id: number;
|
|
20
22
|
tag_name: string;
|
|
@@ -40,3 +42,9 @@ export interface UploadArtifactResponse {
|
|
|
40
42
|
size: number;
|
|
41
43
|
url: string;
|
|
42
44
|
}
|
|
45
|
+
export interface BuildSummaryOpts {
|
|
46
|
+
exportRes: ExportRecordResponse;
|
|
47
|
+
uploadRes: UploadArtifactResponse;
|
|
48
|
+
inputs?: any;
|
|
49
|
+
bakeDefinition?: BakeDefinition;
|
|
50
|
+
}
|
|
@@ -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';
|
|
17
|
+
import { Platform } from './descriptor';
|
|
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,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Copyright 2024 actions-toolkit authors
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
//# 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';
|
|
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,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Copyright 2024 actions-toolkit authors
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
exports.DescriptorEmptyJSON = void 0;
|
|
19
|
+
const mediatype_1 = require("./mediatype");
|
|
20
|
+
exports.DescriptorEmptyJSON = {
|
|
21
|
+
mediaType: mediatype_1.MEDIATYPE_EMPTY_JSON_V1,
|
|
22
|
+
digest: 'sha256:44136fa355b3678a1146ad16f7e8649e94fb4fc21fe77e8310c060f61caaff8a',
|
|
23
|
+
size: 2,
|
|
24
|
+
data: '{}'
|
|
25
|
+
};
|
|
26
|
+
//# 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,2CAAoD;AAqBvC,QAAA,mBAAmB,GAAe;IAC7C,SAAS,EAAE,mCAAuB;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,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Copyright 2024 actions-toolkit authors
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
//# 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';
|
|
17
|
+
import { Descriptor } from './descriptor';
|
|
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,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Copyright 2024 actions-toolkit authors
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
//# 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,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Copyright 2024 actions-toolkit authors
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
exports.IMAGE_BLOBS_DIR_V1 = exports.IMAGE_INDEX_FILE_V1 = exports.IMAGE_LAYOUT_VERSION_V1 = exports.IMAGE_LAYOUT_FILE_V1 = void 0;
|
|
19
|
+
exports.IMAGE_LAYOUT_FILE_V1 = 'oci-layout';
|
|
20
|
+
exports.IMAGE_LAYOUT_VERSION_V1 = '1.0.0';
|
|
21
|
+
exports.IMAGE_INDEX_FILE_V1 = 'index.json';
|
|
22
|
+
exports.IMAGE_BLOBS_DIR_V1 = 'blobs';
|
|
23
|
+
//# sourceMappingURL=layout.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"layout.js","sourceRoot":"","sources":["../../../src/types/oci/layout.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEU,QAAA,oBAAoB,GAAG,YAAY,CAAC;AAEpC,QAAA,uBAAuB,GAAG,OAAO,CAAC;AAElC,QAAA,mBAAmB,GAAG,YAAY,CAAC;AAEnC,QAAA,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';
|
|
17
|
+
import { Versioned } from './versioned';
|
|
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,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Copyright 2024 actions-toolkit authors
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
//# 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,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 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";
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Copyright 2024 actions-toolkit authors
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
exports.MEDIATYPE_EMPTY_JSON_V1 = exports.MEDIATYPE_IMAGE_LAYER_V1 = exports.MEDIATYPE_IMAGE_INDEX_V1 = exports.MEDIATYPE_IMAGE_MANIFEST_V1 = exports.MEDIATYPE_DESCRIPTOR_V1 = void 0;
|
|
19
|
+
exports.MEDIATYPE_DESCRIPTOR_V1 = 'application/vnd.oci.descriptor.v1+json';
|
|
20
|
+
exports.MEDIATYPE_IMAGE_MANIFEST_V1 = 'application/vnd.oci.image.manifest.v1+json';
|
|
21
|
+
exports.MEDIATYPE_IMAGE_INDEX_V1 = 'application/vnd.oci.image.index.v1+json';
|
|
22
|
+
exports.MEDIATYPE_IMAGE_LAYER_V1 = 'application/vnd.oci.image.layer.v1.tar';
|
|
23
|
+
exports.MEDIATYPE_EMPTY_JSON_V1 = 'application/vnd.oci.empty.v1+json';
|
|
24
|
+
//# sourceMappingURL=mediatype.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mediatype.js","sourceRoot":"","sources":["../../../src/types/oci/mediatype.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEU,QAAA,uBAAuB,GAAG,wCAAwC,CAAC;AAEnE,QAAA,2BAA2B,GAAG,4CAA4C,CAAC;AAE3E,QAAA,wBAAwB,GAAG,yCAAyC,CAAC;AAErE,QAAA,wBAAwB,GAAG,wCAAwC,CAAC;AAEpE,QAAA,uBAAuB,GAAG,mCAAmC,CAAC"}
|