UNPKG

@itwin/object-storage-oss

Version:
28 lines 998 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.createCore = createCore; exports.getActions = getActions; /*--------------------------------------------------------------------------------------------- * Copyright (c) Bentley Systems, Incorporated. All rights reserved. * See LICENSE.md in the project root for license terms and full copyright notice. *--------------------------------------------------------------------------------------------*/ const Core = require("@alicloud/pop-core"); function createCore(config) { const { accessKey, secretKey, stsBaseUrl } = config; return new Core({ accessKeyId: accessKey, accessKeySecret: secretKey, endpoint: stsBaseUrl, apiVersion: "2015-04-01", }); } function getActions() { const actions = [ "oss:GetObject", "oss:PutObject", "oss:DeleteObject", "oss:ListObjects", ]; return actions; } //# sourceMappingURL=Helpers.js.map