Documentation
¶
Index ¶
- type App
- func (_m *App) CreateTenant(ctx context.Context, tenant model.NewTenant) error
- func (_m *App) CreateUser(ctx context.Context, u *model.User) error
- func (_m *App) CreateUserInternal(ctx context.Context, u *model.UserInternal) error
- func (_m *App) DeleteToken(ctx context.Context, id string) error
- func (_m *App) DeleteTokens(ctx context.Context, tenantId string, userId string) error
- func (_m *App) DeleteUser(ctx context.Context, id string) error
- func (_m *App) GetPersonalAccessTokens(ctx context.Context, userID string) ([]model.PersonalAccessToken, error)
- func (_m *App) GetPlanBinding(ctx context.Context) (*model.PlanBindingDetails, error)
- func (_m *App) GetPlans(ctx context.Context, skip int, limit int) []model.Plan
- func (_m *App) GetUser(ctx context.Context, id string) (*model.User, error)
- func (_m *App) GetUsers(ctx context.Context, fltr model.UserFilter) ([]model.User, error)
- func (_m *App) HealthCheck(ctx context.Context) error
- func (_m *App) IssuePersonalAccessToken(ctx context.Context, tr *model.TokenRequest) (string, error)
- func (_m *App) Login(ctx context.Context, email model.Email, pass string, ...) (*jwt.Token, error)
- func (_m *App) Logout(ctx context.Context, token *jwt.Token) error
- func (_m *App) SetPassword(ctx context.Context, u model.UserUpdate) error
- func (_m *App) SignToken(ctx context.Context, t *jwt.Token) (string, error)
- func (_m *App) UpdateUser(ctx context.Context, id string, u *model.UserUpdate) error
- func (_m *App) Verify(ctx context.Context, token *jwt.Token) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type App ¶
App is an autogenerated mock type for the App type
func (*App) CreateTenant ¶
CreateTenant provides a mock function with given fields: ctx, tenant
func (*App) CreateUser ¶
CreateUser provides a mock function with given fields: ctx, u
func (*App) CreateUserInternal ¶
CreateUserInternal provides a mock function with given fields: ctx, u
func (*App) DeleteToken ¶
DeleteToken provides a mock function with given fields: ctx, id
func (*App) DeleteTokens ¶
DeleteTokens provides a mock function with given fields: ctx, tenantId, userId
func (*App) DeleteUser ¶
DeleteUser provides a mock function with given fields: ctx, id
func (*App) GetPersonalAccessTokens ¶
func (_m *App) GetPersonalAccessTokens(ctx context.Context, userID string) ([]model.PersonalAccessToken, error)
GetPersonalAccessTokens provides a mock function with given fields: ctx, userID
func (*App) GetPlanBinding ¶
GetPlanBinding provides a mock function with given fields: ctx
func (*App) HealthCheck ¶
HealthCheck provides a mock function with given fields: ctx
func (*App) IssuePersonalAccessToken ¶
func (_m *App) IssuePersonalAccessToken(ctx context.Context, tr *model.TokenRequest) (string, error)
IssuePersonalAccessToken provides a mock function with given fields: ctx, tr
func (*App) Login ¶
func (_m *App) Login(ctx context.Context, email model.Email, pass string, options *useradm.LoginOptions) (*jwt.Token, error)
Login provides a mock function with given fields: ctx, email, pass, options
func (*App) SetPassword ¶
SetPassword provides a mock function with given fields: ctx, u
func (*App) UpdateUser ¶
UpdateUser provides a mock function with given fields: ctx, id, u