Documentation ¶
Index ¶
- type Provider
- func (p *Provider) Get(ctx context.Context, pluginID string, user *user.SignedInUser) (backend.PluginContext, bool, error)
- func (p *Provider) GetWithDataSource(ctx context.Context, pluginID string, user *user.SignedInUser, ...) (backend.PluginContext, bool, error)
- func (p *Provider) InvalidateSettingsCache(_ context.Context, pluginID string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
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, dataSourceCache datasources.CacheService, dataSourceService datasources.DataSourceService, pluginSettingsService pluginsettings.Service) *Provider
func (*Provider) Get ¶
func (p *Provider) Get(ctx context.Context, pluginID string, user *user.SignedInUser) (backend.PluginContext, bool, 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.
func (*Provider) GetWithDataSource ¶
func (p *Provider) GetWithDataSource(ctx context.Context, pluginID string, user *user.SignedInUser, ds *datasources.DataSource) (backend.PluginContext, bool, error)
GetWithDataSource allows getting plugin context by its ID and PluginContext.DataSourceInstanceSettings will be resolved and appended to the returned context.
Click to show internal directories.
Click to hide internal directories.