users

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: May 14, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Users

type Users map[model.Identifier]*model.User

func From added in v1.2.2

func From(users Users) Users

func (Users) Authenticate

func (u Users) Authenticate(userID model.Identifier, hashedPassword string) bool

func (Users) CheckIfExists

func (u Users) CheckIfExists(userID model.Identifier) (bool, *model.User)

func (Users) CreateUser

func (u Users) CreateUser(userID model.Identifier, hashedPassword string, hashingAlgorithm string, metadata model.Metadata)

func (Users) GetUser

func (u Users) GetUser(userID model.Identifier) *model.User

func (Users) GrantRole

func (u Users) GrantRole(userID model.Identifier, permissions model.Permissions)

func (Users) Permission

func (u Users) Permission(userID model.Identifier) []model.Permissions

func (Users) RevokeRole added in v1.3.3

func (u Users) RevokeRole(userID model.Identifier, permissionToRevoke model.Permissions) int

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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