From 8c03e584c182218c84bebc8af23c70fb0cd203d4 Mon Sep 17 00:00:00 2001 From: Shobhit Gupta Date: Wed, 3 Oct 2018 13:04:37 -0700 Subject: MM-11863 Add KVList method (#9467) * Add KVList method * Add KVList method Add KVList method * Add pagination support * Change offset, limit to page, perPage * Rename constant --- plugin/api.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'plugin/api.go') diff --git a/plugin/api.go b/plugin/api.go index c4230860f..b85160940 100644 --- a/plugin/api.go +++ b/plugin/api.go @@ -196,6 +196,9 @@ type API interface { // KVDelete will remove a key-value pair. Returns nil for non-existent keys. KVDelete(key string) *model.AppError + // KVList will list all keys for a plugin. + KVList(page, perPage int) ([]string, *model.AppError) + // PublishWebSocketEvent sends an event to WebSocket connections. // event is the type and will be prepended with "custom__" // payload is the data sent with the event. Interface values must be primitive Go types or mattermost-server/model types -- cgit v1.2.3-1-g7c22