Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNotAuthorized = errors.New("not authorized") ErrInvalidAction = errors.New("invalid action") )
View Source
var (
PolicyRegistry = make(map[string]Policy[any])
)
PolicyRegistry is a map of policy names to policies. Where the name is the type associated withthe policy.
Functions ¶
func PolicyExists ¶
PolicyExists returns true if a policy exists in the PolicyRegistry.
Types ¶
Click to show internal directories.
Click to hide internal directories.