Licensing: Send the app url to plugin (#64258)

This commit is contained in:
lean.dev
2023-03-08 14:44:04 -03:00
committed by GitHub
parent 4625958aea
commit 0b0140b761
5 changed files with 18 additions and 2 deletions
+5
View File
@@ -322,6 +322,7 @@ type FakeLicensingService struct {
LicenseEdition string
TokenRaw string
LicensePath string
LicenseAppURL string
}
func NewFakeLicensingService() *FakeLicensingService {
@@ -336,6 +337,10 @@ func (s *FakeLicensingService) Path() string {
return s.LicensePath
}
func (s *FakeLicensingService) AppURL() string {
return s.LicenseAppURL
}
func (s *FakeLicensingService) Environment() []string {
return []string{fmt.Sprintf("GF_ENTERPRISE_LICENSE_TEXT=%s", s.TokenRaw)}
}