userstoremocks

package
v1.1.4 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2020 License: MPL-2.0, MPL-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UserStoreMock

type UserStoreMock struct {
	mock.Mock
}

func (*UserStoreMock) Create

func (us *UserStoreMock) Create(user *models.UserWithPass) error

Create mock

func (*UserStoreMock) Delete

func (us *UserStoreMock) Delete(userID, orgID string) (string, string, error)

Delete mock

func (*UserStoreMock) DeleteActivePolicy

func (us *UserStoreMock) DeleteActivePolicy(userID, orgID, enforceType string) error

DeleteActivePolicy mock

func (*UserStoreMock) DeleteAllUserAccessMaps

func (us *UserStoreMock) DeleteAllUserAccessMaps(userID, orgID string) error

DeleteAllUserAccessMaps mock

func (*UserStoreMock) DeregisterUserDevices

func (us *UserStoreMock) DeregisterUserDevices(userID, orgID string) error

DeregisterUserDevices mock

func (*UserStoreMock) EnforcePolicy

func (us *UserStoreMock) EnforcePolicy(policy models.PolicyEnforcer) error

EnforcePolicy mock

func (*UserStoreMock) GetAccessMapDetails

func (us *UserStoreMock) GetAccessMapDetails(userID, orgID string) ([]models.AccessMapDetail, error)

GetAccessMapDetails mock

func (*UserStoreMock) GetAdminEmails

func (us *UserStoreMock) GetAdminEmails(orgID string) ([]string, error)

GetAdminEmails mock

func (*UserStoreMock) GetAll

func (us *UserStoreMock) GetAll(orgID string) ([]models.User, error)

GetAll mock

func (*UserStoreMock) GetAllByIdp

func (us *UserStoreMock) GetAllByIdp(orgID, idpName string) ([]models.User, error)

GetAllByIdp mock

func (*UserStoreMock) GetAllDevices

func (us *UserStoreMock) GetAllDevices(userID, orgID string) ([]models.UserDevice, error)

GetAllDevices mock

func (*UserStoreMock) GetAssignedServices

func (us *UserStoreMock) GetAssignedServices(userID, orgID string) (services []models.Service, err error)

GetAssignedServices mock

func (*UserStoreMock) GetEnforcedPolicy

func (us *UserStoreMock) GetEnforcedPolicy(userID, orgID, enforceType string) (policy models.PolicyEnforcer, err error)

GetEnforcedPolicy mock

func (*UserStoreMock) GetFromID

func (us *UserStoreMock) GetFromID(userID, orgID string) (*models.User, error)

GetFromID mock

func (*UserStoreMock) GetFromTRASAID added in v1.1.4

func (us *UserStoreMock) GetFromTRASAID(trasaID, orgID string) (*models.User, error)

func (*UserStoreMock) GetFromWithLimit added in v1.1.4

func (us *UserStoreMock) GetFromWithLimit(orgID string, limit int) (user *models.User, err error)

GetFromID mock

func (*UserStoreMock) GetGroups

func (us *UserStoreMock) GetGroups(userID, orgID string) ([]models.Group, error)

GetGroups mock

func (*UserStoreMock) GetPasswordState

func (us *UserStoreMock) GetPasswordState(userID, orgID string) (models.PasswordState, error)

GetPasswordState mock

func (*UserStoreMock) GetTOTPDevices

func (us *UserStoreMock) GetTOTPDevices(userID, orgID string) ([]models.UserDevice, error)

GetTOTPDevices mock

func (*UserStoreMock) TransferUser

func (us *UserStoreMock) TransferUser(orgID, email, idpName string) error

TransferUser mock

func (*UserStoreMock) Update

func (us *UserStoreMock) Update(user models.User) error

Update mock

func (*UserStoreMock) UpdatePassword

func (us *UserStoreMock) UpdatePassword(userID, password string) error

UpdatePassword mock

func (*UserStoreMock) UpdatePasswordState

func (us *UserStoreMock) UpdatePasswordState(userID, orgID, oldpassword string, time int64) error

UpdatePasswordState mock

func (*UserStoreMock) UpdatePublicKey

func (us *UserStoreMock) UpdatePublicKey(userID string, publicKey string) error

UpdatePublicKey mock

func (*UserStoreMock) UpdateStatus added in v1.1.4

func (us *UserStoreMock) UpdateStatus(state bool, userID, orgID string) error

UpdateStatus mock

Jump to

Keyboard shortcuts

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