users

package
v0.0.0-...-5785f03 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UserState

type UserState struct {
	Id           string   `json:"id"`
	PasswordHash string   `json:"passwordHash,omitempty"`
	Roles        []string `json:"roles,omitempty"`
}

type UsersManager

type UsersManager struct {
	managers.Manager
	StateProvider states.IStateProvider
}

func (*UsersManager) CheckUser

func (t *UsersManager) CheckUser(ctx context.Context, name string, password string) ([]string, bool)

func (*UsersManager) DeleteUser

func (t *UsersManager) DeleteUser(ctx context.Context, name string) error

func (*UsersManager) Init

func (s *UsersManager) Init(context *contexts.VendorContext, config managers.ManagerConfig, providers map[string]providers.IProvider) error

func (*UsersManager) UpsertUser

func (t *UsersManager) UpsertUser(ctx context.Context, name string, password string, roles []string) error

Jump to

Keyboard shortcuts

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