Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsGlobalScope ¶
Types ¶
type Action ¶
type Action string
func (*Action) UnmarshalJSON ¶
type Permission ¶
type Permission struct {
// Actions of the permission (read, create, update, delete, ...)
Actions []Action `json:"actions" yaml:"actions"`
// The list of kind targeted by the permission. For example: `Datasource`, `Dashboard`, ...
// With Role, you can't target global kinds
Scopes []Scope `json:"scopes" yaml:"scopes"`
}
func (*Permission) UnmarshalJSON ¶
func (p *Permission) UnmarshalJSON(data []byte) error
func (*Permission) UnmarshalYAML ¶
func (p *Permission) UnmarshalYAML(unmarshal func(any) error) error
type Scope ¶
type Scope string
const ( DashboardScope Scope = "Dashboard" DatasourceScope Scope = "Datasource" EphemeralDashboardScope Scope = "EphemeralDashboard" FolderScope Scope = "Folder" GlobalDatasourceScope Scope = "GlobalDatasource" GlobalRoleScope Scope = "GlobalRole" GlobalRoleBindingScope Scope = "GlobalRoleBinding" GlobalSecretScope Scope = "GlobalSecret" GlobalVariableScope Scope = "GlobalVariable" ProjectScope Scope = "Project" RoleScope Scope = "Role" RoleBindingScope Scope = "RoleBinding" SecretScope Scope = "Secret" UserScope Scope = "User" VariableScope Scope = "Variable" WildcardScope Scope = "*" )
func (*Scope) UnmarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.