data

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

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 DefaultRolesAndMappingsData added in v0.9.0

type DefaultRolesAndMappingsData struct {
	Roles    []authzcore.Role                   `yaml:"roles"`
	Mappings []authzcore.RoleEntitlementMapping `yaml:"mappings"`
}

DefaultRolesAndMappingsData represents the structure of the default roles and mappings data file

func LoadDefaultAuthzDataFromFile added in v0.9.0

func LoadDefaultAuthzDataFromFile(filePath string) (*DefaultRolesAndMappingsData, error)

LoadDefaultAuthzDataFromFile loads both roles and mappings from a file with the following priority: 1. If filePath is provided, load from file 2. else, fall back to embedded default data

func LoadEmbeddedAuthzData added in v0.9.0

func LoadEmbeddedAuthzData() (*DefaultRolesAndMappingsData, error)

LoadEmbeddedAuthzData loads the embedded default roles and mappings

Jump to

Keyboard shortcuts

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