mirror of
https://github.com/grafana/grafana.git
synced 2025-08-02 17:42:12 +08:00
Plugins: Add tailored interface for plugins licensing needs (#61045)
* tailored licensing service * appease linter * fix * retrigger
This commit is contained in:
@ -75,6 +75,14 @@ type PluginLoaderAuthorizer interface {
|
||||
CanLoadPlugin(plugin *Plugin) bool
|
||||
}
|
||||
|
||||
type Licensing interface {
|
||||
Environment() []string
|
||||
|
||||
Edition() string
|
||||
|
||||
Path() string
|
||||
}
|
||||
|
||||
// RoleRegistry handles the plugin RBAC roles and their assignments
|
||||
type RoleRegistry interface {
|
||||
DeclarePluginRoles(ctx context.Context, ID, name string, registrations []RoleRegistration) error
|
||||
|
Reference in New Issue
Block a user