Documentation ¶
Index ¶
- Variables
- type Provider
- func (p *Provider) Get(ctx context.Context, pluginID string, user *user.SignedInUser, orgID int64) (backend.PluginContext, error)
- func (p *Provider) GetWithDataSource(ctx context.Context, pluginID string, user *user.SignedInUser, ...) (backend.PluginContext, error)
- func (p *Provider) InvalidateSettingsCache(_ context.Context, pluginID string)
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrPluginNotFound = errors.New("plugin not found")
Functions ¶
This section is empty.
Types ¶
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
func ProvideService ¶
func ProvideService(cacheService *localcache.CacheService, pluginStore plugins.Store, dataSourceService datasources.DataSourceService, pluginSettingsService pluginsettings.Service) *Provider
func (*Provider) Get ¶
func (p *Provider) Get(ctx context.Context, pluginID string, user *user.SignedInUser, orgID int64) (backend.PluginContext, error)
Get allows getting plugin context by its ID. If datasourceUID is not empty string then PluginContext.DataSourceInstanceSettings will be resolved and appended to returned context. Note: *user.SignedInUser can be nil.
func (*Provider) GetWithDataSource ¶
func (p *Provider) GetWithDataSource(ctx context.Context, pluginID string, user *user.SignedInUser, ds *datasources.DataSource) (backend.PluginContext, error)
GetWithDataSource allows getting plugin context by its ID and PluginContext.DataSourceInstanceSettings will be resolved and appended to the returned context. Note: *user.SignedInUser can be nil.
Click to show internal directories.
Click to hide internal directories.