data

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadEmbeddedRoles

func LoadEmbeddedRoles() ([]authzcore.Role, error)

LoadEmbeddedRoles loads the embedded default roles

func LoadRolesFromFile

func LoadRolesFromFile(filePath string) ([]authzcore.Role, error)

LoadRolesFromFile loads roles with the following priority: 1. If filePath is provided, load from file 2. else, fall back to embedded default roles

Types

type ActionData added in v0.8.0

type ActionData struct {
	Name       string
	IsInternal bool
}

ActionData represents an action name and whether it is visibility

func LoadActions

func LoadActions() ([]ActionData, error)

LoadActions returns the system-defined actions

type RolesData

type RolesData struct {
	Roles []authzcore.Role `yaml:"roles"`
}

RolesData represents the structure of the roles data file

Jump to

Keyboard shortcuts

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