Interface: StorageHandler
pluginUtils.StorageHandler
Properties
logger
• logger: Logger
Defined in
Methods
createPackage
▸ createPackage(name
, manifest
): Promise
<void
>
Parameters
Name | Type |
---|---|
name | string |
manifest | Manifest |
Returns
Promise
<void
>
Defined in
deletePackage
▸ deletePackage(fileName
): Promise
<void
>
Parameters
Name | Type |
---|---|
fileName | string |
Returns
Promise
<void
>
Defined in
hasPackage
▸ hasPackage(): Promise
<boolean
>
Returns
Promise
<boolean
>
Defined in
hasTarball
▸ hasTarball(fileName
): Promise
<boolean
>
Parameters
Name | Type |
---|---|
fileName | string |
Returns
Promise
<boolean
>
Defined in
readPackage
▸ readPackage(name
): Promise
<Manifest
>
Parameters
Name | Type |
---|---|
name | string |
Returns
Promise
<Manifest
>
Defined in
readTarball
▸ readTarball(pkgName
, «destructured»
): Promise
<Readable
>
Parameters
Name | Type |
---|---|
pkgName | string |
«destructured» | Object |
› signal | AbortSignal |
Returns
Promise
<Readable
>
Defined in
removePackage
▸ removePackage(): Promise
<void
>
Returns
Promise
<void
>
Defined in
savePackage
▸ savePackage(pkgName
, value
): Promise
<void
>
Parameters
Name | Type |
---|---|
pkgName | string |
value | Manifest |
Returns
Promise
<void
>
Defined in
updatePackage
▸ updatePackage(packageName
, handleUpdate
): Promise
<Manifest
>
Parameters
Name | Type |
---|---|
packageName | string |
handleUpdate | (manifest : Manifest ) => Promise <Manifest > |
Returns
Promise
<Manifest
>
Defined in
writeTarball
▸ writeTarball(tarballName
, «destructured»
): Promise
<Writable
>
Parameters
Name | Type |
---|---|
tarballName | string |
«destructured» | Object |
› signal | AbortSignal |
Returns
Promise
<Writable
>