2019-11-17 01:05:46 +00:00
|
|
|
// Code generated by MockGen. DO NOT EDIT.
|
2021-11-23 09:45:38 +00:00
|
|
|
// Source: ./internal/storage/provider.go
|
2019-11-17 01:05:46 +00:00
|
|
|
|
|
|
|
package storage
|
|
|
|
|
|
|
|
import (
|
2021-11-23 09:45:38 +00:00
|
|
|
context "context"
|
2019-11-17 01:05:46 +00:00
|
|
|
reflect "reflect"
|
|
|
|
time "time"
|
2020-04-05 12:37:21 +00:00
|
|
|
|
|
|
|
gomock "github.com/golang/mock/gomock"
|
|
|
|
|
2021-08-11 01:04:35 +00:00
|
|
|
models "github.com/authelia/authelia/v4/internal/models"
|
2019-11-17 01:05:46 +00:00
|
|
|
)
|
|
|
|
|
2021-11-23 09:45:38 +00:00
|
|
|
// MockProvider is a mock of Provider interface.
|
2019-11-17 01:05:46 +00:00
|
|
|
type MockProvider struct {
|
|
|
|
ctrl *gomock.Controller
|
|
|
|
recorder *MockProviderMockRecorder
|
|
|
|
}
|
|
|
|
|
2021-11-23 09:45:38 +00:00
|
|
|
// MockProviderMockRecorder is the mock recorder for MockProvider.
|
2019-11-17 01:05:46 +00:00
|
|
|
type MockProviderMockRecorder struct {
|
|
|
|
mock *MockProvider
|
|
|
|
}
|
|
|
|
|
2021-11-23 09:45:38 +00:00
|
|
|
// NewMockProvider creates a new mock instance.
|
2019-11-17 01:05:46 +00:00
|
|
|
func NewMockProvider(ctrl *gomock.Controller) *MockProvider {
|
|
|
|
mock := &MockProvider{ctrl: ctrl}
|
|
|
|
mock.recorder = &MockProviderMockRecorder{mock}
|
|
|
|
return mock
|
|
|
|
}
|
|
|
|
|
2021-11-23 09:45:38 +00:00
|
|
|
// EXPECT returns an object that allows the caller to indicate expected use.
|
2019-11-17 01:05:46 +00:00
|
|
|
func (m *MockProvider) EXPECT() *MockProviderMockRecorder {
|
|
|
|
return m.recorder
|
|
|
|
}
|
|
|
|
|
2021-11-23 09:45:38 +00:00
|
|
|
// AppendAuthenticationLog mocks base method.
|
|
|
|
func (m *MockProvider) AppendAuthenticationLog(arg0 context.Context, arg1 models.AuthenticationAttempt) error {
|
2019-11-17 01:05:46 +00:00
|
|
|
m.ctrl.T.Helper()
|
2021-11-23 09:45:38 +00:00
|
|
|
ret := m.ctrl.Call(m, "AppendAuthenticationLog", arg0, arg1)
|
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
2019-12-07 17:51:47 +00:00
|
|
|
}
|
|
|
|
|
2021-11-23 09:45:38 +00:00
|
|
|
// AppendAuthenticationLog indicates an expected call of AppendAuthenticationLog.
|
|
|
|
func (mr *MockProviderMockRecorder) AppendAuthenticationLog(arg0, arg1 interface{}) *gomock.Call {
|
2019-12-07 17:51:47 +00:00
|
|
|
mr.mock.ctrl.T.Helper()
|
2021-11-23 09:45:38 +00:00
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AppendAuthenticationLog", reflect.TypeOf((*MockProvider)(nil).AppendAuthenticationLog), arg0, arg1)
|
2019-12-07 17:51:47 +00:00
|
|
|
}
|
|
|
|
|
2021-11-23 09:45:38 +00:00
|
|
|
// DeleteTOTPConfiguration mocks base method.
|
|
|
|
func (m *MockProvider) DeleteTOTPConfiguration(arg0 context.Context, arg1 string) error {
|
2019-12-07 17:51:47 +00:00
|
|
|
m.ctrl.T.Helper()
|
2021-11-23 09:45:38 +00:00
|
|
|
ret := m.ctrl.Call(m, "DeleteTOTPConfiguration", arg0, arg1)
|
2019-11-17 01:05:46 +00:00
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2021-11-23 09:45:38 +00:00
|
|
|
// DeleteTOTPConfiguration indicates an expected call of DeleteTOTPConfiguration.
|
|
|
|
func (mr *MockProviderMockRecorder) DeleteTOTPConfiguration(arg0, arg1 interface{}) *gomock.Call {
|
2019-11-17 01:05:46 +00:00
|
|
|
mr.mock.ctrl.T.Helper()
|
2021-11-23 09:45:38 +00:00
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteTOTPConfiguration", reflect.TypeOf((*MockProvider)(nil).DeleteTOTPConfiguration), arg0, arg1)
|
2019-11-17 01:05:46 +00:00
|
|
|
}
|
|
|
|
|
2021-11-23 09:45:38 +00:00
|
|
|
// FindIdentityVerification mocks base method.
|
|
|
|
func (m *MockProvider) FindIdentityVerification(arg0 context.Context, arg1 string) (bool, error) {
|
2019-11-17 01:05:46 +00:00
|
|
|
m.ctrl.T.Helper()
|
2021-11-23 09:45:38 +00:00
|
|
|
ret := m.ctrl.Call(m, "FindIdentityVerification", arg0, arg1)
|
2019-11-17 01:05:46 +00:00
|
|
|
ret0, _ := ret[0].(bool)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2021-11-23 09:45:38 +00:00
|
|
|
// FindIdentityVerification indicates an expected call of FindIdentityVerification.
|
|
|
|
func (mr *MockProviderMockRecorder) FindIdentityVerification(arg0, arg1 interface{}) *gomock.Call {
|
2019-11-17 01:05:46 +00:00
|
|
|
mr.mock.ctrl.T.Helper()
|
2021-11-23 09:45:38 +00:00
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FindIdentityVerification", reflect.TypeOf((*MockProvider)(nil).FindIdentityVerification), arg0, arg1)
|
2019-11-17 01:05:46 +00:00
|
|
|
}
|
|
|
|
|
2021-11-23 09:45:38 +00:00
|
|
|
// LoadAuthenticationLogs mocks base method.
|
|
|
|
func (m *MockProvider) LoadAuthenticationLogs(arg0 context.Context, arg1 string, arg2 time.Time, arg3, arg4 int) ([]models.AuthenticationAttempt, error) {
|
2019-11-17 01:05:46 +00:00
|
|
|
m.ctrl.T.Helper()
|
2021-11-23 09:45:38 +00: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.
|
|
|
|
func (mr *MockProviderMockRecorder) LoadAuthenticationLogs(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call {
|
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "LoadAuthenticationLogs", reflect.TypeOf((*MockProvider)(nil).LoadAuthenticationLogs), arg0, arg1, arg2, arg3, arg4)
|
|
|
|
}
|
|
|
|
|
|
|
|
// LoadPreferred2FAMethod mocks base method.
|
|
|
|
func (m *MockProvider) LoadPreferred2FAMethod(arg0 context.Context, arg1 string) (string, error) {
|
|
|
|
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.
|
|
|
|
func (mr *MockProviderMockRecorder) LoadPreferred2FAMethod(arg0, arg1 interface{}) *gomock.Call {
|
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "LoadPreferred2FAMethod", reflect.TypeOf((*MockProvider)(nil).LoadPreferred2FAMethod), arg0, arg1)
|
|
|
|
}
|
|
|
|
|
|
|
|
// LoadTOTPConfiguration mocks base method.
|
|
|
|
func (m *MockProvider) LoadTOTPConfiguration(arg0 context.Context, arg1 string) (*models.TOTPConfiguration, error) {
|
|
|
|
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.
|
|
|
|
func (mr *MockProviderMockRecorder) LoadTOTPConfiguration(arg0, arg1 interface{}) *gomock.Call {
|
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "LoadTOTPConfiguration", reflect.TypeOf((*MockProvider)(nil).LoadTOTPConfiguration), arg0, arg1)
|
|
|
|
}
|
|
|
|
|
|
|
|
// LoadU2FDevice mocks base method.
|
|
|
|
func (m *MockProvider) LoadU2FDevice(arg0 context.Context, arg1 string) (*models.U2FDevice, error) {
|
|
|
|
m.ctrl.T.Helper()
|
|
|
|
ret := m.ctrl.Call(m, "LoadU2FDevice", arg0, arg1)
|
|
|
|
ret0, _ := ret[0].(*models.U2FDevice)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
2019-11-17 01:05:46 +00:00
|
|
|
}
|
|
|
|
|
2021-11-23 09:45:38 +00:00
|
|
|
// LoadU2FDevice indicates an expected call of LoadU2FDevice.
|
|
|
|
func (mr *MockProviderMockRecorder) LoadU2FDevice(arg0, arg1 interface{}) *gomock.Call {
|
2019-11-17 01:05:46 +00:00
|
|
|
mr.mock.ctrl.T.Helper()
|
2021-11-23 09:45:38 +00:00
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "LoadU2FDevice", reflect.TypeOf((*MockProvider)(nil).LoadU2FDevice), arg0, arg1)
|
2019-11-17 01:05:46 +00:00
|
|
|
}
|
|
|
|
|
2021-11-23 09:45:38 +00:00
|
|
|
// LoadUserInfo mocks base method.
|
|
|
|
func (m *MockProvider) LoadUserInfo(arg0 context.Context, arg1 string) (models.UserInfo, error) {
|
2019-11-17 01:05:46 +00:00
|
|
|
m.ctrl.T.Helper()
|
2021-11-23 09:45:38 +00:00
|
|
|
ret := m.ctrl.Call(m, "LoadUserInfo", arg0, arg1)
|
|
|
|
ret0, _ := ret[0].(models.UserInfo)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
|
|
|
// LoadUserInfo indicates an expected call of LoadUserInfo.
|
|
|
|
func (mr *MockProviderMockRecorder) LoadUserInfo(arg0, arg1 interface{}) *gomock.Call {
|
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "LoadUserInfo", reflect.TypeOf((*MockProvider)(nil).LoadUserInfo), arg0, arg1)
|
|
|
|
}
|
|
|
|
|
|
|
|
// RemoveIdentityVerification mocks base method.
|
|
|
|
func (m *MockProvider) RemoveIdentityVerification(arg0 context.Context, arg1 string) error {
|
|
|
|
m.ctrl.T.Helper()
|
|
|
|
ret := m.ctrl.Call(m, "RemoveIdentityVerification", arg0, arg1)
|
2019-12-07 17:51:47 +00:00
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
2019-11-17 01:05:46 +00:00
|
|
|
}
|
|
|
|
|
2021-11-23 09:45:38 +00:00
|
|
|
// RemoveIdentityVerification indicates an expected call of RemoveIdentityVerification.
|
|
|
|
func (mr *MockProviderMockRecorder) RemoveIdentityVerification(arg0, arg1 interface{}) *gomock.Call {
|
2019-11-17 01:05:46 +00:00
|
|
|
mr.mock.ctrl.T.Helper()
|
2021-11-23 09:45:38 +00:00
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RemoveIdentityVerification", reflect.TypeOf((*MockProvider)(nil).RemoveIdentityVerification), arg0, arg1)
|
2019-11-17 01:05:46 +00:00
|
|
|
}
|
|
|
|
|
2021-11-23 09:45:38 +00:00
|
|
|
// SaveIdentityVerification mocks base method.
|
|
|
|
func (m *MockProvider) SaveIdentityVerification(arg0 context.Context, arg1 models.IdentityVerification) error {
|
2019-11-17 01:05:46 +00:00
|
|
|
m.ctrl.T.Helper()
|
2021-11-23 09:45:38 +00:00
|
|
|
ret := m.ctrl.Call(m, "SaveIdentityVerification", arg0, arg1)
|
2019-12-07 17:51:47 +00:00
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
2019-11-17 01:05:46 +00:00
|
|
|
}
|
|
|
|
|
2021-11-23 09:45:38 +00:00
|
|
|
// SaveIdentityVerification indicates an expected call of SaveIdentityVerification.
|
|
|
|
func (mr *MockProviderMockRecorder) SaveIdentityVerification(arg0, arg1 interface{}) *gomock.Call {
|
2019-11-17 01:05:46 +00:00
|
|
|
mr.mock.ctrl.T.Helper()
|
2021-11-23 09:45:38 +00:00
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SaveIdentityVerification", reflect.TypeOf((*MockProvider)(nil).SaveIdentityVerification), arg0, arg1)
|
2019-11-17 01:05:46 +00:00
|
|
|
}
|
|
|
|
|
2021-11-23 09:45:38 +00:00
|
|
|
// SavePreferred2FAMethod mocks base method.
|
|
|
|
func (m *MockProvider) SavePreferred2FAMethod(arg0 context.Context, arg1, arg2 string) error {
|
2019-11-17 01:05:46 +00:00
|
|
|
m.ctrl.T.Helper()
|
2021-11-23 09:45:38 +00:00
|
|
|
ret := m.ctrl.Call(m, "SavePreferred2FAMethod", arg0, arg1, arg2)
|
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
2019-11-17 01:05:46 +00:00
|
|
|
}
|
|
|
|
|
2021-11-23 09:45:38 +00:00
|
|
|
// SavePreferred2FAMethod indicates an expected call of SavePreferred2FAMethod.
|
|
|
|
func (mr *MockProviderMockRecorder) SavePreferred2FAMethod(arg0, arg1, arg2 interface{}) *gomock.Call {
|
2019-11-17 01:05:46 +00:00
|
|
|
mr.mock.ctrl.T.Helper()
|
2021-11-23 09:45:38 +00:00
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SavePreferred2FAMethod", reflect.TypeOf((*MockProvider)(nil).SavePreferred2FAMethod), arg0, arg1, arg2)
|
2019-11-17 01:05:46 +00:00
|
|
|
}
|
|
|
|
|
2021-11-23 09:45:38 +00:00
|
|
|
// SaveTOTPConfiguration mocks base method.
|
|
|
|
func (m *MockProvider) SaveTOTPConfiguration(arg0 context.Context, arg1 models.TOTPConfiguration) error {
|
2019-11-17 01:05:46 +00:00
|
|
|
m.ctrl.T.Helper()
|
2021-11-23 09:45:38 +00:00
|
|
|
ret := m.ctrl.Call(m, "SaveTOTPConfiguration", arg0, arg1)
|
2019-11-17 01:05:46 +00:00
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2021-11-23 09:45:38 +00:00
|
|
|
// SaveTOTPConfiguration indicates an expected call of SaveTOTPConfiguration.
|
|
|
|
func (mr *MockProviderMockRecorder) SaveTOTPConfiguration(arg0, arg1 interface{}) *gomock.Call {
|
2019-11-17 01:05:46 +00:00
|
|
|
mr.mock.ctrl.T.Helper()
|
2021-11-23 09:45:38 +00:00
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SaveTOTPConfiguration", reflect.TypeOf((*MockProvider)(nil).SaveTOTPConfiguration), arg0, arg1)
|
2019-11-17 01:05:46 +00:00
|
|
|
}
|
|
|
|
|
2021-11-23 09:45:38 +00:00
|
|
|
// SaveU2FDevice mocks base method.
|
|
|
|
func (m *MockProvider) SaveU2FDevice(arg0 context.Context, arg1 models.U2FDevice) error {
|
2019-11-17 01:05:46 +00:00
|
|
|
m.ctrl.T.Helper()
|
2021-11-23 09:45:38 +00:00
|
|
|
ret := m.ctrl.Call(m, "SaveU2FDevice", arg0, arg1)
|
2019-11-17 01:05:46 +00:00
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2021-11-23 09:45:38 +00:00
|
|
|
// SaveU2FDevice indicates an expected call of SaveU2FDevice.
|
|
|
|
func (mr *MockProviderMockRecorder) SaveU2FDevice(arg0, arg1 interface{}) *gomock.Call {
|
2019-11-17 01:05:46 +00:00
|
|
|
mr.mock.ctrl.T.Helper()
|
2021-11-23 09:45:38 +00:00
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SaveU2FDevice", reflect.TypeOf((*MockProvider)(nil).SaveU2FDevice), arg0, arg1)
|
2019-11-17 01:05:46 +00:00
|
|
|
}
|
|
|
|
|
2021-11-23 09:45:38 +00:00
|
|
|
// SchemaLatestVersion mocks base method.
|
|
|
|
func (m *MockProvider) SchemaLatestVersion() (int, error) {
|
2019-11-17 01:05:46 +00:00
|
|
|
m.ctrl.T.Helper()
|
2021-11-23 09:45:38 +00:00
|
|
|
ret := m.ctrl.Call(m, "SchemaLatestVersion")
|
|
|
|
ret0, _ := ret[0].(int)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
2019-11-17 01:05:46 +00:00
|
|
|
}
|
|
|
|
|
2021-11-23 09:45:38 +00:00
|
|
|
// SchemaLatestVersion indicates an expected call of SchemaLatestVersion.
|
|
|
|
func (mr *MockProviderMockRecorder) SchemaLatestVersion() *gomock.Call {
|
2019-11-17 01:05:46 +00:00
|
|
|
mr.mock.ctrl.T.Helper()
|
2021-11-23 09:45:38 +00:00
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SchemaLatestVersion", reflect.TypeOf((*MockProvider)(nil).SchemaLatestVersion))
|
2019-11-17 01:05:46 +00:00
|
|
|
}
|
|
|
|
|
2021-11-23 09:45:38 +00:00
|
|
|
// SchemaMigrate mocks base method.
|
|
|
|
func (m *MockProvider) SchemaMigrate(arg0 context.Context, arg1 bool, arg2 int) error {
|
2019-11-17 01:05:46 +00:00
|
|
|
m.ctrl.T.Helper()
|
2021-11-23 09:45:38 +00:00
|
|
|
ret := m.ctrl.Call(m, "SchemaMigrate", arg0, arg1, arg2)
|
2019-11-17 01:05:46 +00:00
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2021-11-23 09:45:38 +00:00
|
|
|
// SchemaMigrate indicates an expected call of SchemaMigrate.
|
|
|
|
func (mr *MockProviderMockRecorder) SchemaMigrate(arg0, arg1, arg2 interface{}) *gomock.Call {
|
2019-11-17 01:05:46 +00:00
|
|
|
mr.mock.ctrl.T.Helper()
|
2021-11-23 09:45:38 +00:00
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SchemaMigrate", reflect.TypeOf((*MockProvider)(nil).SchemaMigrate), arg0, arg1, arg2)
|
2019-11-17 01:05:46 +00:00
|
|
|
}
|
|
|
|
|
2021-11-23 09:45:38 +00:00
|
|
|
// SchemaMigrationHistory mocks base method.
|
|
|
|
func (m *MockProvider) SchemaMigrationHistory(arg0 context.Context) ([]models.Migration, error) {
|
2019-11-17 01:05:46 +00:00
|
|
|
m.ctrl.T.Helper()
|
2021-11-23 09:45:38 +00:00
|
|
|
ret := m.ctrl.Call(m, "SchemaMigrationHistory", arg0)
|
|
|
|
ret0, _ := ret[0].([]models.Migration)
|
2019-12-07 17:51:47 +00:00
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
2019-11-17 01:05:46 +00:00
|
|
|
}
|
|
|
|
|
2021-11-23 09:45:38 +00:00
|
|
|
// SchemaMigrationHistory indicates an expected call of SchemaMigrationHistory.
|
|
|
|
func (mr *MockProviderMockRecorder) SchemaMigrationHistory(arg0 interface{}) *gomock.Call {
|
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SchemaMigrationHistory", reflect.TypeOf((*MockProvider)(nil).SchemaMigrationHistory), arg0)
|
|
|
|
}
|
|
|
|
|
|
|
|
// SchemaMigrationsDown mocks base method.
|
|
|
|
func (m *MockProvider) SchemaMigrationsDown(arg0 context.Context, arg1 int) ([]SchemaMigration, error) {
|
|
|
|
m.ctrl.T.Helper()
|
|
|
|
ret := m.ctrl.Call(m, "SchemaMigrationsDown", arg0, arg1)
|
|
|
|
ret0, _ := ret[0].([]SchemaMigration)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
|
|
|
// SchemaMigrationsDown indicates an expected call of SchemaMigrationsDown.
|
|
|
|
func (mr *MockProviderMockRecorder) SchemaMigrationsDown(arg0, arg1 interface{}) *gomock.Call {
|
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SchemaMigrationsDown", reflect.TypeOf((*MockProvider)(nil).SchemaMigrationsDown), arg0, arg1)
|
|
|
|
}
|
|
|
|
|
|
|
|
// SchemaMigrationsUp mocks base method.
|
|
|
|
func (m *MockProvider) SchemaMigrationsUp(arg0 context.Context, arg1 int) ([]SchemaMigration, error) {
|
|
|
|
m.ctrl.T.Helper()
|
|
|
|
ret := m.ctrl.Call(m, "SchemaMigrationsUp", arg0, arg1)
|
|
|
|
ret0, _ := ret[0].([]SchemaMigration)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
|
|
|
// SchemaMigrationsUp indicates an expected call of SchemaMigrationsUp.
|
|
|
|
func (mr *MockProviderMockRecorder) SchemaMigrationsUp(arg0, arg1 interface{}) *gomock.Call {
|
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SchemaMigrationsUp", reflect.TypeOf((*MockProvider)(nil).SchemaMigrationsUp), arg0, arg1)
|
|
|
|
}
|
|
|
|
|
|
|
|
// SchemaTables mocks base method.
|
|
|
|
func (m *MockProvider) SchemaTables(arg0 context.Context) ([]string, error) {
|
|
|
|
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.
|
|
|
|
func (mr *MockProviderMockRecorder) SchemaTables(arg0 interface{}) *gomock.Call {
|
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SchemaTables", reflect.TypeOf((*MockProvider)(nil).SchemaTables), arg0)
|
|
|
|
}
|
|
|
|
|
|
|
|
// SchemaVersion mocks base method.
|
|
|
|
func (m *MockProvider) SchemaVersion(arg0 context.Context) (int, error) {
|
|
|
|
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.
|
|
|
|
func (mr *MockProviderMockRecorder) SchemaVersion(arg0 interface{}) *gomock.Call {
|
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SchemaVersion", reflect.TypeOf((*MockProvider)(nil).SchemaVersion), arg0)
|
|
|
|
}
|
|
|
|
|
|
|
|
// StartupCheck mocks base method.
|
|
|
|
func (m *MockProvider) StartupCheck() error {
|
|
|
|
m.ctrl.T.Helper()
|
|
|
|
ret := m.ctrl.Call(m, "StartupCheck")
|
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
|
|
|
// StartupCheck indicates an expected call of StartupCheck.
|
|
|
|
func (mr *MockProviderMockRecorder) StartupCheck() *gomock.Call {
|
2019-11-17 01:05:46 +00:00
|
|
|
mr.mock.ctrl.T.Helper()
|
2021-11-23 09:45:38 +00:00
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StartupCheck", reflect.TypeOf((*MockProvider)(nil).StartupCheck))
|
2019-11-17 01:05:46 +00:00
|
|
|
}
|