UNPKG

@itwin/object-storage-google

Version:

Object storage implementation using Google Cloud Storage

20 lines 1.3 kB
"use strict"; /*--------------------------------------------------------------------------------------------- * Copyright (c) Bentley Systems, Incorporated. All rights reserved. * See LICENSE.md in the project root for license terms and full copyright notice. *--------------------------------------------------------------------------------------------*/ Object.defineProperty(exports, "__esModule", { value: true }); exports.GoogleClientStorageBindings = void 0; const object_storage_core_1 = require("@itwin/object-storage-core"); const common_1 = require("../common"); const GoogleClientStorage_1 = require("./GoogleClientStorage"); const wrappers_1 = require("./wrappers"); class GoogleClientStorageBindings extends object_storage_core_1.ClientStorageDependency { dependencyName = common_1.Constants.storageType; register(container) { container.registerFactory(wrappers_1.ClientStorageWrapperFactory, () => new wrappers_1.ClientStorageWrapperFactory()); container.registerFactory(object_storage_core_1.Types.Client.clientStorage, (c) => new GoogleClientStorage_1.GoogleClientStorage(c.resolve(wrappers_1.ClientStorageWrapperFactory))); } } exports.GoogleClientStorageBindings = GoogleClientStorageBindings; //# sourceMappingURL=GoogleClientStorageBindings.js.map