pluginutils

package
v11.1.4-modfix Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2024 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PluginIDFromName

func PluginIDFromName(roleName string) string

PluginIDFromName extracts the plugin ID from the role name

func ToRegistrations

func ToRegistrations(pluginID, pluginName string, regs []plugins.RoleRegistration) []ac.RoleRegistration

func ValidatePluginPermissions

func ValidatePluginPermissions(pluginID string, permissions []ac.Permission) error

ValidatePluginPermissions errors when a permission does not match expected pattern for plugins

func ValidatePluginRole

func ValidatePluginRole(pluginID string, role ac.RoleDTO) error

ValidatePluginRole errors when a plugin role does not match expected pattern or doesn't have permissions matching the expected pattern.

Types

This section is empty.

Jump to

Keyboard shortcuts

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