service

package
v0.0.0-...-ebb038d Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DBPrincipalManager

type DBPrincipalManager struct {
	// contains filtered or unexported fields
}

func NewDBPrincipalManager

func NewDBPrincipalManager(transactionHandler feather_sql_datasource.TransactionHandler, passwordManager feather_security.PasswordManager, repository repositories.Repository) *DBPrincipalManager

func (*DBPrincipalManager) ChangePassword

func (manager *DBPrincipalManager) ChangePassword(ctx context.Context, username string, password string) error

func (*DBPrincipalManager) Create

func (manager *DBPrincipalManager) Create(ctx context.Context, principal *feather_security.Principal) error

func (*DBPrincipalManager) Delete

func (manager *DBPrincipalManager) Delete(ctx context.Context, username string) error

func (*DBPrincipalManager) Exists

func (manager *DBPrincipalManager) Exists(ctx context.Context, username string) error

func (*DBPrincipalManager) Find

func (manager *DBPrincipalManager) Find(ctx context.Context, username string) (*feather_security.Principal, error)

func (*DBPrincipalManager) Update

func (manager *DBPrincipalManager) Update(ctx context.Context, principal *feather_security.Principal) error

func (*DBPrincipalManager) Upsert

func (manager *DBPrincipalManager) Upsert(ctx context.Context, principal *feather_security.Principal, mode string) error

func (*DBPrincipalManager) VerifyResource

func (manager *DBPrincipalManager) VerifyResource(ctx context.Context, username string, resource string) error

Jump to

Keyboard shortcuts

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