roles

package
v1.13.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 7, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ARole

type ARole struct {
	Name    rbac.RoleName `json:"name"`
	Objects []rbac.Object `json:"objects"`
}

type Action

type Action struct {
	Name  string  `json:"name"`
	Roles []ARole `json:"roles"`
}

type Role

type Role struct {
	Name        rbac.RoleName      `json:"name"`
	Permissions rbac.PermissionSet `json:"permissions"`
	Custom      bool               `json:"custom"`
}

type Scope

type Scope struct {
	Name    rbac.Scope  `json:"name"`
	Actions []rbac.Verb `json:"actions"`
}

type View

type View struct {
	Roles   []Role   `json:"roles"`
	Actions []Action `json:"actions"`
	Scopes  []Scope  `json:"scopes"`
}

func Render

func Render(roles []rbac.Role) *View

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL