Documentation ¶
Index ¶
- type Controllers
- func (_m *Controllers) AuthenticateUserWithPassword(CRUD controllers.AuthControllerCRUD, username string, password string) (*models.User, common.CustomError)
- func (_m *Controllers) CreateClient(CRUD controllers.ClientControllerCRUD, client *models.Client) common.CustomError
- func (_m *Controllers) CreateSession(CRUD controllers.SessionControllerCRUD, username string, password string) (*models.Session, common.CustomError)
- func (_m *Controllers) CreateTokenRedirectURL(CRUD controllers.TokenControllerCRUD, clientId uuid.UUID, username string, ...) (string, common.CustomError)
- func (_m *Controllers) CreateUser(CRUD controllers.UserControllerCRUD, username string, password string, ...) (*models.User, common.CustomError)
- func (_m *Controllers) CreateUserRole(CRUD controllers.UserRoleControllerCRUD, role *models.UserRole) common.CustomError
- func (_m *Controllers) DeleteAllOtherUserSessions(CRUD controllers.SessionControllerCRUD, username string, id uuid.UUID) common.CustomError
- func (_m *Controllers) DeleteAllUserSessions(CRUD controllers.SessionControllerCRUD, username string) common.CustomError
- func (_m *Controllers) DeleteClient(CRUD controllers.ClientControllerCRUD, uid uuid.UUID) common.CustomError
- func (_m *Controllers) DeleteSession(CRUD controllers.SessionControllerCRUD, id uuid.UUID) common.CustomError
- func (_m *Controllers) DeleteUser(CRUD controllers.UserControllerCRUD, username string) common.CustomError
- func (_m *Controllers) DeleteUserRole(CRUD controllers.UserRoleControllerCRUD, username string, clientUID uuid.UUID) common.CustomError
- func (_m *Controllers) GetClients(CRUD controllers.ClientControllerCRUD) ([]*models.Client, common.CustomError)
- func (_m *Controllers) GetUserRolesWithLesserRankByClientUID(CRUD controllers.UserRoleControllerCRUD, clientUID uuid.UUID, rank int) ([]*models.UserRole, common.CustomError)
- func (_m *Controllers) GetUsersWithLesserRank(CRUD controllers.UserControllerCRUD, rank int) ([]*models.User, common.CustomError)
- func (_m *Controllers) UpdateClient(CRUD controllers.ClientControllerCRUD, client *models.Client) common.CustomError
- func (_m *Controllers) UpdateUser(CRUD controllers.UserControllerCRUD, username string, rank int) (*models.User, common.CustomError)
- func (_m *Controllers) UpdateUserPassword(CRUD controllers.UserControllerCRUD, username string, password string) common.CustomError
- func (_m *Controllers) UpdateUserPasswordWithAuth(CRUD controllers.UserControllerCRUD, username string, oldPassword string, ...) common.CustomError
- func (_m *Controllers) UpdateUserRole(CRUD controllers.UserRoleControllerCRUD, role *models.UserRole) common.CustomError
- func (_m *Controllers) VerifyUserRank(CRUD controllers.UserControllerCRUD, username string, rank int) (bool, common.CustomError)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controllers ¶
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 ¶
func (_m *Controllers) CreateClient(CRUD controllers.ClientControllerCRUD, client *models.Client) common.CustomError
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 ¶
func (_m *Controllers) CreateUserRole(CRUD controllers.UserRoleControllerCRUD, role *models.UserRole) common.CustomError
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 ¶
func (_m *Controllers) DeleteClient(CRUD controllers.ClientControllerCRUD, uid uuid.UUID) common.CustomError
DeleteClient provides a mock function with given fields: CRUD, uid
func (*Controllers) DeleteSession ¶
func (_m *Controllers) DeleteSession(CRUD controllers.SessionControllerCRUD, id uuid.UUID) common.CustomError
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, username string, clientUID uuid.UUID) common.CustomError
DeleteUserRole provides a mock function with given fields: CRUD, username, clientUID
func (*Controllers) GetClients ¶
func (_m *Controllers) GetClients(CRUD controllers.ClientControllerCRUD) ([]*models.Client, common.CustomError)
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 ¶
func (_m *Controllers) UpdateClient(CRUD controllers.ClientControllerCRUD, client *models.Client) common.CustomError
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 ¶
func (_m *Controllers) UpdateUserRole(CRUD controllers.UserRoleControllerCRUD, role *models.UserRole) common.CustomError
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