auth

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: May 1, 2025 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRepository

func NewRepository(cfg *config.IdentityAuthConfig) *storage.Repository

Types

type UserDummyRepo

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

UserDummyRepo is used to disable the auth service by configuration

func NewUserDummyRepo

func NewUserDummyRepo() *UserDummyRepo

func (*UserDummyRepo) Create

func (r *UserDummyRepo) Create(_ context.Context, _ *entities.User, _ string, _ []string) (*entities.User, error)

func (*UserDummyRepo) GetAll

func (r *UserDummyRepo) GetAll(_ context.Context) ([]*entities.User, error)

func (*UserDummyRepo) GetAllByRole

func (r *UserDummyRepo) GetAllByRole(_ context.Context, role entities.UserRole) ([]*entities.User, error)

func (*UserDummyRepo) GetByIDs

func (r *UserDummyRepo) GetByIDs(_ context.Context, ids []string) ([]*entities.User, error)

func (*UserDummyRepo) RemoveSession

func (r *UserDummyRepo) RemoveSession(_ context.Context, _ string) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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