description |
---|
Interacts with the storage pipeline system. |
Param | Type | Default |
---|---|---|
pluginAPI | EnvoyAPI |
|
[installId] | number | null |
- instance
- .api :
EnvoyAPI
- .installId :
number
|null
- .commands :
Array.<Command>
- .execute() ⇒
Promise.<Array.<(Command|null)>>
- .executeSingle() ⇒
Promise.<PluginStorageItem>
- .addCommand(command) ⇒
EnvoyPluginStoragePipeline
- .get(key) ⇒
EnvoyPluginStoragePipeline
- .set(key, value) ⇒
EnvoyPluginStoragePipeline
- .setUnique(key, [options]) ⇒
EnvoyPluginStoragePipeline
- .unset(key) ⇒
EnvoyPluginStoragePipeline
- .api :
Executes all the commands in the pipeline.
Kind: instance method of EnvoyPluginStoragePipeline
Executes the pipeline and returns the first result.
Kind: instance method of EnvoyPluginStoragePipeline
Kind: instance method of EnvoyPluginStoragePipeline
Param | Type |
---|---|
command | Command |
Gets a storage item.
Kind: instance method of EnvoyPluginStoragePipeline
Param | Type |
---|---|
key | string |
Sets a value for a storage item, and returns that item.
Kind: instance method of EnvoyPluginStoragePipeline
Param | Type |
---|---|
key | string |
value |
Sets a unique value for a storage item, and returns that item.
Kind: instance method of EnvoyPluginStoragePipeline
Param | Type |
---|---|
key | string |
[options] | UniqueOptions |
Unsets a storage item.
Kind: instance method of EnvoyPluginStoragePipeline
Param | Type |
---|---|
key | string |
Kind: global typedef
Properties
Name | Type |
---|---|
key | string |
value |
Kind: global typedef
Properties
Name | Type | Description |
---|---|---|
action | string |
the type of command to run |
key | string |
the key to operate on |
Kind: global typedef
Properties
Name | Type | Default | Description |
---|---|---|---|
chars | string |
"\"0123456789\"" |
the possible characters to pick from |
size | number |
12 |
the length of the value |