7329d2c34b
* Extract "PermissionStore" from general store interface * Add static and union permission stores * Add GetStaticRoles * Use accesscontrol.Service for inproc to provide static permissions
40 lines
467 B
Go
40 lines
467 B
Go
package store
|
|
|
|
type UserIdentifiers struct {
|
|
ID int64
|
|
UID string
|
|
}
|
|
|
|
type BasicRole struct {
|
|
Role string
|
|
IsAdmin bool
|
|
}
|
|
|
|
type BasicRoleQuery struct {
|
|
UserID int64
|
|
OrgID int64
|
|
}
|
|
|
|
type UserIdentifierQuery struct {
|
|
UserID int64
|
|
UserUID string
|
|
}
|
|
|
|
type FolderQuery struct {
|
|
OrgID int64
|
|
}
|
|
|
|
type DashboardQuery struct {
|
|
OrgID int64
|
|
}
|
|
|
|
type Folder struct {
|
|
UID string
|
|
ParentUID *string
|
|
}
|
|
|
|
type Dashboard struct {
|
|
UID string
|
|
ParentUID *string
|
|
}
|