Documentation ¶
Index ¶
- type AuthInfoServiceFake
- func (a *AuthInfoServiceFake) DeleteUserAuthInfo(ctx context.Context, userID int64) error
- func (a *AuthInfoServiceFake) GetAuthInfo(ctx context.Context, query *login.GetAuthInfoQuery) (*login.UserAuth, error)
- func (a *AuthInfoServiceFake) GetExternalUserInfoByLogin(ctx context.Context, query *login.GetExternalUserInfoByLoginQuery) (*login.ExternalUserInfo, error)
- func (a *AuthInfoServiceFake) GetUserLabels(ctx context.Context, query login.GetUserLabelsQuery) (map[int64]string, error)
- func (a *AuthInfoServiceFake) LookupAndUpdate(ctx context.Context, query *login.GetUserByAuthInfoQuery) (*user.User, error)
- func (a *AuthInfoServiceFake) SetAuthInfo(ctx context.Context, cmd *login.SetAuthInfoCommand) error
- func (a *AuthInfoServiceFake) UpdateAuthInfo(ctx context.Context, cmd *login.UpdateAuthInfoCommand) error
- type AuthenticatorFake
- type LoginServiceFake
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthInfoServiceFake ¶
type AuthInfoServiceFake struct { login.AuthInfoService LatestUserID int64 ExpectedUserAuth *login.UserAuth ExpectedUser *user.User ExpectedExternalUser *login.ExternalUserInfo ExpectedError error ExpectedLabels map[int64]string SetAuthInfoFn func(ctx context.Context, cmd *login.SetAuthInfoCommand) error UpdateAuthInfoFn func(ctx context.Context, cmd *login.UpdateAuthInfoCommand) error }
func (*AuthInfoServiceFake) DeleteUserAuthInfo ¶
func (a *AuthInfoServiceFake) DeleteUserAuthInfo(ctx context.Context, userID int64) error
func (*AuthInfoServiceFake) GetAuthInfo ¶
func (a *AuthInfoServiceFake) GetAuthInfo(ctx context.Context, query *login.GetAuthInfoQuery) (*login.UserAuth, error)
func (*AuthInfoServiceFake) GetExternalUserInfoByLogin ¶
func (a *AuthInfoServiceFake) GetExternalUserInfoByLogin(ctx context.Context, query *login.GetExternalUserInfoByLoginQuery) (*login.ExternalUserInfo, error)
func (*AuthInfoServiceFake) GetUserLabels ¶
func (a *AuthInfoServiceFake) GetUserLabels(ctx context.Context, query login.GetUserLabelsQuery) (map[int64]string, error)
func (*AuthInfoServiceFake) LookupAndUpdate ¶
func (a *AuthInfoServiceFake) LookupAndUpdate(ctx context.Context, query *login.GetUserByAuthInfoQuery) (*user.User, error)
func (*AuthInfoServiceFake) SetAuthInfo ¶
func (a *AuthInfoServiceFake) SetAuthInfo(ctx context.Context, cmd *login.SetAuthInfoCommand) error
func (*AuthInfoServiceFake) UpdateAuthInfo ¶
func (a *AuthInfoServiceFake) UpdateAuthInfo(ctx context.Context, cmd *login.UpdateAuthInfoCommand) error
type AuthenticatorFake ¶
func (*AuthenticatorFake) AuthenticateUser ¶
func (a *AuthenticatorFake) AuthenticateUser(c context.Context, query *login.LoginUserQuery) error
type LoginServiceFake ¶
type LoginServiceFake struct{}
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 *login.UpsertUserCommand) (*user.User, error)
Click to show internal directories.
Click to hide internal directories.