mocks

package
v4.34.4 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2022 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Overview

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockAPI

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

MockAPI is a mock of API interface.

func NewMockAPI

func NewMockAPI(ctrl *gomock.Controller) *MockAPI

NewMockAPI creates a new mock instance.

func (*MockAPI) AuthCall added in v4.33.0

func (m *MockAPI) AuthCall(arg0 *middlewares.AutheliaCtx, arg1 url.Values) (*duo.AuthResponse, error)

AuthCall mocks base method.

func (*MockAPI) Call

func (m *MockAPI) Call(arg0 *middlewares.AutheliaCtx, arg1 url.Values, arg2, arg3 string) (*duo.Response, error)

Call mocks base method.

func (*MockAPI) EXPECT

func (m *MockAPI) EXPECT() *MockAPIMockRecorder

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

func (*MockAPI) PreAuthCall added in v4.33.0

func (m *MockAPI) PreAuthCall(arg0 *middlewares.AutheliaCtx, arg1 url.Values) (*duo.PreAuthResponse, error)

PreAuthCall mocks base method.

type MockAPIMockRecorder

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

MockAPIMockRecorder is the mock recorder for MockAPI.

func (*MockAPIMockRecorder) AuthCall added in v4.33.0

func (mr *MockAPIMockRecorder) AuthCall(arg0, arg1 interface{}) *gomock.Call

AuthCall indicates an expected call of AuthCall.

func (*MockAPIMockRecorder) Call

func (mr *MockAPIMockRecorder) Call(arg0, arg1, arg2, arg3 interface{}) *gomock.Call

Call indicates an expected call of Call.

func (*MockAPIMockRecorder) PreAuthCall added in v4.33.0

func (mr *MockAPIMockRecorder) PreAuthCall(arg0, arg1 interface{}) *gomock.Call

PreAuthCall indicates an expected call of PreAuthCall.

type MockAutheliaCtx

type MockAutheliaCtx struct {
	// Logger hook.
	Hook *test.Hook
	Ctx  *middlewares.AutheliaCtx
	Ctrl *gomock.Controller

	// Providers.
	UserProviderMock *MockUserProvider
	StorageMock      *MockStorage
	NotifierMock     *MockNotifier
	TOTPMock         *MockTOTP

	UserSession *session.UserSession

	Clock TestingClock
}

MockAutheliaCtx a mock of AutheliaCtx.

func NewMockAutheliaCtx

func NewMockAutheliaCtx(t *testing.T) *MockAutheliaCtx

NewMockAutheliaCtx create an instance of AutheliaCtx mock.

func NewMockAutheliaCtxWithUserSession

func NewMockAutheliaCtxWithUserSession(t *testing.T, userSession session.UserSession) *MockAutheliaCtx

NewMockAutheliaCtxWithUserSession create an instance of AutheliaCtx mock with predefined user session.

func (*MockAutheliaCtx) Assert200KO

func (m *MockAutheliaCtx) Assert200KO(t *testing.T, message string)

Assert200KO assert an error response from the service.

func (*MockAutheliaCtx) Assert200OK

func (m *MockAutheliaCtx) Assert200OK(t *testing.T, data interface{})

Assert200OK assert a successful response from the service.

func (*MockAutheliaCtx) Assert401KO

func (m *MockAutheliaCtx) Assert401KO(t *testing.T, message string)

Assert401KO assert an error response from the service.

func (*MockAutheliaCtx) Close

func (m *MockAutheliaCtx) Close()

Close close the mock.

func (*MockAutheliaCtx) GetResponseData

func (m *MockAutheliaCtx) GetResponseData(t *testing.T, data interface{})

GetResponseData retrieves a response from the service.

func (*MockAutheliaCtx) GetResponseError added in v4.33.0

func (m *MockAutheliaCtx) GetResponseError(t *testing.T) (errResponse middlewares.ErrorResponse)

GetResponseError retrieves an error response from the service.

func (*MockAutheliaCtx) SetRequestBody

func (m *MockAutheliaCtx) SetRequestBody(t *testing.T, body interface{})

SetRequestBody set the request body from a struct with json tags.

type MockNotifier

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

MockNotifier is a mock of Notifier interface.

func NewMockNotifier

func NewMockNotifier(ctrl *gomock.Controller) *MockNotifier

NewMockNotifier creates a new mock instance.

func (*MockNotifier) EXPECT

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

func (*MockNotifier) Send

func (m *MockNotifier) Send(arg0, arg1, arg2, arg3 string) error

Send mocks base method.

func (*MockNotifier) StartupCheck

func (m *MockNotifier) StartupCheck() error

StartupCheck mocks base method.

type MockNotifierMockRecorder

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

MockNotifierMockRecorder is the mock recorder for MockNotifier.

func (*MockNotifierMockRecorder) Send

func (mr *MockNotifierMockRecorder) Send(arg0, arg1, arg2, arg3 interface{}) *gomock.Call

Send indicates an expected call of Send.

func (*MockNotifierMockRecorder) StartupCheck

func (mr *MockNotifierMockRecorder) StartupCheck() *gomock.Call

StartupCheck indicates an expected call of StartupCheck.

type MockStorage added in v4.33.0

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

MockStorage is a mock of Provider interface.

func NewMockStorage added in v4.33.0

func NewMockStorage(ctrl *gomock.Controller) *MockStorage

NewMockStorage creates a new mock instance.

func (*MockStorage) AppendAuthenticationLog added in v4.33.0

func (m *MockStorage) AppendAuthenticationLog(arg0 context.Context, arg1 models.AuthenticationAttempt) error

AppendAuthenticationLog mocks base method.

func (*MockStorage) Close added in v4.33.0

func (m *MockStorage) Close() error

Close mocks base method.

func (*MockStorage) ConsumeIdentityVerification added in v4.33.0

func (m *MockStorage) ConsumeIdentityVerification(arg0 context.Context, arg1 string, arg2 models.NullIP) error

ConsumeIdentityVerification mocks base method.

func (*MockStorage) DeletePreferredDuoDevice added in v4.33.0

func (m *MockStorage) DeletePreferredDuoDevice(arg0 context.Context, arg1 string) error

DeletePreferredDuoDevice mocks base method.

func (*MockStorage) DeleteTOTPConfiguration added in v4.33.0

func (m *MockStorage) DeleteTOTPConfiguration(arg0 context.Context, arg1 string) error

DeleteTOTPConfiguration mocks base method.

func (*MockStorage) EXPECT added in v4.33.0

func (m *MockStorage) EXPECT() *MockStorageMockRecorder

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

func (*MockStorage) FindIdentityVerification added in v4.33.0

func (m *MockStorage) FindIdentityVerification(arg0 context.Context, arg1 string) (bool, error)

FindIdentityVerification mocks base method.

func (*MockStorage) LoadAuthenticationLogs added in v4.33.0

func (m *MockStorage) LoadAuthenticationLogs(arg0 context.Context, arg1 string, arg2 time.Time, arg3, arg4 int) ([]models.AuthenticationAttempt, error)

LoadAuthenticationLogs mocks base method.

func (*MockStorage) LoadPreferred2FAMethod added in v4.33.0

func (m *MockStorage) LoadPreferred2FAMethod(arg0 context.Context, arg1 string) (string, error)

LoadPreferred2FAMethod mocks base method.

func (*MockStorage) LoadPreferredDuoDevice added in v4.33.0

func (m *MockStorage) LoadPreferredDuoDevice(arg0 context.Context, arg1 string) (*models.DuoDevice, error)

LoadPreferredDuoDevice mocks base method.

func (*MockStorage) LoadTOTPConfiguration added in v4.33.0

func (m *MockStorage) LoadTOTPConfiguration(arg0 context.Context, arg1 string) (*models.TOTPConfiguration, error)

LoadTOTPConfiguration mocks base method.

func (*MockStorage) LoadTOTPConfigurations added in v4.33.0

func (m *MockStorage) LoadTOTPConfigurations(arg0 context.Context, arg1, arg2 int) ([]models.TOTPConfiguration, error)

LoadTOTPConfigurations mocks base method.

func (*MockStorage) LoadUserInfo added in v4.33.0

func (m *MockStorage) LoadUserInfo(arg0 context.Context, arg1 string) (models.UserInfo, error)

LoadUserInfo mocks base method.

func (*MockStorage) LoadWebauthnDevices added in v4.34.0

func (m *MockStorage) LoadWebauthnDevices(arg0 context.Context, arg1, arg2 int) ([]models.WebauthnDevice, error)

LoadWebauthnDevices mocks base method.

func (*MockStorage) LoadWebauthnDevicesByUsername added in v4.34.0

func (m *MockStorage) LoadWebauthnDevicesByUsername(arg0 context.Context, arg1 string) ([]models.WebauthnDevice, error)

LoadWebauthnDevicesByUsername mocks base method.

func (*MockStorage) SaveIdentityVerification added in v4.33.0

func (m *MockStorage) SaveIdentityVerification(arg0 context.Context, arg1 models.IdentityVerification) error

SaveIdentityVerification mocks base method.

func (*MockStorage) SavePreferred2FAMethod added in v4.33.0

func (m *MockStorage) SavePreferred2FAMethod(arg0 context.Context, arg1, arg2 string) error

SavePreferred2FAMethod mocks base method.

func (*MockStorage) SavePreferredDuoDevice added in v4.33.0

func (m *MockStorage) SavePreferredDuoDevice(arg0 context.Context, arg1 models.DuoDevice) error

SavePreferredDuoDevice mocks base method.

func (*MockStorage) SaveTOTPConfiguration added in v4.33.0

func (m *MockStorage) SaveTOTPConfiguration(arg0 context.Context, arg1 models.TOTPConfiguration) error

SaveTOTPConfiguration mocks base method.

func (*MockStorage) SaveWebauthnDevice added in v4.34.0

func (m *MockStorage) SaveWebauthnDevice(arg0 context.Context, arg1 models.WebauthnDevice) error

SaveWebauthnDevice mocks base method.

func (*MockStorage) SchemaEncryptionChangeKey added in v4.33.0

func (m *MockStorage) SchemaEncryptionChangeKey(arg0 context.Context, arg1 string) error

SchemaEncryptionChangeKey mocks base method.

func (*MockStorage) SchemaEncryptionCheckKey added in v4.33.0

func (m *MockStorage) SchemaEncryptionCheckKey(arg0 context.Context, arg1 bool) error

SchemaEncryptionCheckKey mocks base method.

func (*MockStorage) SchemaLatestVersion added in v4.33.0

func (m *MockStorage) SchemaLatestVersion() (int, error)

SchemaLatestVersion mocks base method.

func (*MockStorage) SchemaMigrate added in v4.33.0

func (m *MockStorage) SchemaMigrate(arg0 context.Context, arg1 bool, arg2 int) error

SchemaMigrate mocks base method.

func (*MockStorage) SchemaMigrationHistory added in v4.33.0

func (m *MockStorage) SchemaMigrationHistory(arg0 context.Context) ([]models.Migration, error)

SchemaMigrationHistory mocks base method.

func (*MockStorage) SchemaMigrationsDown added in v4.33.0

func (m *MockStorage) SchemaMigrationsDown(arg0 context.Context, arg1 int) ([]models.SchemaMigration, error)

SchemaMigrationsDown mocks base method.

func (*MockStorage) SchemaMigrationsUp added in v4.33.0

func (m *MockStorage) SchemaMigrationsUp(arg0 context.Context, arg1 int) ([]models.SchemaMigration, error)

SchemaMigrationsUp mocks base method.

func (*MockStorage) SchemaTables added in v4.33.0

func (m *MockStorage) SchemaTables(arg0 context.Context) ([]string, error)

SchemaTables mocks base method.

func (*MockStorage) SchemaVersion added in v4.33.0

func (m *MockStorage) SchemaVersion(arg0 context.Context) (int, error)

SchemaVersion mocks base method.

func (*MockStorage) StartupCheck added in v4.33.0

func (m *MockStorage) StartupCheck() error

StartupCheck mocks base method.

func (*MockStorage) UpdateTOTPConfigurationSignIn added in v4.34.0

func (m *MockStorage) UpdateTOTPConfigurationSignIn(arg0 context.Context, arg1 int, arg2 *time.Time) error

UpdateTOTPConfigurationSignIn mocks base method.

func (*MockStorage) UpdateWebauthnDeviceSignIn added in v4.34.0

func (m *MockStorage) UpdateWebauthnDeviceSignIn(arg0 context.Context, arg1 int, arg2 string, arg3 *time.Time, arg4 uint32, arg5 bool) error

UpdateWebauthnDeviceSignIn mocks base method.

type MockStorageMockRecorder added in v4.33.0

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

MockStorageMockRecorder is the mock recorder for MockStorage.

func (*MockStorageMockRecorder) AppendAuthenticationLog added in v4.33.0

func (mr *MockStorageMockRecorder) AppendAuthenticationLog(arg0, arg1 interface{}) *gomock.Call

AppendAuthenticationLog indicates an expected call of AppendAuthenticationLog.

func (*MockStorageMockRecorder) Close added in v4.33.0

func (mr *MockStorageMockRecorder) Close() *gomock.Call

Close indicates an expected call of Close.

func (*MockStorageMockRecorder) ConsumeIdentityVerification added in v4.33.0

func (mr *MockStorageMockRecorder) ConsumeIdentityVerification(arg0, arg1, arg2 interface{}) *gomock.Call

ConsumeIdentityVerification indicates an expected call of ConsumeIdentityVerification.

func (*MockStorageMockRecorder) DeletePreferredDuoDevice added in v4.33.0

func (mr *MockStorageMockRecorder) DeletePreferredDuoDevice(arg0, arg1 interface{}) *gomock.Call

DeletePreferredDuoDevice indicates an expected call of DeletePreferredDuoDevice.

func (*MockStorageMockRecorder) DeleteTOTPConfiguration added in v4.33.0

func (mr *MockStorageMockRecorder) DeleteTOTPConfiguration(arg0, arg1 interface{}) *gomock.Call

DeleteTOTPConfiguration indicates an expected call of DeleteTOTPConfiguration.

func (*MockStorageMockRecorder) FindIdentityVerification added in v4.33.0

func (mr *MockStorageMockRecorder) FindIdentityVerification(arg0, arg1 interface{}) *gomock.Call

FindIdentityVerification indicates an expected call of FindIdentityVerification.

func (*MockStorageMockRecorder) LoadAuthenticationLogs added in v4.33.0

func (mr *MockStorageMockRecorder) LoadAuthenticationLogs(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call

LoadAuthenticationLogs indicates an expected call of LoadAuthenticationLogs.

func (*MockStorageMockRecorder) LoadPreferred2FAMethod added in v4.33.0

func (mr *MockStorageMockRecorder) LoadPreferred2FAMethod(arg0, arg1 interface{}) *gomock.Call

LoadPreferred2FAMethod indicates an expected call of LoadPreferred2FAMethod.

func (*MockStorageMockRecorder) LoadPreferredDuoDevice added in v4.33.0

func (mr *MockStorageMockRecorder) LoadPreferredDuoDevice(arg0, arg1 interface{}) *gomock.Call

LoadPreferredDuoDevice indicates an expected call of LoadPreferredDuoDevice.

func (*MockStorageMockRecorder) LoadTOTPConfiguration added in v4.33.0

func (mr *MockStorageMockRecorder) LoadTOTPConfiguration(arg0, arg1 interface{}) *gomock.Call

LoadTOTPConfiguration indicates an expected call of LoadTOTPConfiguration.

func (*MockStorageMockRecorder) LoadTOTPConfigurations added in v4.33.0

func (mr *MockStorageMockRecorder) LoadTOTPConfigurations(arg0, arg1, arg2 interface{}) *gomock.Call

LoadTOTPConfigurations indicates an expected call of LoadTOTPConfigurations.

func (*MockStorageMockRecorder) LoadUserInfo added in v4.33.0

func (mr *MockStorageMockRecorder) LoadUserInfo(arg0, arg1 interface{}) *gomock.Call

LoadUserInfo indicates an expected call of LoadUserInfo.

func (*MockStorageMockRecorder) LoadWebauthnDevices added in v4.34.0

func (mr *MockStorageMockRecorder) LoadWebauthnDevices(arg0, arg1, arg2 interface{}) *gomock.Call

LoadWebauthnDevices indicates an expected call of LoadWebauthnDevices.

func (*MockStorageMockRecorder) LoadWebauthnDevicesByUsername added in v4.34.0

func (mr *MockStorageMockRecorder) LoadWebauthnDevicesByUsername(arg0, arg1 interface{}) *gomock.Call

LoadWebauthnDevicesByUsername indicates an expected call of LoadWebauthnDevicesByUsername.

func (*MockStorageMockRecorder) SaveIdentityVerification added in v4.33.0

func (mr *MockStorageMockRecorder) SaveIdentityVerification(arg0, arg1 interface{}) *gomock.Call

SaveIdentityVerification indicates an expected call of SaveIdentityVerification.

func (*MockStorageMockRecorder) SavePreferred2FAMethod added in v4.33.0

func (mr *MockStorageMockRecorder) SavePreferred2FAMethod(arg0, arg1, arg2 interface{}) *gomock.Call

SavePreferred2FAMethod indicates an expected call of SavePreferred2FAMethod.

func (*MockStorageMockRecorder) SavePreferredDuoDevice added in v4.33.0

func (mr *MockStorageMockRecorder) SavePreferredDuoDevice(arg0, arg1 interface{}) *gomock.Call

SavePreferredDuoDevice indicates an expected call of SavePreferredDuoDevice.

func (*MockStorageMockRecorder) SaveTOTPConfiguration added in v4.33.0

func (mr *MockStorageMockRecorder) SaveTOTPConfiguration(arg0, arg1 interface{}) *gomock.Call

SaveTOTPConfiguration indicates an expected call of SaveTOTPConfiguration.

func (*MockStorageMockRecorder) SaveWebauthnDevice added in v4.34.0

func (mr *MockStorageMockRecorder) SaveWebauthnDevice(arg0, arg1 interface{}) *gomock.Call

SaveWebauthnDevice indicates an expected call of SaveWebauthnDevice.

func (*MockStorageMockRecorder) SchemaEncryptionChangeKey added in v4.33.0

func (mr *MockStorageMockRecorder) SchemaEncryptionChangeKey(arg0, arg1 interface{}) *gomock.Call

SchemaEncryptionChangeKey indicates an expected call of SchemaEncryptionChangeKey.

func (*MockStorageMockRecorder) SchemaEncryptionCheckKey added in v4.33.0

func (mr *MockStorageMockRecorder) SchemaEncryptionCheckKey(arg0, arg1 interface{}) *gomock.Call

SchemaEncryptionCheckKey indicates an expected call of SchemaEncryptionCheckKey.

func (*MockStorageMockRecorder) SchemaLatestVersion added in v4.33.0

func (mr *MockStorageMockRecorder) SchemaLatestVersion() *gomock.Call

SchemaLatestVersion indicates an expected call of SchemaLatestVersion.

func (*MockStorageMockRecorder) SchemaMigrate added in v4.33.0

func (mr *MockStorageMockRecorder) SchemaMigrate(arg0, arg1, arg2 interface{}) *gomock.Call

SchemaMigrate indicates an expected call of SchemaMigrate.

func (*MockStorageMockRecorder) SchemaMigrationHistory added in v4.33.0

func (mr *MockStorageMockRecorder) SchemaMigrationHistory(arg0 interface{}) *gomock.Call

SchemaMigrationHistory indicates an expected call of SchemaMigrationHistory.

func (*MockStorageMockRecorder) SchemaMigrationsDown added in v4.33.0

func (mr *MockStorageMockRecorder) SchemaMigrationsDown(arg0, arg1 interface{}) *gomock.Call

SchemaMigrationsDown indicates an expected call of SchemaMigrationsDown.

func (*MockStorageMockRecorder) SchemaMigrationsUp added in v4.33.0

func (mr *MockStorageMockRecorder) SchemaMigrationsUp(arg0, arg1 interface{}) *gomock.Call

SchemaMigrationsUp indicates an expected call of SchemaMigrationsUp.

func (*MockStorageMockRecorder) SchemaTables added in v4.33.0

func (mr *MockStorageMockRecorder) SchemaTables(arg0 interface{}) *gomock.Call

SchemaTables indicates an expected call of SchemaTables.

func (*MockStorageMockRecorder) SchemaVersion added in v4.33.0

func (mr *MockStorageMockRecorder) SchemaVersion(arg0 interface{}) *gomock.Call

SchemaVersion indicates an expected call of SchemaVersion.

func (*MockStorageMockRecorder) StartupCheck added in v4.33.0

func (mr *MockStorageMockRecorder) StartupCheck() *gomock.Call

StartupCheck indicates an expected call of StartupCheck.

func (*MockStorageMockRecorder) UpdateTOTPConfigurationSignIn added in v4.34.0

func (mr *MockStorageMockRecorder) UpdateTOTPConfigurationSignIn(arg0, arg1, arg2 interface{}) *gomock.Call

UpdateTOTPConfigurationSignIn indicates an expected call of UpdateTOTPConfigurationSignIn.

func (*MockStorageMockRecorder) UpdateWebauthnDeviceSignIn added in v4.34.0

func (mr *MockStorageMockRecorder) UpdateWebauthnDeviceSignIn(arg0, arg1, arg2, arg3, arg4, arg5 interface{}) *gomock.Call

UpdateWebauthnDeviceSignIn indicates an expected call of UpdateWebauthnDeviceSignIn.

type MockTOTP added in v4.33.0

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

MockTOTP is a mock of Provider interface.

func NewMockTOTP added in v4.33.0

func NewMockTOTP(ctrl *gomock.Controller) *MockTOTP

NewMockTOTP creates a new mock instance.

func (*MockTOTP) EXPECT added in v4.33.0

func (m *MockTOTP) EXPECT() *MockTOTPMockRecorder

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

func (*MockTOTP) Generate added in v4.33.0

func (m *MockTOTP) Generate(arg0 string) (*models.TOTPConfiguration, error)

Generate mocks base method.

func (*MockTOTP) GenerateCustom added in v4.33.0

func (m *MockTOTP) GenerateCustom(arg0, arg1 string, arg2, arg3, arg4 uint) (*models.TOTPConfiguration, error)

GenerateCustom mocks base method.

func (*MockTOTP) Validate added in v4.33.0

func (m *MockTOTP) Validate(arg0 string, arg1 *models.TOTPConfiguration) (bool, error)

Validate mocks base method.

type MockTOTPMockRecorder added in v4.33.0

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

MockTOTPMockRecorder is the mock recorder for MockTOTP.

func (*MockTOTPMockRecorder) Generate added in v4.33.0

func (mr *MockTOTPMockRecorder) Generate(arg0 interface{}) *gomock.Call

Generate indicates an expected call of Generate.

func (*MockTOTPMockRecorder) GenerateCustom added in v4.33.0

func (mr *MockTOTPMockRecorder) GenerateCustom(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call

GenerateCustom indicates an expected call of GenerateCustom.

func (*MockTOTPMockRecorder) Validate added in v4.33.0

func (mr *MockTOTPMockRecorder) Validate(arg0, arg1 interface{}) *gomock.Call

Validate indicates an expected call of Validate.

type MockUserProvider

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

MockUserProvider is a mock of UserProvider interface.

func NewMockUserProvider

func NewMockUserProvider(ctrl *gomock.Controller) *MockUserProvider

NewMockUserProvider creates a new mock instance.

func (*MockUserProvider) CheckUserPassword

func (m *MockUserProvider) CheckUserPassword(arg0, arg1 string) (bool, error)

CheckUserPassword mocks base method.

func (*MockUserProvider) EXPECT

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

func (*MockUserProvider) GetDetails

func (m *MockUserProvider) GetDetails(arg0 string) (*authentication.UserDetails, error)

GetDetails mocks base method.

func (*MockUserProvider) StartupCheck added in v4.31.0

func (m *MockUserProvider) StartupCheck() error

StartupCheck mocks base method.

func (*MockUserProvider) UpdatePassword

func (m *MockUserProvider) UpdatePassword(arg0, arg1 string) error

UpdatePassword mocks base method.

type MockUserProviderMockRecorder

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

MockUserProviderMockRecorder is the mock recorder for MockUserProvider.

func (*MockUserProviderMockRecorder) CheckUserPassword

func (mr *MockUserProviderMockRecorder) CheckUserPassword(arg0, arg1 interface{}) *gomock.Call

CheckUserPassword indicates an expected call of CheckUserPassword.

func (*MockUserProviderMockRecorder) GetDetails

func (mr *MockUserProviderMockRecorder) GetDetails(arg0 interface{}) *gomock.Call

GetDetails indicates an expected call of GetDetails.

func (*MockUserProviderMockRecorder) StartupCheck added in v4.31.0

func (mr *MockUserProviderMockRecorder) StartupCheck() *gomock.Call

StartupCheck indicates an expected call of StartupCheck.

func (*MockUserProviderMockRecorder) UpdatePassword

func (mr *MockUserProviderMockRecorder) UpdatePassword(arg0, arg1 interface{}) *gomock.Call

UpdatePassword indicates an expected call of UpdatePassword.

type TestingClock

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

TestingClock implementation of clock for tests.

func (*TestingClock) After

func (dc *TestingClock) After(d time.Duration) <-chan time.Time

After return a channel receiving the time after duration has elapsed.

func (*TestingClock) Now

func (dc *TestingClock) Now() time.Time

Now return the stored clock.

func (*TestingClock) Set

func (dc *TestingClock) Set(now time.Time)

Set set the time of the clock.

Jump to

Keyboard shortcuts

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