mirror of
https://github.com/grafana/grafana.git
synced 2025-07-31 07:52:21 +08:00
Plugins: Remove registry dependency from process manager (#73241)
simplify
This commit is contained in:
@ -1,10 +1,14 @@
|
||||
package process
|
||||
|
||||
import "context"
|
||||
import (
|
||||
"context"
|
||||
|
||||
type Service interface {
|
||||
"github.com/grafana/grafana/pkg/plugins"
|
||||
)
|
||||
|
||||
type Manager interface {
|
||||
// Start executes a backend plugin process.
|
||||
Start(ctx context.Context, pluginID string) error
|
||||
Start(ctx context.Context, p *plugins.Plugin) error
|
||||
// Stop terminates a backend plugin process.
|
||||
Stop(ctx context.Context, pluginID string) error
|
||||
Stop(ctx context.Context, p *plugins.Plugin) error
|
||||
}
|
||||
|
Reference in New Issue
Block a user