role

package
v0.0.0-...-5ff450b Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const Anonymous = "ANONYMOUS"
View Source
const User = "USER"

Variables

This section is empty.

Functions

This section is empty.

Types

type Role

type Role struct {
	Name string
	// contains filtered or unexported fields
}

Role represents a users role and permissions in the system.

func Get

func Get(name string) (Role, bool)

func (Role) HasScope

func (r Role) HasScope(scope scope.Scope) bool

HasScope checks if a role has a specific scope

Jump to

Keyboard shortcuts

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