Skip to main content

Class: StorageManager

@pvm/artifacts.StorageManager

Constructors

constructor

• new StorageManager(deps)

Parameters

NameType
depsInitStorageDeps

Defined in

packages/pvm-artifacts/lib/storage-manager.ts:28

Properties

_storages

• _storages: Storage[] = []

Defined in

packages/pvm-artifacts/lib/storage-manager.ts:24


initStorageDeps

• initStorageDeps: InitStorageDeps

Defined in

packages/pvm-artifacts/lib/storage-manager.ts:23


ArtifactsStorages

â–ª Static ArtifactsStorages: typeof ArtifactsStorages = ArtifactsStorages

Defined in

packages/pvm-artifacts/lib/storage-manager.ts:26

Methods

finish

â–¸ finish(): Promise<void>

Returns

Promise<void>

Defined in

packages/pvm-artifacts/lib/storage-manager.ts:73


init

â–¸ init<S>(StorageKlass, storageDef): Promise<InstanceType<S>>

Type parameters

NameType
Sextends typeof Storage

Parameters

NameType
StorageKlassS
storageDefStorageDef

Returns

Promise<InstanceType<S>>

Defined in

packages/pvm-artifacts/lib/storage-manager.ts:49


initFor

â–¸ initFor<S>(artifactsStorage): Promise<StorageEnumToFrontendClass<S>>

Type parameters

NameType
Sextends ArtifactsStorages

Parameters

NameType
artifactsStorageS

Returns

Promise<StorageEnumToFrontendClass<S>>

Defined in

packages/pvm-artifacts/lib/storage-manager.ts:55


castStorageType

â–¸ Static castStorageType(storageType): undefined | ArtifactsStorages

Parameters

NameType
storageTypestring

Returns

undefined | ArtifactsStorages

Defined in

packages/pvm-artifacts/lib/storage-manager.ts:41


isEnabledInConf

â–¸ Static isEnabledInConf(config, storageType): boolean

Parameters

NameType
configConfig
storageTypeArtifactsStorages

Returns

boolean

Defined in

packages/pvm-artifacts/lib/storage-manager.ts:32