plugincontext

package
v0.0.0-cloud Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 30, 2023 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

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.

func (*Provider) InvalidateSettingsCache

func (p *Provider) InvalidateSettingsCache(_ context.Context, pluginID string)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL