Documentation ¶
Index ¶
- type DBPrincipalManager
- func (manager *DBPrincipalManager) ChangePassword(ctx context.Context, username string, password string) error
- func (manager *DBPrincipalManager) Create(ctx context.Context, principal *feather_security.Principal) error
- func (manager *DBPrincipalManager) Delete(ctx context.Context, username string) error
- func (manager *DBPrincipalManager) Exists(ctx context.Context, username string) error
- func (manager *DBPrincipalManager) Find(ctx context.Context, username string) (*feather_security.Principal, error)
- func (manager *DBPrincipalManager) Update(ctx context.Context, principal *feather_security.Principal) error
- func (manager *DBPrincipalManager) Upsert(ctx context.Context, principal *feather_security.Principal, mode string) error
- func (manager *DBPrincipalManager) VerifyResource(ctx context.Context, username string, resource string) error
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 (*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 ¶
Click to show internal directories.
Click to hide internal directories.