mirror of
https://github.com/grafana/grafana.git
synced 2024-12-02 13:39:19 -06:00
162dde5bdd
* plugin dir suffix * fix whitespace * fix cli * fix tests * fixup * simplify * undo uninstall changes
13 lines
275 B
Go
13 lines
275 B
Go
package storage
|
|
|
|
import (
|
|
"archive/zip"
|
|
"context"
|
|
)
|
|
|
|
type ZipExtractor interface {
|
|
Extract(ctx context.Context, pluginID string, destDir DirNameGeneratorFunc, rc *zip.ReadCloser) (*ExtractedPluginArchive, error)
|
|
}
|
|
|
|
type DirNameGeneratorFunc = func(pluginID string) string
|