Documentation ¶
Index ¶
- type FakePluginStore
- type Plugin
- type Service
- func (s *Service) Plugin(ctx context.Context, pluginID string) (Plugin, bool)
- func (s *Service) Plugins(ctx context.Context, pluginTypes ...plugins.Type) []Plugin
- func (s *Service) Routes(ctx context.Context) []*plugins.StaticRoute
- func (s *Service) Run(ctx context.Context) error
- func (s *Service) SecretsManager(ctx context.Context) *plugins.Plugin
- type Store
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakePluginStore ¶
type FakePluginStore struct {
PluginList []Plugin
}
func NewFakePluginStore ¶
func NewFakePluginStore(ps ...Plugin) *FakePluginStore
type Plugin ¶
type Plugin struct { plugins.JSONData Class plugins.Class // App fields IncludedInAppID string Pinned bool // Signature fields Signature plugins.SignatureStatus SignatureType plugins.SignatureType SignatureOrg string Error *plugins.Error // SystemJS fields Module string BaseURL string Angular plugins.AngularMeta ExternalService *auth.ExternalService // contains filtered or unexported fields }
func ToGrafanaDTO ¶
func (Plugin) IsCorePlugin ¶
func (Plugin) SupportsStreaming ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func ProvideService ¶
type Store ¶
type Store interface { // Plugin finds a plugin by its ID. // Note: version is not required since Grafana only supports single versions of a plugin. Plugin(ctx context.Context, pluginID string) (Plugin, bool) // Plugins returns plugins by their requested type. Plugins(ctx context.Context, pluginTypes ...plugins.Type) []Plugin }
Store is the publicly accessible storage for plugins.
Click to show internal directories.
Click to hide internal directories.