mock_user

package
v0.6.23-rc.0 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package mock_user is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockUserService

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

MockUserService is a mock of UserService interface.

func NewMockUserService

func NewMockUserService(ctrl *gomock.Controller) *MockUserService

NewMockUserService creates a new mock instance.

func (*MockUserService) CheckUserRoles

func (m *MockUserService) CheckUserRoles(id int32) ([]string, error)

CheckUserRoles mocks base method.

func (*MockUserService) CreateUser

func (m *MockUserService) CreateUser(userInfo *bean.UserInfo, token string, managerAuth func(string, string, string) bool) ([]*bean.UserInfo, error)

CreateUser mocks base method.

func (*MockUserService) DeleteUser

func (m *MockUserService) DeleteUser(userInfo *bean.UserInfo) (bool, error)

DeleteUser mocks base method.

func (*MockUserService) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockUserService) GetAll

func (m *MockUserService) GetAll() ([]bean.UserInfo, error)

GetAll mocks base method.

func (*MockUserService) GetAllDetailedUsers

func (m *MockUserService) GetAllDetailedUsers() ([]bean.UserInfo, error)

GetAllDetailedUsers mocks base method.

func (*MockUserService) GetById

func (m *MockUserService) GetById(id int32) (*bean.UserInfo, error)

GetById mocks base method.

func (*MockUserService) GetByIdIncludeDeleted

func (m *MockUserService) GetByIdIncludeDeleted(id int32) (*bean.UserInfo, error)

GetByIdIncludeDeleted mocks base method.

func (*MockUserService) GetByIds

func (m *MockUserService) GetByIds(ids []int32) ([]bean.UserInfo, error)

GetByIds mocks base method.

func (*MockUserService) GetEmailFromToken

func (m *MockUserService) GetEmailFromToken(token string) (string, error)

GetEmailFromToken mocks base method.

func (*MockUserService) GetLoggedInUser

func (m *MockUserService) GetLoggedInUser(r *http.Request) (int32, error)

GetLoggedInUser mocks base method.

func (*MockUserService) GetRoleFiltersByGroupNames

func (m *MockUserService) GetRoleFiltersByGroupNames(groupNames []string) ([]bean.RoleFilter, error)

GetRoleFiltersByGroupNames mocks base method.

func (*MockUserService) GetUserByToken

func (m *MockUserService) GetUserByToken(context context.Context, token string) (int32, string, error)

GetUserByToken mocks base method.

func (*MockUserService) IsSuperAdmin

func (m *MockUserService) IsSuperAdmin(userId int) (bool, error)

IsSuperAdmin mocks base method.

func (*MockUserService) SaveLoginAudit

func (m *MockUserService) SaveLoginAudit(emailId, clientIp string, id int32)

SaveLoginAudit mocks base method.

func (*MockUserService) SelfRegisterUserIfNotExists

func (m *MockUserService) SelfRegisterUserIfNotExists(userInfo *bean.UserInfo) ([]*bean.UserInfo, error)

SelfRegisterUserIfNotExists mocks base method.

func (*MockUserService) SyncOrchestratorToCasbin

func (m *MockUserService) SyncOrchestratorToCasbin() (bool, error)

SyncOrchestratorToCasbin mocks base method.

func (*MockUserService) UpdateTriggerPolicyForTerminalAccess

func (m *MockUserService) UpdateTriggerPolicyForTerminalAccess() error

UpdateTriggerPolicyForTerminalAccess mocks base method.

func (*MockUserService) UpdateUser

func (m *MockUserService) UpdateUser(userInfo *bean.UserInfo, token string, managerAuth func(string, string, string) bool) (*bean.UserInfo, bool, bool, []string, error)

UpdateUser mocks base method.

func (*MockUserService) UserExists

func (m *MockUserService) UserExists(emailId string) bool

UserExists mocks base method.

type MockUserServiceMockRecorder

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

MockUserServiceMockRecorder is the mock recorder for MockUserService.

func (*MockUserServiceMockRecorder) CheckUserRoles

func (mr *MockUserServiceMockRecorder) CheckUserRoles(id interface{}) *gomock.Call

CheckUserRoles indicates an expected call of CheckUserRoles.

func (*MockUserServiceMockRecorder) CreateUser

func (mr *MockUserServiceMockRecorder) CreateUser(userInfo, token, managerAuth interface{}) *gomock.Call

CreateUser indicates an expected call of CreateUser.

func (*MockUserServiceMockRecorder) DeleteUser

func (mr *MockUserServiceMockRecorder) DeleteUser(userInfo interface{}) *gomock.Call

DeleteUser indicates an expected call of DeleteUser.

func (*MockUserServiceMockRecorder) GetAll

func (mr *MockUserServiceMockRecorder) GetAll() *gomock.Call

GetAll indicates an expected call of GetAll.

func (*MockUserServiceMockRecorder) GetAllDetailedUsers

func (mr *MockUserServiceMockRecorder) GetAllDetailedUsers() *gomock.Call

GetAllDetailedUsers indicates an expected call of GetAllDetailedUsers.

func (*MockUserServiceMockRecorder) GetById

func (mr *MockUserServiceMockRecorder) GetById(id interface{}) *gomock.Call

GetById indicates an expected call of GetById.

func (*MockUserServiceMockRecorder) GetByIdIncludeDeleted

func (mr *MockUserServiceMockRecorder) GetByIdIncludeDeleted(id interface{}) *gomock.Call

GetByIdIncludeDeleted indicates an expected call of GetByIdIncludeDeleted.

func (*MockUserServiceMockRecorder) GetByIds

func (mr *MockUserServiceMockRecorder) GetByIds(ids interface{}) *gomock.Call

GetByIds indicates an expected call of GetByIds.

func (*MockUserServiceMockRecorder) GetEmailFromToken

func (mr *MockUserServiceMockRecorder) GetEmailFromToken(token interface{}) *gomock.Call

GetEmailFromToken indicates an expected call of GetEmailFromToken.

func (*MockUserServiceMockRecorder) GetLoggedInUser

func (mr *MockUserServiceMockRecorder) GetLoggedInUser(r interface{}) *gomock.Call

GetLoggedInUser indicates an expected call of GetLoggedInUser.

func (*MockUserServiceMockRecorder) GetRoleFiltersByGroupNames

func (mr *MockUserServiceMockRecorder) GetRoleFiltersByGroupNames(groupNames interface{}) *gomock.Call

GetRoleFiltersByGroupNames indicates an expected call of GetRoleFiltersByGroupNames.

func (*MockUserServiceMockRecorder) GetUserByToken

func (mr *MockUserServiceMockRecorder) GetUserByToken(context, token interface{}) *gomock.Call

GetUserByToken indicates an expected call of GetUserByToken.

func (*MockUserServiceMockRecorder) IsSuperAdmin

func (mr *MockUserServiceMockRecorder) IsSuperAdmin(userId interface{}) *gomock.Call

IsSuperAdmin indicates an expected call of IsSuperAdmin.

func (*MockUserServiceMockRecorder) SaveLoginAudit

func (mr *MockUserServiceMockRecorder) SaveLoginAudit(emailId, clientIp, id interface{}) *gomock.Call

SaveLoginAudit indicates an expected call of SaveLoginAudit.

func (*MockUserServiceMockRecorder) SelfRegisterUserIfNotExists

func (mr *MockUserServiceMockRecorder) SelfRegisterUserIfNotExists(userInfo interface{}) *gomock.Call

SelfRegisterUserIfNotExists indicates an expected call of SelfRegisterUserIfNotExists.

func (*MockUserServiceMockRecorder) SyncOrchestratorToCasbin

func (mr *MockUserServiceMockRecorder) SyncOrchestratorToCasbin() *gomock.Call

SyncOrchestratorToCasbin indicates an expected call of SyncOrchestratorToCasbin.

func (*MockUserServiceMockRecorder) UpdateTriggerPolicyForTerminalAccess

func (mr *MockUserServiceMockRecorder) UpdateTriggerPolicyForTerminalAccess() *gomock.Call

UpdateTriggerPolicyForTerminalAccess indicates an expected call of UpdateTriggerPolicyForTerminalAccess.

func (*MockUserServiceMockRecorder) UpdateUser

func (mr *MockUserServiceMockRecorder) UpdateUser(userInfo, token, managerAuth interface{}) *gomock.Call

UpdateUser indicates an expected call of UpdateUser.

func (*MockUserServiceMockRecorder) UserExists

func (mr *MockUserServiceMockRecorder) UserExists(emailId interface{}) *gomock.Call

UserExists indicates an expected call of UserExists.

Directories

Path Synopsis
Package mock_casbin is a generated GoMock package.
Package mock_casbin is a generated GoMock package.

Jump to

Keyboard shortcuts

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