Salta al contenuto principale
Versione: Successivo

Interface: Storage<PluginConfig>

pluginUtils.Storage

Storage Plugin interface

https://verdaccio.org/docs/next/plugin-storage

Type parameters

Name
PluginConfig

Hierarchy

  • Plugin<PluginConfig>

    Storage

Properties

config

Readonly config: unknown

Inherited from

Plugin.config

Defined in

plugin-utils.ts:31


options

Readonly options: PluginOptions

Inherited from

Plugin.options

Defined in

plugin-utils.ts:32


version

Readonly version: number

Inherited from

Plugin.version

Defined in

plugin-utils.ts:30

Methods

add

add(packageName): Promise<void>

Parameters

NameType
packageNamestring

Returns

Promise<void>

Defined in

plugin-utils.ts:77


deleteToken

deleteToken(user, tokenKey): Promise<any>

Parameters

NameType
userstring
tokenKeystring

Returns

Promise<any>

Defined in

plugin-utils.ts:86


get

get(): Promise<string[]>

Returns

Promise<string[]>

Defined in

plugin-utils.ts:79


getPackageStorage

getPackageStorage(packageName): StorageHandler

Parameters

NameType
packageNamestring

Returns

StorageHandler

Defined in

plugin-utils.ts:83


getSecret

getSecret(): Promise<string>

Returns

Promise<string>

Defined in

plugin-utils.ts:81


getVersion

getVersion(): number

Returns

number

Inherited from

Plugin.getVersion

Defined in

plugin-utils.ts:39


init

init(): Promise<void>

Returns

Promise<void>

Defined in

plugin-utils.ts:80


readTokens

readTokens(filter): Promise<Token[]>

Parameters

NameType
filterTokenFilter

Returns

Promise<Token[]>

Defined in

plugin-utils.ts:87


remove

remove(packageName): Promise<void>

Parameters

NameType
packageNamestring

Returns

Promise<void>

Defined in

plugin-utils.ts:78


saveToken

saveToken(token): Promise<any>

Parameters

NameType
tokenToken

Returns

Promise<any>

Defined in

plugin-utils.ts:85


search(query): Promise<SearchItem[]>

Parameters

NameType
querySearchQuery

Returns

Promise<SearchItem[]>

Defined in

plugin-utils.ts:84


setSecret

setSecret(secret): Promise<any>

Parameters

NameType
secretstring

Returns

Promise<any>

Defined in

plugin-utils.ts:82