diff options
author | Chocobozzz <me@florianbigard.com> | 2019-07-12 14:06:33 +0200 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2019-07-24 10:58:16 +0200 |
commit | b2195fafc292d6761c25fe51ca4e0328ab403424 (patch) | |
tree | 3c390aeb5c5b9648668961871e866bd5e1dde5a4 /shared/models/plugins/plugin-storage-manager.model.ts | |
parent | b5f919ac8eb2a1c20e26582fdfd377d687710d8f (diff) | |
download | PeerTube-b2195fafc292d6761c25fe51ca4e0328ab403424.tar.gz PeerTube-b2195fafc292d6761c25fe51ca4e0328ab403424.tar.zst PeerTube-b2195fafc292d6761c25fe51ca4e0328ab403424.zip |
WIP plugins: add storage manager
Diffstat (limited to 'shared/models/plugins/plugin-storage-manager.model.ts')
-rw-r--r-- | shared/models/plugins/plugin-storage-manager.model.ts | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/shared/models/plugins/plugin-storage-manager.model.ts b/shared/models/plugins/plugin-storage-manager.model.ts new file mode 100644 index 000000000..8a1f389f1 --- /dev/null +++ b/shared/models/plugins/plugin-storage-manager.model.ts | |||
@@ -0,0 +1,7 @@ | |||
1 | import * as Bluebird from 'bluebird' | ||
2 | |||
3 | export interface PluginStorageManager { | ||
4 | getData: (key: string) => Bluebird<string> | ||
5 | |||
6 | storeData: (key: string, data: any) => Bluebird<any> | ||
7 | } | ||