mocks

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controllers

type Controllers struct {
	mock.Mock
}

Controllers is an autogenerated mock type for the Controllers type

func (*Controllers) AuthenticateUserWithPassword

func (_m *Controllers) AuthenticateUserWithPassword(CRUD controllers.AuthControllerCRUD, username string, password string) (*models.User, common.CustomError)

AuthenticateUserWithPassword provides a mock function with given fields: CRUD, username, password

func (*Controllers) CreateClient

CreateClient provides a mock function with given fields: CRUD, client

func (*Controllers) CreateSession

func (_m *Controllers) CreateSession(CRUD controllers.SessionControllerCRUD, username string, password string) (*models.Session, common.CustomError)

CreateSession provides a mock function with given fields: CRUD, username, password

func (*Controllers) CreateTokenRedirectURL

func (_m *Controllers) CreateTokenRedirectURL(CRUD controllers.TokenControllerCRUD, clientId uuid.UUID, username string, password string) (string, common.CustomError)

CreateTokenRedirectURL provides a mock function with given fields: CRUD, clientId, username, password

func (*Controllers) CreateUser

func (_m *Controllers) CreateUser(CRUD controllers.UserControllerCRUD, username string, password string, rank int) (*models.User, common.CustomError)

CreateUser provides a mock function with given fields: CRUD, username, password, rank

func (*Controllers) CreateUserRole

CreateUserRole provides a mock function with given fields: CRUD, role

func (*Controllers) DeleteAllOtherUserSessions

func (_m *Controllers) DeleteAllOtherUserSessions(CRUD controllers.SessionControllerCRUD, username string, id uuid.UUID) common.CustomError

DeleteAllOtherUserSessions provides a mock function with given fields: CRUD, username, id

func (*Controllers) DeleteAllUserSessions

func (_m *Controllers) DeleteAllUserSessions(CRUD controllers.SessionControllerCRUD, username string) common.CustomError

DeleteAllUserSessions provides a mock function with given fields: CRUD, username

func (*Controllers) DeleteClient

DeleteClient provides a mock function with given fields: CRUD, uid

func (*Controllers) DeleteSession

DeleteSession provides a mock function with given fields: CRUD, id

func (*Controllers) DeleteUser

func (_m *Controllers) DeleteUser(CRUD controllers.UserControllerCRUD, username string) common.CustomError

DeleteUser provides a mock function with given fields: CRUD, username

func (*Controllers) DeleteUserRole

func (_m *Controllers) DeleteUserRole(CRUD controllers.UserRoleControllerCRUD, clientUID uuid.UUID, username string) common.CustomError

DeleteUserRole provides a mock function with given fields: CRUD, clientUID, username

func (*Controllers) GetClients

GetClients provides a mock function with given fields: CRUD

func (*Controllers) GetUserRolesWithLesserRankByClientUID

func (_m *Controllers) GetUserRolesWithLesserRankByClientUID(CRUD controllers.UserRoleControllerCRUD, clientUID uuid.UUID, rank int) ([]*models.UserRole, common.CustomError)

GetUserRolesWithLesserRankByClientUID provides a mock function with given fields: CRUD, clientUID, rank

func (*Controllers) GetUsersWithLesserRank

func (_m *Controllers) GetUsersWithLesserRank(CRUD controllers.UserControllerCRUD, rank int) ([]*models.User, common.CustomError)

GetUsersWithLesserRank provides a mock function with given fields: CRUD, rank

func (*Controllers) UpdateClient

UpdateClient provides a mock function with given fields: CRUD, client

func (*Controllers) UpdateUser

func (_m *Controllers) UpdateUser(CRUD controllers.UserControllerCRUD, username string, rank int) (*models.User, common.CustomError)

UpdateUser provides a mock function with given fields: CRUD, username, rank

func (*Controllers) UpdateUserPassword

func (_m *Controllers) UpdateUserPassword(CRUD controllers.UserControllerCRUD, username string, password string) common.CustomError

UpdateUserPassword provides a mock function with given fields: CRUD, username, password

func (*Controllers) UpdateUserPasswordWithAuth

func (_m *Controllers) UpdateUserPasswordWithAuth(CRUD controllers.UserControllerCRUD, username string, oldPassword string, newPassword string) common.CustomError

UpdateUserPasswordWithAuth provides a mock function with given fields: CRUD, username, oldPassword, newPassword

func (*Controllers) UpdateUserRole

UpdateUserRole provides a mock function with given fields: CRUD, role

func (*Controllers) VerifyUserRank

func (_m *Controllers) VerifyUserRank(CRUD controllers.UserControllerCRUD, username string, rank int) (bool, common.CustomError)

VerifyUserRank provides a mock function with given fields: CRUD, username, rank

Jump to

Keyboard shortcuts

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