|
|
|
@ -43288,13 +43288,20 @@ const path = __importStar(__webpack_require__(5622));
|
|
|
|
|
const actionUtils_1 = __webpack_require__(443);
|
|
|
|
|
class CacheService {
|
|
|
|
|
constructor(accessKeyId, secretAccessKey, region, bucket) {
|
|
|
|
|
this._client = new aws_sdk_1.S3({
|
|
|
|
|
region: region,
|
|
|
|
|
credentials: {
|
|
|
|
|
accessKeyId: accessKeyId,
|
|
|
|
|
secretAccessKey: secretAccessKey
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
if (accessKeyId && secretAccessKey) {
|
|
|
|
|
this._client = new aws_sdk_1.S3({
|
|
|
|
|
region: region,
|
|
|
|
|
credentials: {
|
|
|
|
|
accessKeyId: accessKeyId,
|
|
|
|
|
secretAccessKey: secretAccessKey
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
else {
|
|
|
|
|
this._client = new aws_sdk_1.S3({
|
|
|
|
|
region: region
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
this._bucket = bucket;
|
|
|
|
|
}
|
|
|
|
|
restoreCache(paths, primaryKey, restoreKeys) {
|
|
|
|
|