package
1.5.6
Repository: https://github.com/fragmenta/auth.git
Documentation: pkg.go.dev

# Functions

Authorise adds this ability to the list of abilities for this role.
AuthoriseOwner adds this ability to the list of abilities for this role for resources owned by this user.
Create returns an error if this action is not authorised for this user.
Destroy returns an error if this action is not authorised for this user.
Do returns an error if this action is not allowed, or nil if it is allowed.
List returns an error if this action is not authorised for this user.
Manage returns an error if all actions are not authorised for this user.
Show returns an error if this action is not authorised for this user.
Update returns an error if this action is not authorised for this user.

# Constants

Allow actions on any resource.
Does not check ownership.
Verbs used to authorise actions on resources.
Does not check ownership.
Verbs used to authorise actions on resources.
Verbs used to authorise actions on resources.
Verbs used to authorise actions on resources.

# Structs

Ability represents an authorisation for an action for a given role.

# Interfaces

Resource defines the interface for resources.
User defines the interface for users which must have numeric roles.

# Type aliases

Verb represents the action taken on resources.