Licensing: Send map of environment variables to plugins (#30347)

Replace hard-coded `GF_ENTERPRISE_LICENSE_TEXT` with a
`map[string]string` to allow the licensing service to allow sending any
environment variable through to the plugins for licensing purposes.
This commit is contained in:
Emil Tullstedt
2021-01-18 14:42:39 +01:00
committed by GitHub
parent a246a26a2f
commit af27dd7e7d
4 changed files with 12 additions and 8 deletions
+4 -1
View File
@@ -16,6 +16,9 @@ type Licensing interface {
LicenseURL(user *SignedInUser) string
StateInfo() string
}
TokenRaw() string
type LicenseEnvironment interface {
// Environment is a map of environment variables
Environment() map[string]string
}