ppio-sandbox 2.0.0-a1 → 2.0.0-a2

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.
@@ -60,7 +60,7 @@ import createClient from "openapi-fetch";
60
60
  import platform2 from "platform";
61
61
 
62
62
  // package.json
63
- var version = "2.0.0-a1";
63
+ var version = "2.0.0-a2";
64
64
 
65
65
  // src/core/utils.ts
66
66
  import platform from "platform";
@@ -5411,6 +5411,38 @@ var TemplateBase = class _TemplateBase {
5411
5411
  this.collectStackTrace();
5412
5412
  return this;
5413
5413
  }
5414
+ fromOCIRegistry(image, credentials) {
5415
+ this.baseImage = image;
5416
+ this.baseTemplate = void 0;
5417
+ this.registryConfig = {
5418
+ type: "oci",
5419
+ tenancyOcid: credentials.tenancyOcid,
5420
+ userOcid: credentials.userOcid,
5421
+ fingerprint: credentials.fingerprint,
5422
+ privateKey: credentials.privateKey,
5423
+ region: credentials.region
5424
+ };
5425
+ if (this.forceNextLayer) {
5426
+ this.force = true;
5427
+ }
5428
+ this.collectStackTrace();
5429
+ return this;
5430
+ }
5431
+ fromHuaweiCloudRegistry(image, credentials) {
5432
+ this.baseImage = image;
5433
+ this.baseTemplate = void 0;
5434
+ this.registryConfig = {
5435
+ type: "huawei",
5436
+ accessKeyId: credentials.accessKeyId,
5437
+ secretAccessKey: credentials.secretAccessKey,
5438
+ region: credentials.region
5439
+ };
5440
+ if (this.forceNextLayer) {
5441
+ this.force = true;
5442
+ }
5443
+ this.collectStackTrace();
5444
+ return this;
5445
+ }
5414
5446
  copy(src, dest, options) {
5415
5447
  var _a3;
5416
5448
  if (runtime === "browser") {
@@ -6058,4 +6090,4 @@ export {
6058
6090
  Template,
6059
6091
  core_default
6060
6092
  };
6061
- //# sourceMappingURL=chunk-2JDZZMUG.mjs.map
6093
+ //# sourceMappingURL=chunk-P33RTZCB.mjs.map