Plugins: Introduce plugin asset provider (#108063)

* introduce plugin asset provider

* simply with PR feedback

* fix linter
This commit is contained in:
Will Browne
2025-07-17 16:20:35 +01:00
committed by GitHub
parent 8548530dc4
commit f6ed9e6ff0
20 changed files with 443 additions and 114 deletions
@@ -21,7 +21,7 @@ func ProvideLicensing(cfg *setting.Cfg, l licensing.Licensing) *Service {
}
}
func (l Service) Environment() []string {
func (l *Service) Environment() []string {
var env []string
if envProvider, ok := l.license.(licensing.LicenseEnvironment); ok {
for k, v := range envProvider.Environment() {
@@ -31,14 +31,18 @@ func (l Service) Environment() []string {
return env
}
func (l Service) Edition() string {
func (l *Service) Edition() string {
return l.license.Edition()
}
func (l Service) Path() string {
func (l *Service) Path() string {
return l.licensePath
}
func (l Service) AppURL() string {
func (l *Service) AppURL() string {
return l.appURL
}
func (l *Service) ContentDeliveryPrefix() string {
return l.license.ContentDeliveryPrefix()
}