mocks

package
v0.0.0-...-52555ee Latest Latest
Warning

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

Go to latest
Published: May 14, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	mock.Mock
}

App is an autogenerated mock type for the App type

func (*App) CreateTenant

func (_m *App) CreateTenant(ctx context.Context, tenant model.NewTenant) error

CreateTenant provides a mock function with given fields: ctx, tenant

func (*App) CreateUser

func (_m *App) CreateUser(ctx context.Context, u *model.User) error

CreateUser provides a mock function with given fields: ctx, u

func (*App) CreateUserInternal

func (_m *App) CreateUserInternal(ctx context.Context, u *model.UserInternal) error

CreateUserInternal provides a mock function with given fields: ctx, u

func (*App) DeleteToken

func (_m *App) DeleteToken(ctx context.Context, id string) error

DeleteToken provides a mock function with given fields: ctx, id

func (*App) DeleteTokens

func (_m *App) DeleteTokens(ctx context.Context, tenantId string, userId string) error

DeleteTokens provides a mock function with given fields: ctx, tenantId, userId

func (*App) DeleteUser

func (_m *App) DeleteUser(ctx context.Context, id string) error

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

func (_m *App) GetPlanBinding(ctx context.Context) (*model.PlanBindingDetails, error)

GetPlanBinding provides a mock function with given fields: ctx

func (*App) GetPlans

func (_m *App) GetPlans(ctx context.Context, skip int, limit int) []model.Plan

GetPlans provides a mock function with given fields: ctx, skip, limit

func (*App) GetUser

func (_m *App) GetUser(ctx context.Context, id string) (*model.User, error)

GetUser provides a mock function with given fields: ctx, id

func (*App) GetUsers

func (_m *App) GetUsers(ctx context.Context, fltr model.UserFilter) ([]model.User, error)

GetUsers provides a mock function with given fields: ctx, fltr

func (*App) HealthCheck

func (_m *App) HealthCheck(ctx context.Context) error

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) Logout

func (_m *App) Logout(ctx context.Context, token *jwt.Token) error

Logout provides a mock function with given fields: ctx, token

func (*App) SetPassword

func (_m *App) SetPassword(ctx context.Context, u model.UserUpdate) error

SetPassword provides a mock function with given fields: ctx, u

func (*App) SignToken

func (_m *App) SignToken(ctx context.Context, t *jwt.Token) (string, error)

SignToken provides a mock function with given fields: ctx, t

func (*App) UpdateUser

func (_m *App) UpdateUser(ctx context.Context, id string, u *model.UserUpdate) error

UpdateUser provides a mock function with given fields: ctx, id, u

func (*App) Verify

func (_m *App) Verify(ctx context.Context, token *jwt.Token) error

Verify provides a mock function with given fields: ctx, token

Jump to

Keyboard shortcuts

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