* Authz: Switch to remotecache * Todos * lint * lint test * test readibility * Remove ttls * implement a cache wrap * Rm unused func * Comment * Update workspace: * Use cache * Fix comment
32 lines
606 B
Go
32 lines
606 B
Go
package rbac
|
|
|
|
import claims "github.com/grafana/authlib/types"
|
|
|
|
type CheckRequest struct {
|
|
Namespace claims.NamespaceInfo
|
|
IdentityType claims.IdentityType
|
|
UserUID string
|
|
Action string
|
|
Group string
|
|
Resource string
|
|
Verb string
|
|
Name string
|
|
ParentFolder string
|
|
}
|
|
|
|
type ListRequest struct {
|
|
Namespace claims.NamespaceInfo
|
|
IdentityType claims.IdentityType
|
|
UserUID string
|
|
Group string
|
|
Resource string
|
|
Verb string
|
|
Action string
|
|
}
|
|
|
|
type FolderNode struct {
|
|
UID string
|
|
ParentUID *string
|
|
ChildrenUIDs []string
|
|
}
|