/
githubmirror
/
grafana
Обзор
Документация
Войти
/
githubmirror
/
grafana
Код
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
pkg/plugins/auth/models.go
31 строка
844 B
Gabriel MABILLE
Plugins: Add RBAC Cleanup to Uninstall process (#122120)
09 апр 2026, 10:53
Не верифицирован
09 апр 2026, 10:53
5f29e80
Код
Авторство
О чём код?
package auth import ( "context" ) type ExternalService struct { ClientID string `json:"clientId"` ClientSecret string `json:"clientSecret"` PrivateKey string `json:"privateKey"` } type IAM struct { Permissions []Permission `json:"permissions,omitempty"` } type Permission struct { Action string `json:"action"` Scope string `json:"scope"` } type ExternalServiceRegistry interface { HasExternalService(ctx context.Context, pluginID string) (bool, error) RegisterExternalService(ctx context.Context, pluginID string, pType string, svc *IAM) (*ExternalService, error) RemoveExternalService(ctx context.Context, pluginID string) error } // RBACCleanered to clean up RBAC data associated with plugins when they are uninstalled. type RBACCleaner interface { CleanupPluginRBAC(ctx context.Context, pluginIDs ...string) error }