Class: StorageManager
@pvm/artifacts.StorageManager
Constructors
constructor
• new StorageManager(deps
)
Parameters
Name | Type |
---|---|
deps | InitStorageDeps |
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
Name | Type |
---|---|
S | extends typeof Storage |
Parameters
Name | Type |
---|---|
StorageKlass | S |
storageDef | StorageDef |
Returns
Promise
<InstanceType
<S
>>
Defined in
packages/pvm-artifacts/lib/storage-manager.ts:49
initFor
â–¸ initFor<S
>(artifactsStorage
): Promise
<StorageEnumToFrontendClass
<S
>>
Type parameters
Name | Type |
---|---|
S | extends ArtifactsStorages |
Parameters
Name | Type |
---|---|
artifactsStorage | S |
Returns
Promise
<StorageEnumToFrontendClass
<S
>>
Defined in
packages/pvm-artifacts/lib/storage-manager.ts:55
castStorageType
â–¸ Static
castStorageType(storageType
): undefined
| ArtifactsStorages
Parameters
Name | Type |
---|---|
storageType | string |
Returns
undefined
| ArtifactsStorages
Defined in
packages/pvm-artifacts/lib/storage-manager.ts:41
isEnabledInConf
â–¸ Static
isEnabledInConf(config
, storageType
): boolean
Parameters
Name | Type |
---|---|
config | Config |
storageType | ArtifactsStorages |
Returns
boolean