mirror of
https://github.com/grafana/grafana.git
synced 2025-02-16 18:34:52 -06:00
* refactor: fix displayname and description for serviceaccount role * add: ActionWrite, ActionCreate * refactor: update description
16 lines
404 B
Go
16 lines
404 B
Go
package serviceaccounts
|
|
|
|
import "github.com/grafana/grafana/pkg/services/accesscontrol"
|
|
|
|
var (
|
|
ScopeAll = "serviceaccounts:*"
|
|
ScopeID = accesscontrol.Scope("serviceaccounts", "id", accesscontrol.Parameter(":serviceaccountId"))
|
|
)
|
|
|
|
const (
|
|
ActionRead = "serviceaccounts:read"
|
|
ActionWrite = "serviceaccounts:write"
|
|
ActionCreate = "serviceaccounts:create"
|
|
ActionDelete = "serviceaccounts:delete"
|
|
)
|