acbbfde256
* expand AuthZ service logic to also evaluate action sets * handle folder creation * fix test * simplify mapper code Co-authored-by: gamab <gabi.mabs@gmail.com> * more accurate variable name Co-authored-by: gamab <gabi.mabs@gmail.com> * break alerting import cycle * Apply suggestion from @gamab --------- Co-authored-by: gamab <gabi.mabs@gmail.com> Co-authored-by: Gabriel MABILLE <gamab@users.noreply.github.com>
33 lines
683 B
Go
33 lines
683 B
Go
package rbac
|
|
|
|
import claims "github.com/grafana/authlib/types"
|
|
|
|
type checkRequest struct {
|
|
Namespace claims.NamespaceInfo
|
|
IdentityType claims.IdentityType
|
|
UserUID string
|
|
Action string // Verb has been mapped into an action
|
|
ActionSets []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
|
|
ActionSets []string
|
|
Options *ListRequestOptions
|
|
}
|
|
|
|
type ListRequestOptions struct {
|
|
SkipCache bool
|
|
}
|