Skip to main content
Version: Next

Interface: StorageHandler

pluginUtils.StorageHandler

Properties

logger

logger: Logger

Defined in

plugin-utils.ts:49

Methods

createPackage

createPackage(name, manifest): Promise<void>

Parameters

NameType
namestring
manifestManifest

Returns

Promise<void>

Defined in

plugin-utils.ts:60


deletePackage

deletePackage(fileName): Promise<void>

Parameters

NameType
fileNamestring

Returns

Promise<void>

Defined in

plugin-utils.ts:50


hasPackage

hasPackage(): Promise<boolean>

Returns

Promise<boolean>

Defined in

plugin-utils.ts:65


hasTarball

hasTarball(fileName): Promise<boolean>

Parameters

NameType
fileNamestring

Returns

Promise<boolean>

Defined in

plugin-utils.ts:63


readPackage

readPackage(name): Promise<Manifest>

Parameters

NameType
namestring

Returns

Promise<Manifest>

Defined in

plugin-utils.ts:57


readTarball

readTarball(pkgName, «destructured»): Promise<Readable>

Parameters

NameType
pkgNamestring
«destructured»Object
› signalAbortSignal

Returns

Promise<Readable>

Defined in

plugin-utils.ts:59


removePackage

removePackage(): Promise<void>

Returns

Promise<void>

Defined in

plugin-utils.ts:51


savePackage

savePackage(pkgName, value): Promise<void>

Parameters

NameType
pkgNamestring
valueManifest

Returns

Promise<void>

Defined in

plugin-utils.ts:58


updatePackage

updatePackage(packageName, handleUpdate): Promise<Manifest>

Parameters

NameType
packageNamestring
handleUpdate(manifest: Manifest) => Promise<Manifest>

Returns

Promise<Manifest>

Defined in

plugin-utils.ts:53


writeTarball

writeTarball(tarballName, «destructured»): Promise<Writable>

Parameters

NameType
tarballNamestring
«destructured»Object
› signalAbortSignal

Returns

Promise<Writable>

Defined in

plugin-utils.ts:61