Skip to main content
Version: Next

Interface: Storage<PluginConfig>

pluginUtils.Storage

The base plugin class, set of utilities for developing plugins.

Type parameters

Name
PluginConfig

Hierarchy

  • Plugin<PluginConfig>

    Storage

Properties

config

Readonly config: unknown

Inherited from

Plugin.config

Defined in

plugin-utils.ts:36


options

Readonly options: PluginOptions

Inherited from

Plugin.options

Defined in

plugin-utils.ts:37


version

Readonly version: number

Inherited from

Plugin.version

Defined in

plugin-utils.ts:35

Methods

add

add(name): Promise<void>

Parameters

NameType
namestring

Returns

Promise<void>

Defined in

plugin-utils.ts:69


deleteToken

deleteToken(user, tokenKey): Promise<any>

Parameters

NameType
userstring
tokenKeystring

Returns

Promise<any>

Defined in

plugin-utils.ts:78


get

get(): Promise<any>

Returns

Promise<any>

Defined in

plugin-utils.ts:71


getPackageStorage

getPackageStorage(packageInfo): StorageHandler

Parameters

NameType
packageInfostring

Returns

StorageHandler

Defined in

plugin-utils.ts:75


getSecret

getSecret(): Promise<string>

Returns

Promise<string>

Defined in

plugin-utils.ts:73


getVersion

getVersion(): number

Returns

number

Inherited from

Plugin.getVersion

Defined in

plugin-utils.ts:44


init

init(): Promise<void>

Returns

Promise<void>

Defined in

plugin-utils.ts:72


readTokens

readTokens(filter): Promise<Token[]>

Parameters

NameType
filterTokenFilter

Returns

Promise<Token[]>

Defined in

plugin-utils.ts:79


remove

remove(name): Promise<void>

Parameters

NameType
namestring

Returns

Promise<void>

Defined in

plugin-utils.ts:70


saveToken

saveToken(token): Promise<any>

Parameters

NameType
tokenToken

Returns

Promise<any>

Defined in

plugin-utils.ts:77


search(query): Promise<SearchItem[]>

Parameters

NameType
querySearchQuery

Returns

Promise<SearchItem[]>

Defined in

plugin-utils.ts:76


setSecret

setSecret(secret): Promise<any>

Parameters

NameType
secretstring

Returns

Promise<any>

Defined in

plugin-utils.ts:74