AuthZ: Scope resolution (#107948)

* AuthZ: Scope resolution

* Account for PR feedback

Co-authored-by: Ieva <ieva.vasiljeva@grafana.com>
This commit is contained in:
Gabriel MABILLE
2025-07-17 14:34:10 +02:00
committed by GitHub
co-authored by Ieva
parent c6ebefdfb6
commit 4b217c601a
6 changed files with 379 additions and 17 deletions
+4
View File
@@ -45,6 +45,10 @@ func folderCacheKey(namespace string) string {
return namespace + ".folders"
}
func teamIDsCacheKey(namespace string) string {
return namespace + ".teams"
}
type cacheWrap[T any] interface {
Get(ctx context.Context, key string) (T, bool)
Set(ctx context.Context, key string, value T)