2019-11-17 08:05:46 +07:00
|
|
|
// Code generated by MockGen. DO NOT EDIT.
|
2021-12-01 10:32:58 +07:00
|
|
|
// Source: github.com/authelia/authelia/v4/internal/storage (interfaces: Provider)
|
2019-11-17 08:05:46 +07:00
|
|
|
|
2021-12-01 19:11:29 +07:00
|
|
|
// Package mocks is a generated GoMock package.
|
|
|
|
package mocks
|
2019-11-17 08:05:46 +07:00
|
|
|
|
|
|
|
import (
|
2021-12-01 10:32:58 +07:00
|
|
|
context "context"
|
|
|
|
reflect "reflect"
|
|
|
|
time "time"
|
2020-04-05 19:37:21 +07:00
|
|
|
|
2021-12-01 10:32:58 +07:00
|
|
|
gomock "github.com/golang/mock/gomock"
|
2020-04-05 19:37:21 +07:00
|
|
|
|
2022-03-06 12:47:40 +07:00
|
|
|
models "github.com/authelia/authelia/v4/internal/model"
|
2019-11-17 08:05:46 +07:00
|
|
|
)
|
|
|
|
|
2021-12-01 19:11:29 +07:00
|
|
|
// MockStorage is a mock of Provider interface.
|
|
|
|
type MockStorage struct {
|
2019-11-17 08:05:46 +07:00
|
|
|
ctrl *gomock.Controller
|
2021-12-01 19:11:29 +07:00
|
|
|
recorder *MockStorageMockRecorder
|
2019-11-17 08:05:46 +07:00
|
|
|
}
|
|
|
|
|
2021-12-01 19:11:29 +07:00
|
|
|
// MockStorageMockRecorder is the mock recorder for MockStorage.
|
|
|
|
type MockStorageMockRecorder struct {
|
|
|
|
mock *MockStorage
|
2019-11-17 08:05:46 +07:00
|
|
|
}
|
|
|
|
|
2021-12-01 19:11:29 +07:00
|
|
|
// NewMockStorage creates a new mock instance.
|
|
|
|
func NewMockStorage(ctrl *gomock.Controller) *MockStorage {
|
|
|
|
mock := &MockStorage{ctrl: ctrl}
|
|
|
|
mock.recorder = &MockStorageMockRecorder{mock}
|
2019-11-17 08:05:46 +07:00
|
|
|
return mock
|
|
|
|
}
|
|
|
|
|
2021-11-23 16:45:38 +07:00
|
|
|
// EXPECT returns an object that allows the caller to indicate expected use.
|
2021-12-01 19:11:29 +07:00
|
|
|
func (m *MockStorage) EXPECT() *MockStorageMockRecorder {
|
2019-11-17 08:05:46 +07:00
|
|
|
return m.recorder
|
|
|
|
}
|
|
|
|
|
2021-11-23 16:45:38 +07:00
|
|
|
// AppendAuthenticationLog mocks base method.
|
2021-12-01 19:11:29 +07:00
|
|
|
func (m *MockStorage) AppendAuthenticationLog(arg0 context.Context, arg1 models.AuthenticationAttempt) error {
|
2019-11-17 08:05:46 +07:00
|
|
|
m.ctrl.T.Helper()
|
2021-11-23 16:45:38 +07:00
|
|
|
ret := m.ctrl.Call(m, "AppendAuthenticationLog", arg0, arg1)
|
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
2019-12-08 00:51:47 +07:00
|
|
|
}
|
|
|
|
|
2021-11-23 16:45:38 +07:00
|
|
|
// AppendAuthenticationLog indicates an expected call of AppendAuthenticationLog.
|
2021-12-01 19:11:29 +07:00
|
|
|
func (mr *MockStorageMockRecorder) AppendAuthenticationLog(arg0, arg1 interface{}) *gomock.Call {
|
2019-12-08 00:51:47 +07:00
|
|
|
mr.mock.ctrl.T.Helper()
|
2021-12-01 19:11:29 +07:00
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AppendAuthenticationLog", reflect.TypeOf((*MockStorage)(nil).AppendAuthenticationLog), arg0, arg1)
|
2019-12-08 00:51:47 +07:00
|
|
|
}
|
|
|
|
|
2021-11-25 08:56:58 +07:00
|
|
|
// Close mocks base method.
|
2021-12-01 19:11:29 +07:00
|
|
|
func (m *MockStorage) Close() error {
|
2021-11-25 08:56:58 +07:00
|
|
|
m.ctrl.T.Helper()
|
|
|
|
ret := m.ctrl.Call(m, "Close")
|
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
|
|
|
// Close indicates an expected call of Close.
|
2021-12-01 19:11:29 +07:00
|
|
|
func (mr *MockStorageMockRecorder) Close() *gomock.Call {
|
2021-11-25 08:56:58 +07:00
|
|
|
mr.mock.ctrl.T.Helper()
|
2021-12-01 19:11:29 +07:00
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Close", reflect.TypeOf((*MockStorage)(nil).Close))
|
2021-11-25 08:56:58 +07:00
|
|
|
}
|
|
|
|
|
2021-12-03 07:04:11 +07:00
|
|
|
// ConsumeIdentityVerification mocks base method.
|
|
|
|
func (m *MockStorage) ConsumeIdentityVerification(arg0 context.Context, arg1 string, arg2 models.NullIP) error {
|
|
|
|
m.ctrl.T.Helper()
|
|
|
|
ret := m.ctrl.Call(m, "ConsumeIdentityVerification", arg0, arg1, arg2)
|
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
|
|
|
// ConsumeIdentityVerification indicates an expected call of ConsumeIdentityVerification.
|
|
|
|
func (mr *MockStorageMockRecorder) ConsumeIdentityVerification(arg0, arg1, arg2 interface{}) *gomock.Call {
|
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ConsumeIdentityVerification", reflect.TypeOf((*MockStorage)(nil).ConsumeIdentityVerification), arg0, arg1, arg2)
|
|
|
|
}
|
|
|
|
|
2021-12-01 10:32:58 +07:00
|
|
|
// DeletePreferredDuoDevice mocks base method.
|
2021-12-01 19:11:29 +07:00
|
|
|
func (m *MockStorage) DeletePreferredDuoDevice(arg0 context.Context, arg1 string) error {
|
2021-12-01 10:32:58 +07:00
|
|
|
m.ctrl.T.Helper()
|
|
|
|
ret := m.ctrl.Call(m, "DeletePreferredDuoDevice", arg0, arg1)
|
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
|
|
|
// DeletePreferredDuoDevice indicates an expected call of DeletePreferredDuoDevice.
|
2021-12-01 19:11:29 +07:00
|
|
|
func (mr *MockStorageMockRecorder) DeletePreferredDuoDevice(arg0, arg1 interface{}) *gomock.Call {
|
2021-12-01 10:32:58 +07:00
|
|
|
mr.mock.ctrl.T.Helper()
|
2021-12-01 19:11:29 +07:00
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeletePreferredDuoDevice", reflect.TypeOf((*MockStorage)(nil).DeletePreferredDuoDevice), arg0, arg1)
|
2021-12-01 10:32:58 +07:00
|
|
|
}
|
|
|
|
|
2021-11-23 16:45:38 +07:00
|
|
|
// DeleteTOTPConfiguration mocks base method.
|
2021-12-01 19:11:29 +07:00
|
|
|
func (m *MockStorage) DeleteTOTPConfiguration(arg0 context.Context, arg1 string) error {
|
2019-12-08 00:51:47 +07:00
|
|
|
m.ctrl.T.Helper()
|
2021-11-23 16:45:38 +07:00
|
|
|
ret := m.ctrl.Call(m, "DeleteTOTPConfiguration", arg0, arg1)
|
2019-11-17 08:05:46 +07:00
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2021-11-23 16:45:38 +07:00
|
|
|
// DeleteTOTPConfiguration indicates an expected call of DeleteTOTPConfiguration.
|
2021-12-01 19:11:29 +07:00
|
|
|
func (mr *MockStorageMockRecorder) DeleteTOTPConfiguration(arg0, arg1 interface{}) *gomock.Call {
|
2019-11-17 08:05:46 +07:00
|
|
|
mr.mock.ctrl.T.Helper()
|
2021-12-01 19:11:29 +07:00
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteTOTPConfiguration", reflect.TypeOf((*MockStorage)(nil).DeleteTOTPConfiguration), arg0, arg1)
|
2019-11-17 08:05:46 +07:00
|
|
|
}
|
|
|
|
|
2021-11-23 16:45:38 +07:00
|
|
|
// FindIdentityVerification mocks base method.
|
2021-12-01 19:11:29 +07:00
|
|
|
func (m *MockStorage) FindIdentityVerification(arg0 context.Context, arg1 string) (bool, error) {
|
2019-11-17 08:05:46 +07:00
|
|
|
m.ctrl.T.Helper()
|
2021-11-23 16:45:38 +07:00
|
|
|
ret := m.ctrl.Call(m, "FindIdentityVerification", arg0, arg1)
|
2019-11-17 08:05:46 +07:00
|
|
|
ret0, _ := ret[0].(bool)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2021-11-23 16:45:38 +07:00
|
|
|
// FindIdentityVerification indicates an expected call of FindIdentityVerification.
|
2021-12-01 19:11:29 +07:00
|
|
|
func (mr *MockStorageMockRecorder) FindIdentityVerification(arg0, arg1 interface{}) *gomock.Call {
|
2019-11-17 08:05:46 +07:00
|
|
|
mr.mock.ctrl.T.Helper()
|
2021-12-01 19:11:29 +07:00
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FindIdentityVerification", reflect.TypeOf((*MockStorage)(nil).FindIdentityVerification), arg0, arg1)
|
2019-11-17 08:05:46 +07:00
|
|
|
}
|
|
|
|
|
2021-11-23 16:45:38 +07:00
|
|
|
// LoadAuthenticationLogs mocks base method.
|
2021-12-01 19:11:29 +07:00
|
|
|
func (m *MockStorage) LoadAuthenticationLogs(arg0 context.Context, arg1 string, arg2 time.Time, arg3, arg4 int) ([]models.AuthenticationAttempt, error) {
|
2019-11-17 08:05:46 +07:00
|
|
|
m.ctrl.T.Helper()
|
2021-11-23 16:45:38 +07:00
|
|
|
ret := m.ctrl.Call(m, "LoadAuthenticationLogs", arg0, arg1, arg2, arg3, arg4)
|
|
|
|
ret0, _ := ret[0].([]models.AuthenticationAttempt)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
|
|
|
// LoadAuthenticationLogs indicates an expected call of LoadAuthenticationLogs.
|
2021-12-01 19:11:29 +07:00
|
|
|
func (mr *MockStorageMockRecorder) LoadAuthenticationLogs(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call {
|
2021-11-23 16:45:38 +07:00
|
|
|
mr.mock.ctrl.T.Helper()
|
2021-12-01 19:11:29 +07:00
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "LoadAuthenticationLogs", reflect.TypeOf((*MockStorage)(nil).LoadAuthenticationLogs), arg0, arg1, arg2, arg3, arg4)
|
2021-11-23 16:45:38 +07:00
|
|
|
}
|
|
|
|
|
|
|
|
// LoadPreferred2FAMethod mocks base method.
|
2021-12-01 19:11:29 +07:00
|
|
|
func (m *MockStorage) LoadPreferred2FAMethod(arg0 context.Context, arg1 string) (string, error) {
|
2021-11-23 16:45:38 +07:00
|
|
|
m.ctrl.T.Helper()
|
|
|
|
ret := m.ctrl.Call(m, "LoadPreferred2FAMethod", arg0, arg1)
|
|
|
|
ret0, _ := ret[0].(string)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
|
|
|
// LoadPreferred2FAMethod indicates an expected call of LoadPreferred2FAMethod.
|
2021-12-01 19:11:29 +07:00
|
|
|
func (mr *MockStorageMockRecorder) LoadPreferred2FAMethod(arg0, arg1 interface{}) *gomock.Call {
|
2021-11-23 16:45:38 +07:00
|
|
|
mr.mock.ctrl.T.Helper()
|
2021-12-01 19:11:29 +07:00
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "LoadPreferred2FAMethod", reflect.TypeOf((*MockStorage)(nil).LoadPreferred2FAMethod), arg0, arg1)
|
2021-11-23 16:45:38 +07:00
|
|
|
}
|
|
|
|
|
2021-12-01 10:32:58 +07:00
|
|
|
// LoadPreferredDuoDevice mocks base method.
|
2021-12-01 19:11:29 +07:00
|
|
|
func (m *MockStorage) LoadPreferredDuoDevice(arg0 context.Context, arg1 string) (*models.DuoDevice, error) {
|
2021-12-01 10:32:58 +07:00
|
|
|
m.ctrl.T.Helper()
|
|
|
|
ret := m.ctrl.Call(m, "LoadPreferredDuoDevice", arg0, arg1)
|
|
|
|
ret0, _ := ret[0].(*models.DuoDevice)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
|
|
|
// LoadPreferredDuoDevice indicates an expected call of LoadPreferredDuoDevice.
|
2021-12-01 19:11:29 +07:00
|
|
|
func (mr *MockStorageMockRecorder) LoadPreferredDuoDevice(arg0, arg1 interface{}) *gomock.Call {
|
2021-12-01 10:32:58 +07:00
|
|
|
mr.mock.ctrl.T.Helper()
|
2021-12-01 19:11:29 +07:00
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "LoadPreferredDuoDevice", reflect.TypeOf((*MockStorage)(nil).LoadPreferredDuoDevice), arg0, arg1)
|
2021-12-01 10:32:58 +07:00
|
|
|
}
|
|
|
|
|
2021-11-23 16:45:38 +07:00
|
|
|
// LoadTOTPConfiguration mocks base method.
|
2021-12-01 19:11:29 +07:00
|
|
|
func (m *MockStorage) LoadTOTPConfiguration(arg0 context.Context, arg1 string) (*models.TOTPConfiguration, error) {
|
2021-11-23 16:45:38 +07:00
|
|
|
m.ctrl.T.Helper()
|
|
|
|
ret := m.ctrl.Call(m, "LoadTOTPConfiguration", arg0, arg1)
|
|
|
|
ret0, _ := ret[0].(*models.TOTPConfiguration)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
|
|
|
// LoadTOTPConfiguration indicates an expected call of LoadTOTPConfiguration.
|
2021-12-01 19:11:29 +07:00
|
|
|
func (mr *MockStorageMockRecorder) LoadTOTPConfiguration(arg0, arg1 interface{}) *gomock.Call {
|
2021-11-23 16:45:38 +07:00
|
|
|
mr.mock.ctrl.T.Helper()
|
2021-12-01 19:11:29 +07:00
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "LoadTOTPConfiguration", reflect.TypeOf((*MockStorage)(nil).LoadTOTPConfiguration), arg0, arg1)
|
2021-11-23 16:45:38 +07:00
|
|
|
}
|
|
|
|
|
2021-11-25 08:56:58 +07:00
|
|
|
// LoadTOTPConfigurations mocks base method.
|
2021-12-01 19:11:29 +07:00
|
|
|
func (m *MockStorage) LoadTOTPConfigurations(arg0 context.Context, arg1, arg2 int) ([]models.TOTPConfiguration, error) {
|
2021-11-25 08:56:58 +07:00
|
|
|
m.ctrl.T.Helper()
|
|
|
|
ret := m.ctrl.Call(m, "LoadTOTPConfigurations", arg0, arg1, arg2)
|
|
|
|
ret0, _ := ret[0].([]models.TOTPConfiguration)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
|
|
|
// LoadTOTPConfigurations indicates an expected call of LoadTOTPConfigurations.
|
2021-12-01 19:11:29 +07:00
|
|
|
func (mr *MockStorageMockRecorder) LoadTOTPConfigurations(arg0, arg1, arg2 interface{}) *gomock.Call {
|
2021-11-25 08:56:58 +07:00
|
|
|
mr.mock.ctrl.T.Helper()
|
2021-12-01 19:11:29 +07:00
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "LoadTOTPConfigurations", reflect.TypeOf((*MockStorage)(nil).LoadTOTPConfigurations), arg0, arg1, arg2)
|
2021-11-25 08:56:58 +07:00
|
|
|
}
|
|
|
|
|
2022-03-03 18:20:43 +07:00
|
|
|
// LoadUserInfo mocks base method.
|
|
|
|
func (m *MockStorage) LoadUserInfo(arg0 context.Context, arg1 string) (models.UserInfo, error) {
|
2021-11-23 16:45:38 +07:00
|
|
|
m.ctrl.T.Helper()
|
2022-03-03 18:20:43 +07:00
|
|
|
ret := m.ctrl.Call(m, "LoadUserInfo", arg0, arg1)
|
|
|
|
ret0, _ := ret[0].(models.UserInfo)
|
2021-11-23 16:45:38 +07:00
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
2019-11-17 08:05:46 +07:00
|
|
|
}
|
|
|
|
|
2022-03-03 18:20:43 +07:00
|
|
|
// LoadUserInfo indicates an expected call of LoadUserInfo.
|
|
|
|
func (mr *MockStorageMockRecorder) LoadUserInfo(arg0, arg1 interface{}) *gomock.Call {
|
2019-11-17 08:05:46 +07:00
|
|
|
mr.mock.ctrl.T.Helper()
|
2022-03-03 18:20:43 +07:00
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "LoadUserInfo", reflect.TypeOf((*MockStorage)(nil).LoadUserInfo), arg0, arg1)
|
2019-11-17 08:05:46 +07:00
|
|
|
}
|
|
|
|
|
2022-03-03 18:20:43 +07:00
|
|
|
// LoadWebauthnDevices mocks base method.
|
|
|
|
func (m *MockStorage) LoadWebauthnDevices(arg0 context.Context, arg1, arg2 int) ([]models.WebauthnDevice, error) {
|
2021-12-03 07:04:11 +07:00
|
|
|
m.ctrl.T.Helper()
|
2022-03-03 18:20:43 +07:00
|
|
|
ret := m.ctrl.Call(m, "LoadWebauthnDevices", arg0, arg1, arg2)
|
|
|
|
ret0, _ := ret[0].([]models.WebauthnDevice)
|
2021-12-03 07:04:11 +07:00
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2022-03-03 18:20:43 +07:00
|
|
|
// LoadWebauthnDevices indicates an expected call of LoadWebauthnDevices.
|
|
|
|
func (mr *MockStorageMockRecorder) LoadWebauthnDevices(arg0, arg1, arg2 interface{}) *gomock.Call {
|
2021-12-03 07:04:11 +07:00
|
|
|
mr.mock.ctrl.T.Helper()
|
2022-03-03 18:20:43 +07:00
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "LoadWebauthnDevices", reflect.TypeOf((*MockStorage)(nil).LoadWebauthnDevices), arg0, arg1, arg2)
|
2021-12-03 07:04:11 +07:00
|
|
|
}
|
|
|
|
|
2022-03-03 18:20:43 +07:00
|
|
|
// LoadWebauthnDevicesByUsername mocks base method.
|
|
|
|
func (m *MockStorage) LoadWebauthnDevicesByUsername(arg0 context.Context, arg1 string) ([]models.WebauthnDevice, error) {
|
2019-11-17 08:05:46 +07:00
|
|
|
m.ctrl.T.Helper()
|
2022-03-03 18:20:43 +07:00
|
|
|
ret := m.ctrl.Call(m, "LoadWebauthnDevicesByUsername", arg0, arg1)
|
|
|
|
ret0, _ := ret[0].([]models.WebauthnDevice)
|
2021-11-23 16:45:38 +07:00
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2022-03-03 18:20:43 +07:00
|
|
|
// LoadWebauthnDevicesByUsername indicates an expected call of LoadWebauthnDevicesByUsername.
|
|
|
|
func (mr *MockStorageMockRecorder) LoadWebauthnDevicesByUsername(arg0, arg1 interface{}) *gomock.Call {
|
2021-11-23 16:45:38 +07:00
|
|
|
mr.mock.ctrl.T.Helper()
|
2022-03-03 18:20:43 +07:00
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "LoadWebauthnDevicesByUsername", reflect.TypeOf((*MockStorage)(nil).LoadWebauthnDevicesByUsername), arg0, arg1)
|
2021-11-23 16:45:38 +07:00
|
|
|
}
|
|
|
|
|
|
|
|
// SaveIdentityVerification mocks base method.
|
2021-12-01 19:11:29 +07:00
|
|
|
func (m *MockStorage) SaveIdentityVerification(arg0 context.Context, arg1 models.IdentityVerification) error {
|
2019-11-17 08:05:46 +07:00
|
|
|
m.ctrl.T.Helper()
|
2021-11-23 16:45:38 +07:00
|
|
|
ret := m.ctrl.Call(m, "SaveIdentityVerification", arg0, arg1)
|
2019-12-08 00:51:47 +07:00
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
2019-11-17 08:05:46 +07:00
|
|
|
}
|
|
|
|
|
2021-11-23 16:45:38 +07:00
|
|
|
// SaveIdentityVerification indicates an expected call of SaveIdentityVerification.
|
2021-12-01 19:11:29 +07:00
|
|
|
func (mr *MockStorageMockRecorder) SaveIdentityVerification(arg0, arg1 interface{}) *gomock.Call {
|
2019-11-17 08:05:46 +07:00
|
|
|
mr.mock.ctrl.T.Helper()
|
2021-12-01 19:11:29 +07:00
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SaveIdentityVerification", reflect.TypeOf((*MockStorage)(nil).SaveIdentityVerification), arg0, arg1)
|
2019-11-17 08:05:46 +07:00
|
|
|
}
|
|
|
|
|
2021-11-23 16:45:38 +07:00
|
|
|
// SavePreferred2FAMethod mocks base method.
|
2021-12-01 19:11:29 +07:00
|
|
|
func (m *MockStorage) SavePreferred2FAMethod(arg0 context.Context, arg1, arg2 string) error {
|
2019-11-17 08:05:46 +07:00
|
|
|
m.ctrl.T.Helper()
|
2021-11-23 16:45:38 +07:00
|
|
|
ret := m.ctrl.Call(m, "SavePreferred2FAMethod", arg0, arg1, arg2)
|
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
2019-11-17 08:05:46 +07:00
|
|
|
}
|
|
|
|
|
2021-11-23 16:45:38 +07:00
|
|
|
// SavePreferred2FAMethod indicates an expected call of SavePreferred2FAMethod.
|
2021-12-01 19:11:29 +07:00
|
|
|
func (mr *MockStorageMockRecorder) SavePreferred2FAMethod(arg0, arg1, arg2 interface{}) *gomock.Call {
|
2019-11-17 08:05:46 +07:00
|
|
|
mr.mock.ctrl.T.Helper()
|
2021-12-01 19:11:29 +07:00
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SavePreferred2FAMethod", reflect.TypeOf((*MockStorage)(nil).SavePreferred2FAMethod), arg0, arg1, arg2)
|
2019-11-17 08:05:46 +07:00
|
|
|
}
|
|
|
|
|
2021-12-01 10:32:58 +07:00
|
|
|
// SavePreferredDuoDevice mocks base method.
|
2021-12-01 19:11:29 +07:00
|
|
|
func (m *MockStorage) SavePreferredDuoDevice(arg0 context.Context, arg1 models.DuoDevice) error {
|
2021-12-01 10:32:58 +07:00
|
|
|
m.ctrl.T.Helper()
|
|
|
|
ret := m.ctrl.Call(m, "SavePreferredDuoDevice", arg0, arg1)
|
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
|
|
|
// SavePreferredDuoDevice indicates an expected call of SavePreferredDuoDevice.
|
2021-12-01 19:11:29 +07:00
|
|
|
func (mr *MockStorageMockRecorder) SavePreferredDuoDevice(arg0, arg1 interface{}) *gomock.Call {
|
2021-12-01 10:32:58 +07:00
|
|
|
mr.mock.ctrl.T.Helper()
|
2021-12-01 19:11:29 +07:00
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SavePreferredDuoDevice", reflect.TypeOf((*MockStorage)(nil).SavePreferredDuoDevice), arg0, arg1)
|
2021-12-01 10:32:58 +07:00
|
|
|
}
|
|
|
|
|
2021-11-23 16:45:38 +07:00
|
|
|
// SaveTOTPConfiguration mocks base method.
|
2021-12-01 19:11:29 +07:00
|
|
|
func (m *MockStorage) SaveTOTPConfiguration(arg0 context.Context, arg1 models.TOTPConfiguration) error {
|
2019-11-17 08:05:46 +07:00
|
|
|
m.ctrl.T.Helper()
|
2021-11-23 16:45:38 +07:00
|
|
|
ret := m.ctrl.Call(m, "SaveTOTPConfiguration", arg0, arg1)
|
2019-11-17 08:05:46 +07:00
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2021-11-23 16:45:38 +07:00
|
|
|
// SaveTOTPConfiguration indicates an expected call of SaveTOTPConfiguration.
|
2021-12-01 19:11:29 +07:00
|
|
|
func (mr *MockStorageMockRecorder) SaveTOTPConfiguration(arg0, arg1 interface{}) *gomock.Call {
|
2019-11-17 08:05:46 +07:00
|
|
|
mr.mock.ctrl.T.Helper()
|
2021-12-01 19:11:29 +07:00
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SaveTOTPConfiguration", reflect.TypeOf((*MockStorage)(nil).SaveTOTPConfiguration), arg0, arg1)
|
2019-11-17 08:05:46 +07:00
|
|
|
}
|
|
|
|
|
2022-03-03 18:20:43 +07:00
|
|
|
// SaveWebauthnDevice mocks base method.
|
|
|
|
func (m *MockStorage) SaveWebauthnDevice(arg0 context.Context, arg1 models.WebauthnDevice) error {
|
2019-11-17 08:05:46 +07:00
|
|
|
m.ctrl.T.Helper()
|
2022-03-03 18:20:43 +07:00
|
|
|
ret := m.ctrl.Call(m, "SaveWebauthnDevice", arg0, arg1)
|
2019-11-17 08:05:46 +07:00
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2022-03-03 18:20:43 +07:00
|
|
|
// SaveWebauthnDevice indicates an expected call of SaveWebauthnDevice.
|
|
|
|
func (mr *MockStorageMockRecorder) SaveWebauthnDevice(arg0, arg1 interface{}) *gomock.Call {
|
2019-11-17 08:05:46 +07:00
|
|
|
mr.mock.ctrl.T.Helper()
|
2022-03-03 18:20:43 +07:00
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SaveWebauthnDevice", reflect.TypeOf((*MockStorage)(nil).SaveWebauthnDevice), arg0, arg1)
|
2019-11-17 08:05:46 +07:00
|
|
|
}
|
|
|
|
|
2021-11-25 08:56:58 +07:00
|
|
|
// SchemaEncryptionChangeKey mocks base method.
|
2021-12-01 19:11:29 +07:00
|
|
|
func (m *MockStorage) SchemaEncryptionChangeKey(arg0 context.Context, arg1 string) error {
|
2021-11-25 08:56:58 +07:00
|
|
|
m.ctrl.T.Helper()
|
|
|
|
ret := m.ctrl.Call(m, "SchemaEncryptionChangeKey", arg0, arg1)
|
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
|
|
|
// SchemaEncryptionChangeKey indicates an expected call of SchemaEncryptionChangeKey.
|
2021-12-01 19:11:29 +07:00
|
|
|
func (mr *MockStorageMockRecorder) SchemaEncryptionChangeKey(arg0, arg1 interface{}) *gomock.Call {
|
2021-11-25 08:56:58 +07:00
|
|
|
mr.mock.ctrl.T.Helper()
|
2021-12-01 19:11:29 +07:00
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SchemaEncryptionChangeKey", reflect.TypeOf((*MockStorage)(nil).SchemaEncryptionChangeKey), arg0, arg1)
|
2021-11-25 08:56:58 +07:00
|
|
|
}
|
|
|
|
|
|
|
|
// SchemaEncryptionCheckKey mocks base method.
|
2021-12-01 19:11:29 +07:00
|
|
|
func (m *MockStorage) SchemaEncryptionCheckKey(arg0 context.Context, arg1 bool) error {
|
2021-11-25 08:56:58 +07:00
|
|
|
m.ctrl.T.Helper()
|
|
|
|
ret := m.ctrl.Call(m, "SchemaEncryptionCheckKey", arg0, arg1)
|
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
|
|
|
// SchemaEncryptionCheckKey indicates an expected call of SchemaEncryptionCheckKey.
|
2021-12-01 19:11:29 +07:00
|
|
|
func (mr *MockStorageMockRecorder) SchemaEncryptionCheckKey(arg0, arg1 interface{}) *gomock.Call {
|
2021-11-25 08:56:58 +07:00
|
|
|
mr.mock.ctrl.T.Helper()
|
2021-12-01 19:11:29 +07:00
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SchemaEncryptionCheckKey", reflect.TypeOf((*MockStorage)(nil).SchemaEncryptionCheckKey), arg0, arg1)
|
2021-11-25 08:56:58 +07:00
|
|
|
}
|
|
|
|
|
2021-11-23 16:45:38 +07:00
|
|
|
// SchemaLatestVersion mocks base method.
|
2021-12-01 19:11:29 +07:00
|
|
|
func (m *MockStorage) SchemaLatestVersion() (int, error) {
|
2019-11-17 08:05:46 +07:00
|
|
|
m.ctrl.T.Helper()
|
2021-11-23 16:45:38 +07:00
|
|
|
ret := m.ctrl.Call(m, "SchemaLatestVersion")
|
|
|
|
ret0, _ := ret[0].(int)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
2019-11-17 08:05:46 +07:00
|
|
|
}
|
|
|
|
|
2021-11-23 16:45:38 +07:00
|
|
|
// SchemaLatestVersion indicates an expected call of SchemaLatestVersion.
|
2021-12-01 19:11:29 +07:00
|
|
|
func (mr *MockStorageMockRecorder) SchemaLatestVersion() *gomock.Call {
|
2019-11-17 08:05:46 +07:00
|
|
|
mr.mock.ctrl.T.Helper()
|
2021-12-01 19:11:29 +07:00
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SchemaLatestVersion", reflect.TypeOf((*MockStorage)(nil).SchemaLatestVersion))
|
2019-11-17 08:05:46 +07:00
|
|
|
}
|
|
|
|
|
2021-11-23 16:45:38 +07:00
|
|
|
// SchemaMigrate mocks base method.
|
2021-12-01 19:11:29 +07:00
|
|
|
func (m *MockStorage) SchemaMigrate(arg0 context.Context, arg1 bool, arg2 int) error {
|
2019-11-17 08:05:46 +07:00
|
|
|
m.ctrl.T.Helper()
|
2021-11-23 16:45:38 +07:00
|
|
|
ret := m.ctrl.Call(m, "SchemaMigrate", arg0, arg1, arg2)
|
2019-11-17 08:05:46 +07:00
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2021-11-23 16:45:38 +07:00
|
|
|
// SchemaMigrate indicates an expected call of SchemaMigrate.
|
2021-12-01 19:11:29 +07:00
|
|
|
func (mr *MockStorageMockRecorder) SchemaMigrate(arg0, arg1, arg2 interface{}) *gomock.Call {
|
2019-11-17 08:05:46 +07:00
|
|
|
mr.mock.ctrl.T.Helper()
|
2021-12-01 19:11:29 +07:00
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SchemaMigrate", reflect.TypeOf((*MockStorage)(nil).SchemaMigrate), arg0, arg1, arg2)
|
2019-11-17 08:05:46 +07:00
|
|
|
}
|
|
|
|
|
2021-11-23 16:45:38 +07:00
|
|
|
// SchemaMigrationHistory mocks base method.
|
2021-12-01 19:11:29 +07:00
|
|
|
func (m *MockStorage) SchemaMigrationHistory(arg0 context.Context) ([]models.Migration, error) {
|
2019-11-17 08:05:46 +07:00
|
|
|
m.ctrl.T.Helper()
|
2021-11-23 16:45:38 +07:00
|
|
|
ret := m.ctrl.Call(m, "SchemaMigrationHistory", arg0)
|
|
|
|
ret0, _ := ret[0].([]models.Migration)
|
2019-12-08 00:51:47 +07:00
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
2019-11-17 08:05:46 +07:00
|
|
|
}
|
|
|
|
|
2021-11-23 16:45:38 +07:00
|
|
|
// SchemaMigrationHistory indicates an expected call of SchemaMigrationHistory.
|
2021-12-01 19:11:29 +07:00
|
|
|
func (mr *MockStorageMockRecorder) SchemaMigrationHistory(arg0 interface{}) *gomock.Call {
|
2021-11-23 16:45:38 +07:00
|
|
|
mr.mock.ctrl.T.Helper()
|
2021-12-01 19:11:29 +07:00
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SchemaMigrationHistory", reflect.TypeOf((*MockStorage)(nil).SchemaMigrationHistory), arg0)
|
2021-11-23 16:45:38 +07:00
|
|
|
}
|
|
|
|
|
|
|
|
// SchemaMigrationsDown mocks base method.
|
2021-12-01 19:11:29 +07:00
|
|
|
func (m *MockStorage) SchemaMigrationsDown(arg0 context.Context, arg1 int) ([]models.SchemaMigration, error) {
|
2021-11-23 16:45:38 +07:00
|
|
|
m.ctrl.T.Helper()
|
|
|
|
ret := m.ctrl.Call(m, "SchemaMigrationsDown", arg0, arg1)
|
2021-12-01 19:11:29 +07:00
|
|
|
ret0, _ := ret[0].([]models.SchemaMigration)
|
2021-11-23 16:45:38 +07:00
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
|
|
|
// SchemaMigrationsDown indicates an expected call of SchemaMigrationsDown.
|
2021-12-01 19:11:29 +07:00
|
|
|
func (mr *MockStorageMockRecorder) SchemaMigrationsDown(arg0, arg1 interface{}) *gomock.Call {
|
2021-11-23 16:45:38 +07:00
|
|
|
mr.mock.ctrl.T.Helper()
|
2021-12-01 19:11:29 +07:00
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SchemaMigrationsDown", reflect.TypeOf((*MockStorage)(nil).SchemaMigrationsDown), arg0, arg1)
|
2021-11-23 16:45:38 +07:00
|
|
|
}
|
|
|
|
|
|
|
|
// SchemaMigrationsUp mocks base method.
|
2021-12-01 19:11:29 +07:00
|
|
|
func (m *MockStorage) SchemaMigrationsUp(arg0 context.Context, arg1 int) ([]models.SchemaMigration, error) {
|
2021-11-23 16:45:38 +07:00
|
|
|
m.ctrl.T.Helper()
|
|
|
|
ret := m.ctrl.Call(m, "SchemaMigrationsUp", arg0, arg1)
|
2021-12-01 19:11:29 +07:00
|
|
|
ret0, _ := ret[0].([]models.SchemaMigration)
|
2021-11-23 16:45:38 +07:00
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
|
|
|
// SchemaMigrationsUp indicates an expected call of SchemaMigrationsUp.
|
2021-12-01 19:11:29 +07:00
|
|
|
func (mr *MockStorageMockRecorder) SchemaMigrationsUp(arg0, arg1 interface{}) *gomock.Call {
|
2021-11-23 16:45:38 +07:00
|
|
|
mr.mock.ctrl.T.Helper()
|
2021-12-01 19:11:29 +07:00
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SchemaMigrationsUp", reflect.TypeOf((*MockStorage)(nil).SchemaMigrationsUp), arg0, arg1)
|
2021-11-23 16:45:38 +07:00
|
|
|
}
|
|
|
|
|
|
|
|
// SchemaTables mocks base method.
|
2021-12-01 19:11:29 +07:00
|
|
|
func (m *MockStorage) SchemaTables(arg0 context.Context) ([]string, error) {
|
2021-11-23 16:45:38 +07:00
|
|
|
m.ctrl.T.Helper()
|
|
|
|
ret := m.ctrl.Call(m, "SchemaTables", arg0)
|
|
|
|
ret0, _ := ret[0].([]string)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
|
|
|
// SchemaTables indicates an expected call of SchemaTables.
|
2021-12-01 19:11:29 +07:00
|
|
|
func (mr *MockStorageMockRecorder) SchemaTables(arg0 interface{}) *gomock.Call {
|
2021-11-23 16:45:38 +07:00
|
|
|
mr.mock.ctrl.T.Helper()
|
2021-12-01 19:11:29 +07:00
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SchemaTables", reflect.TypeOf((*MockStorage)(nil).SchemaTables), arg0)
|
2021-11-23 16:45:38 +07:00
|
|
|
}
|
|
|
|
|
|
|
|
// SchemaVersion mocks base method.
|
2021-12-01 19:11:29 +07:00
|
|
|
func (m *MockStorage) SchemaVersion(arg0 context.Context) (int, error) {
|
2021-11-23 16:45:38 +07:00
|
|
|
m.ctrl.T.Helper()
|
|
|
|
ret := m.ctrl.Call(m, "SchemaVersion", arg0)
|
|
|
|
ret0, _ := ret[0].(int)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
|
|
|
// SchemaVersion indicates an expected call of SchemaVersion.
|
2021-12-01 19:11:29 +07:00
|
|
|
func (mr *MockStorageMockRecorder) SchemaVersion(arg0 interface{}) *gomock.Call {
|
2021-11-23 16:45:38 +07:00
|
|
|
mr.mock.ctrl.T.Helper()
|
2021-12-01 19:11:29 +07:00
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SchemaVersion", reflect.TypeOf((*MockStorage)(nil).SchemaVersion), arg0)
|
2021-11-23 16:45:38 +07:00
|
|
|
}
|
|
|
|
|
|
|
|
// StartupCheck mocks base method.
|
2021-12-01 19:11:29 +07:00
|
|
|
func (m *MockStorage) StartupCheck() error {
|
2021-11-23 16:45:38 +07:00
|
|
|
m.ctrl.T.Helper()
|
|
|
|
ret := m.ctrl.Call(m, "StartupCheck")
|
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
|
|
|
// StartupCheck indicates an expected call of StartupCheck.
|
2021-12-01 19:11:29 +07:00
|
|
|
func (mr *MockStorageMockRecorder) StartupCheck() *gomock.Call {
|
2019-11-17 08:05:46 +07:00
|
|
|
mr.mock.ctrl.T.Helper()
|
2021-12-01 19:11:29 +07:00
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StartupCheck", reflect.TypeOf((*MockStorage)(nil).StartupCheck))
|
2019-11-17 08:05:46 +07:00
|
|
|
}
|
2022-03-03 18:20:43 +07:00
|
|
|
|
|
|
|
// UpdateTOTPConfigurationSignIn mocks base method.
|
|
|
|
func (m *MockStorage) UpdateTOTPConfigurationSignIn(arg0 context.Context, arg1 int, arg2 *time.Time) error {
|
|
|
|
m.ctrl.T.Helper()
|
|
|
|
ret := m.ctrl.Call(m, "UpdateTOTPConfigurationSignIn", arg0, arg1, arg2)
|
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
|
|
|
// UpdateTOTPConfigurationSignIn indicates an expected call of UpdateTOTPConfigurationSignIn.
|
|
|
|
func (mr *MockStorageMockRecorder) UpdateTOTPConfigurationSignIn(arg0, arg1, arg2 interface{}) *gomock.Call {
|
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateTOTPConfigurationSignIn", reflect.TypeOf((*MockStorage)(nil).UpdateTOTPConfigurationSignIn), arg0, arg1, arg2)
|
|
|
|
}
|
|
|
|
|
|
|
|
// UpdateWebauthnDeviceSignIn mocks base method.
|
|
|
|
func (m *MockStorage) UpdateWebauthnDeviceSignIn(arg0 context.Context, arg1 int, arg2 string, arg3 *time.Time, arg4 uint32, arg5 bool) error {
|
|
|
|
m.ctrl.T.Helper()
|
|
|
|
ret := m.ctrl.Call(m, "UpdateWebauthnDeviceSignIn", arg0, arg1, arg2, arg3, arg4, arg5)
|
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
|
|
|
// UpdateWebauthnDeviceSignIn indicates an expected call of UpdateWebauthnDeviceSignIn.
|
|
|
|
func (mr *MockStorageMockRecorder) UpdateWebauthnDeviceSignIn(arg0, arg1, arg2, arg3, arg4, arg5 interface{}) *gomock.Call {
|
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateWebauthnDeviceSignIn", reflect.TypeOf((*MockStorage)(nil).UpdateWebauthnDeviceSignIn), arg0, arg1, arg2, arg3, arg4, arg5)
|
|
|
|
}
|