3
0
mirror of https://github.com/grafana/grafana.git synced 2025-02-25 18:55:37 -06:00
grafana/pkg/plugins/storage/ifaces.go

13 lines
275 B
Go
Raw Normal View History

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