Documentation ¶
Index ¶
- type AuthInfoServiceFake
- func (a *AuthInfoServiceFake) GetAuthInfo(ctx context.Context, query *models.GetAuthInfoQuery) error
- func (a *AuthInfoServiceFake) GetExternalUserInfoByLogin(ctx context.Context, query *models.GetExternalUserInfoByLoginQuery) error
- func (a *AuthInfoServiceFake) LookupAndUpdate(ctx context.Context, query *models.GetUserByAuthInfoQuery) (*models.User, error)
- func (a *AuthInfoServiceFake) SetAuthInfo(ctx context.Context, cmd *models.SetAuthInfoCommand) error
- func (a *AuthInfoServiceFake) UpdateAuthInfo(ctx context.Context, cmd *models.UpdateAuthInfoCommand) error
- type AuthenticatorFake
- type LoginServiceFake
- func (l *LoginServiceFake) CreateUser(cmd models.CreateUserCommand) (*models.User, error)
- func (l *LoginServiceFake) DisableExternalUser(ctx context.Context, username string) error
- func (l *LoginServiceFake) SetTeamSyncFunc(login.TeamSyncFunc)
- func (l *LoginServiceFake) UpsertUser(ctx context.Context, cmd *models.UpsertUserCommand) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthInfoServiceFake ¶
type AuthInfoServiceFake struct { LatestUserID int64 ExpectedUserAuth *models.UserAuth ExpectedUser *models.User ExpectedExternalUser *models.ExternalUserInfo ExpectedError error }
func (*AuthInfoServiceFake) GetAuthInfo ¶
func (a *AuthInfoServiceFake) GetAuthInfo(ctx context.Context, query *models.GetAuthInfoQuery) error
func (*AuthInfoServiceFake) GetExternalUserInfoByLogin ¶
func (a *AuthInfoServiceFake) GetExternalUserInfoByLogin(ctx context.Context, query *models.GetExternalUserInfoByLoginQuery) error
func (*AuthInfoServiceFake) LookupAndUpdate ¶
func (a *AuthInfoServiceFake) LookupAndUpdate(ctx context.Context, query *models.GetUserByAuthInfoQuery) (*models.User, error)
func (*AuthInfoServiceFake) SetAuthInfo ¶
func (a *AuthInfoServiceFake) SetAuthInfo(ctx context.Context, cmd *models.SetAuthInfoCommand) error
func (*AuthInfoServiceFake) UpdateAuthInfo ¶
func (a *AuthInfoServiceFake) UpdateAuthInfo(ctx context.Context, cmd *models.UpdateAuthInfoCommand) error
type AuthenticatorFake ¶
func (*AuthenticatorFake) AuthenticateUser ¶
func (a *AuthenticatorFake) AuthenticateUser(c context.Context, query *models.LoginUserQuery) error
type LoginServiceFake ¶
type LoginServiceFake struct{}
func (*LoginServiceFake) CreateUser ¶
func (l *LoginServiceFake) CreateUser(cmd models.CreateUserCommand) (*models.User, error)
func (*LoginServiceFake) DisableExternalUser ¶
func (l *LoginServiceFake) DisableExternalUser(ctx context.Context, username string) error
func (*LoginServiceFake) SetTeamSyncFunc ¶
func (l *LoginServiceFake) SetTeamSyncFunc(login.TeamSyncFunc)
func (*LoginServiceFake) UpsertUser ¶
func (l *LoginServiceFake) UpsertUser(ctx context.Context, cmd *models.UpsertUserCommand) error
Click to show internal directories.
Click to hide internal directories.