Feature: Allow to install plugins through configuration (#91790)

This commit is contained in:
Andres Martinez Gotor
2024-08-13 16:57:55 +02:00
committed by GitHub
parent b03a709500
commit 9067797eb4
5 changed files with 226 additions and 13 deletions
+6
View File
@@ -198,6 +198,7 @@ type Cfg struct {
HideAngularDeprecation []string
PluginInstallToken string
ForwardHostEnvVars []string
InstallPlugins []InstallPlugin
PluginsCDNURLTemplate string
PluginLogBackendRequests bool
@@ -526,6 +527,11 @@ type Cfg struct {
UnifiedStorage map[string]grafanarest.DualWriterMode
}
type InstallPlugin struct {
ID string
Version string
}
// AddChangePasswordLink returns if login form is disabled or not since
// the same intention can be used to hide both features.
func (cfg *Cfg) AddChangePasswordLink() bool {