mirror of
https://github.com/grafana/grafana.git
synced 2025-02-03 20:21:01 -06:00
3c50db328d
* installer is responsible for removing from file system * take plugin as arg * remove resolve step * return plugin in test
16 lines
474 B
Go
16 lines
474 B
Go
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, p *plugins.Plugin) (*plugins.Plugin, error)
|
|
}
|