Documentation ¶
Overview ¶
package pluginsintegration instantiate the plugins package (pkg/plugins) and all of its services/dependencies that Grafana needs to provide plugin support.
Index ¶
- Variables
- func CreateMiddlewares(cfg *setting.Cfg, oAuthTokenService oauthtoken.OAuthTokenService, ...) []plugins.ClientMiddleware
- func CreateTestLoader(t *testing.T, cfg *pluginsCfg.Cfg, opts LoaderOpts) *loader.Loader
- func NewClientDecorator(cfg *setting.Cfg, pCfg *pCfg.Cfg, pluginRegistry registry.Service, ...) (*client.Decorator, error)
- func ProvideClientDecorator(cfg *setting.Cfg, pCfg *pCfg.Cfg, pluginRegistry registry.Service, ...) (*client.Decorator, error)
- type IntegrationTestCtx
- type LoaderOpts
Constants ¶
This section is empty.
Variables ¶
View Source
var WireExtensionSet = wire.NewSet( provider.ProvideService, wire.Bind(new(plugins.BackendFactoryProvider), new(*provider.Service)), signature.ProvideOSSAuthorizer, wire.Bind(new(plugins.PluginLoaderAuthorizer), new(*signature.UnsignedPluginAuthorizer)), wire.Bind(new(finder.Finder), new(*finder.Local)), finder.ProvideLocalFinder, )
WireExtensionSet provides a wire.ProviderSet of plugin providers that can be extended.
View Source
var WireSet = wire.NewSet( config.ProvideConfig, store.ProvideService, wire.Bind(new(plugins.Store), new(*store.Service)), wire.Bind(new(plugins.RendererManager), new(*store.Service)), wire.Bind(new(plugins.SecretsPluginManager), new(*store.Service)), wire.Bind(new(plugins.StaticRouteResolver), new(*store.Service)), ProvideClientDecorator, wire.Bind(new(plugins.Client), new(*client.Decorator)), process.ProvideService, wire.Bind(new(process.Manager), new(*process.Service)), coreplugin.ProvideCoreRegistry, pluginscdn.ProvideService, assetpath.ProvideService, pipeline.ProvideDiscoveryStage, wire.Bind(new(discovery.Discoverer), new(*discovery.Discovery)), pipeline.ProvideBootstrapStage, wire.Bind(new(bootstrap.Bootstrapper), new(*bootstrap.Bootstrap)), pipeline.ProvideInitializationStage, wire.Bind(new(initialization.Initializer), new(*initialization.Initialize)), pipeline.ProvideTerminationStage, wire.Bind(new(termination.Terminator), new(*termination.Terminate)), pipeline.ProvideValidationStage, wire.Bind(new(validation.Validator), new(*validation.Validate)), angularpatternsstore.ProvideService, angulardetectorsprovider.ProvideDynamic, angularinspector.ProvideService, wire.Bind(new(pAngularInspector.Inspector), new(*angularinspector.Service)), signature.ProvideValidatorService, wire.Bind(new(signature.Validator), new(*signature.Validation)), loader.ProvideService, wire.Bind(new(pluginLoader.Service), new(*loader.Loader)), pluginerrs.ProvideSignatureErrorTracker, wire.Bind(new(pluginerrs.SignatureErrorTracker), new(*pluginerrs.SignatureErrorRegistry)), pluginerrs.ProvideStore, wire.Bind(new(plugins.ErrorResolver), new(*pluginerrs.Store)), manager.ProvideInstaller, wire.Bind(new(plugins.Installer), new(*manager.PluginInstaller)), registry.ProvideService, wire.Bind(new(registry.Service), new(*registry.InMemory)), repo.ProvideService, wire.Bind(new(repo.Service), new(*repo.Manager)), plugincontext.ProvideService, licensing.ProvideLicensing, wire.Bind(new(plugins.Licensing), new(*licensing.Service)), wire.Bind(new(sources.Registry), new(*sources.Service)), sources.ProvideService, pluginSettings.ProvideService, wire.Bind(new(pluginsettings.Service), new(*pluginSettings.Service)), filestore.ProvideService, wire.Bind(new(plugins.FileStore), new(*filestore.Service)), wire.Bind(new(plugins.SignatureCalculator), new(*signature.Signature)), signature.ProvideService, wire.Bind(new(plugins.KeyStore), new(*keystore.Service)), keystore.ProvideService, wire.Bind(new(plugins.KeyRetriever), new(*keyretriever.Service)), keyretriever.ProvideService, dynamic.ProvideService, serviceregistration.ProvideService, wire.Bind(new(oauth.ExternalServiceRegistry), new(*serviceregistration.Service)), )
WireSet provides a wire.ProviderSet of plugin providers.
Functions ¶
func CreateMiddlewares ¶
func CreateMiddlewares(cfg *setting.Cfg, oAuthTokenService oauthtoken.OAuthTokenService, tracer tracing.Tracer, cachingService caching.CachingService, features *featuremgmt.FeatureManager) []plugins.ClientMiddleware
func CreateTestLoader ¶
func CreateTestLoader(t *testing.T, cfg *pluginsCfg.Cfg, opts LoaderOpts) *loader.Loader
func NewClientDecorator ¶
func NewClientDecorator( cfg *setting.Cfg, pCfg *pCfg.Cfg, pluginRegistry registry.Service, oAuthTokenService oauthtoken.OAuthTokenService, tracer tracing.Tracer, cachingService caching.CachingService, features *featuremgmt.FeatureManager, ) (*client.Decorator, error)
func ProvideClientDecorator ¶
func ProvideClientDecorator( cfg *setting.Cfg, pCfg *pCfg.Cfg, pluginRegistry registry.Service, oAuthTokenService oauthtoken.OAuthTokenService, tracer tracing.Tracer, cachingService caching.CachingService, features *featuremgmt.FeatureManager, ) (*client.Decorator, error)
Types ¶
type IntegrationTestCtx ¶
type IntegrationTestCtx struct { PluginClient plugins.Client PluginStore *store.Service PluginRegistry registry.Service }
func CreateIntegrationTestCtx ¶
func CreateIntegrationTestCtx(t *testing.T, cfg *setting.Cfg, coreRegistry *coreplugin.Registry) *IntegrationTestCtx
type LoaderOpts ¶
type LoaderOpts struct { Discoverer discovery.Discoverer Bootstrapper bootstrap.Bootstrapper Validator validation.Validator Terminator termination.Terminator Initializer initialization.Initializer }
Directories ¶
Path | Synopsis |
---|---|
Package adapters contains plugin SDK adapters.
|
Package adapters contains plugin SDK adapters. |
Click to show internal directories.
Click to hide internal directories.