Plugins: Remove registry dependency from process manager (#73241)

simplify
This commit is contained in:
Will Browne
2023-08-16 10:46:00 +02:00
committed by GitHub
parent d935e6ff57
commit 75b0788377
16 changed files with 202 additions and 221 deletions

View File

@ -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
}