Files
grafana/pkg/plugins/manager/loader/ifaces.go
T

16 lines
453 B
Go
Raw Normal View History

2022-06-03 13:06:27 +02:00
package loader
import (
"context"
"github.com/grafana/grafana/pkg/plugins"
)
// Service is responsible for loading plugins from the file system.
type Service interface {
// Load will return a list of plugins found in the provided file system paths.
Load(ctx context.Context, src plugins.PluginSource) ([]*plugins.Plugin, error)
// Unload will unload a specified plugin from the file system.
Unload(ctx context.Context, pluginID string) error
2022-06-03 13:06:27 +02:00
}