Refactor plugin context initialization (#88343)

This commit is contained in:
Andres Martinez Gotor
2024-05-28 15:59:06 +02:00
committed by GitHub
parent ecfe50439b
commit 60ce523b72
9 changed files with 164 additions and 159 deletions

View File

@ -43,6 +43,7 @@ import (
"github.com/grafana/grafana/pkg/services/pluginsintegration/loader"
"github.com/grafana/grafana/pkg/services/pluginsintegration/pipeline"
"github.com/grafana/grafana/pkg/services/pluginsintegration/pluginconfig"
"github.com/grafana/grafana/pkg/services/pluginsintegration/plugincontext"
"github.com/grafana/grafana/pkg/services/pluginsintegration/pluginerrs"
"github.com/grafana/grafana/pkg/services/pluginsintegration/pluginexternal"
"github.com/grafana/grafana/pkg/services/pluginsintegration/pluginsettings"
@ -120,6 +121,8 @@ var WireSet = wire.NewSet(
renderer.ProvideService,
wire.Bind(new(rendering.PluginManager), new(*renderer.Manager)),
pluginexternal.ProvideService,
plugincontext.ProvideBaseService,
wire.Bind(new(plugincontext.BasePluginContextProvider), new(*plugincontext.BaseProvider)),
)
// WireExtensionSet provides a wire.ProviderSet of plugin providers that can be