Documentation ¶
Index ¶
- type UserStoreMock
- func (us *UserStoreMock) Create(user *models.UserWithPass) error
- func (us *UserStoreMock) Delete(userID, orgID string) (string, string, error)
- func (us *UserStoreMock) DeleteActivePolicy(userID, orgID, enforceType string) error
- func (us *UserStoreMock) DeleteAllUserAccessMaps(userID, orgID string) error
- func (us *UserStoreMock) DeregisterUserDevices(userID, orgID string) error
- func (us *UserStoreMock) EnforcePolicy(policy models.PolicyEnforcer) error
- func (us *UserStoreMock) GetAccessMapDetails(userID, orgID string) ([]models.AccessMapDetail, error)
- func (us *UserStoreMock) GetAdminEmails(orgID string) ([]string, error)
- func (us *UserStoreMock) GetAll(orgID string) ([]models.User, error)
- func (us *UserStoreMock) GetAllByIdp(orgID, idpName string) ([]models.User, error)
- func (us *UserStoreMock) GetAllDevices(userID, orgID string) ([]models.UserDevice, error)
- func (us *UserStoreMock) GetAssignedServices(userID, orgID string) (services []models.Service, err error)
- func (us *UserStoreMock) GetEnforcedPolicy(userID, orgID, enforceType string) (policy models.PolicyEnforcer, err error)
- func (us *UserStoreMock) GetFromID(userID, orgID string) (*models.User, error)
- func (us *UserStoreMock) GetFromTRASAID(trasaID, orgID string) (*models.User, error)
- func (us *UserStoreMock) GetFromWithLimit(orgID string, limit int) (user *models.User, err error)
- func (us *UserStoreMock) GetGroups(userID, orgID string) ([]models.Group, error)
- func (us *UserStoreMock) GetPasswordState(userID, orgID string) (models.PasswordState, error)
- func (us *UserStoreMock) GetTOTPDevices(userID, orgID string) ([]models.UserDevice, error)
- func (us *UserStoreMock) TransferUser(orgID, email, idpName string) error
- func (us *UserStoreMock) Update(user models.User) error
- func (us *UserStoreMock) UpdatePassword(userID, password string) error
- func (us *UserStoreMock) UpdatePasswordState(userID, orgID, oldpassword string, time int64) error
- func (us *UserStoreMock) UpdatePublicKey(userID string, publicKey string) error
- func (us *UserStoreMock) UpdateStatus(state bool, userID, orgID string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UserStoreMock ¶
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
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) 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
Click to show internal directories.
Click to hide internal directories.