* Refactor folder tree to its own structure * Make it possible to json encode the tree * Use iterations for Ancestors and Children --------- Co-authored-by: IevaVasiljeva <ieva.vasiljeva@grafana.com>
26 lines
512 B
Go
26 lines
512 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
|
|
}
|