跳到主要内容
版本号:Next

Interface: StorageHandler

pluginUtils.StorageHandler

Storage Handler

Used in storage plugin for managing packages and tarballs.

Properties

logger

logger: Logger

Defined in

plugin-utils.ts:52

Methods

createPackage

createPackage(packageName, manifest): Promise<void>

Parameters

NameType
packageNamestring
manifestManifest

Returns

Promise<void>

Defined in

plugin-utils.ts:63


deletePackage

deletePackage(fileName): Promise<void>

Parameters

NameType
fileNamestring

Returns

Promise<void>

Defined in

plugin-utils.ts:53


hasPackage

hasPackage(): Promise<boolean>

Returns

Promise<boolean>

Defined in

plugin-utils.ts:68


hasTarball

hasTarball(fileName): Promise<boolean>

Parameters

NameType
fileNamestring

Returns

Promise<boolean>

Defined in

plugin-utils.ts:66


readPackage

readPackage(packageName): Promise<Manifest>

Parameters

NameType
packageNamestring

Returns

Promise<Manifest>

Defined in

plugin-utils.ts:60


readTarball

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

Parameters

NameType
fileNamestring
«destructured»Object
› signalAbortSignal

Returns

Promise<Readable>

Defined in

plugin-utils.ts:62


removePackage

removePackage(): Promise<void>

Returns

Promise<void>

Defined in

plugin-utils.ts:54


savePackage

savePackage(packageName, manifest): Promise<void>

Parameters

NameType
packageNamestring
manifestManifest

Returns

Promise<void>

Defined in

plugin-utils.ts:61


updatePackage

updatePackage(packageName, handleUpdate): Promise<Manifest>

Parameters

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

Returns

Promise<Manifest>

Defined in

plugin-utils.ts:56


writeTarball

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

Parameters

NameType
fileNamestring
«destructured»Object
› signalAbortSignal

Returns

Promise<Writable>

Defined in

plugin-utils.ts:64