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
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
Click to show internal directories.
Click to hide internal directories.