Documentation ¶
Overview ¶
Package mocks to create the mocks run go generate to regenerate this package.
Package mocks is a generated GoMock package.
Index ¶
- type MockDatabase
- func (m *MockDatabase) EXPECT() *MockDatabaseMockRecorder
- func (m *MockDatabase) GenerateDatabaseSpecAndSecret(store model.InstallationDatabaseStoreInterface, logger logrus.FieldLogger) (*v1alpha1.Database, *v1.Secret, error)
- func (m *MockDatabase) Provision(store model.InstallationDatabaseStoreInterface, logger logrus.FieldLogger) error
- func (m *MockDatabase) Snapshot(store model.InstallationDatabaseStoreInterface, logger logrus.FieldLogger) error
- func (m *MockDatabase) Teardown(store model.InstallationDatabaseStoreInterface, keepData bool, ...) error
- type MockDatabaseMockRecorder
- func (mr *MockDatabaseMockRecorder) GenerateDatabaseSpecAndSecret(store, logger interface{}) *gomock.Call
- func (mr *MockDatabaseMockRecorder) Provision(store, logger interface{}) *gomock.Call
- func (mr *MockDatabaseMockRecorder) Snapshot(store, logger interface{}) *gomock.Call
- func (mr *MockDatabaseMockRecorder) Teardown(store, keepData, logger interface{}) *gomock.Call
- type MockInstallationDatabaseStoreInterface
- func (m *MockInstallationDatabaseStoreInterface) AddMultitenantDatabaseInstallationID(rdsClusterID, installationID string) (model.MultitenantDatabaseInstallationIDs, error)
- func (m *MockInstallationDatabaseStoreInterface) CreateMultitenantDatabase(multitenantDatabase *model.MultitenantDatabase) error
- func (m *MockInstallationDatabaseStoreInterface) EXPECT() *MockInstallationDatabaseStoreInterfaceMockRecorder
- func (m *MockInstallationDatabaseStoreInterface) GetClusterInstallations(filter *model.ClusterInstallationFilter) ([]*model.ClusterInstallation, error)
- func (m *MockInstallationDatabaseStoreInterface) GetMultitenantDatabase(multitenantdatabaseID string) (*model.MultitenantDatabase, error)
- func (m *MockInstallationDatabaseStoreInterface) GetMultitenantDatabaseForInstallationID(installationID string) (*model.MultitenantDatabase, error)
- func (m *MockInstallationDatabaseStoreInterface) GetMultitenantDatabases(filter *model.MultitenantDatabaseFilter) ([]*model.MultitenantDatabase, error)
- func (m *MockInstallationDatabaseStoreInterface) LockMultitenantDatabase(multitenantdatabaseID, lockerID string) (bool, error)
- func (m *MockInstallationDatabaseStoreInterface) RemoveMultitenantDatabaseInstallationID(rdsClusterID, installationID string) (model.MultitenantDatabaseInstallationIDs, error)
- func (m *MockInstallationDatabaseStoreInterface) UnlockMultitenantDatabase(multitenantdatabaseID, lockerID string, force bool) (bool, error)
- func (m *MockInstallationDatabaseStoreInterface) UpdateMultitenantDatabase(multitenantDatabase *model.MultitenantDatabase) error
- type MockInstallationDatabaseStoreInterfaceMockRecorder
- func (mr *MockInstallationDatabaseStoreInterfaceMockRecorder) AddMultitenantDatabaseInstallationID(rdsClusterID, installationID interface{}) *gomock.Call
- func (mr *MockInstallationDatabaseStoreInterfaceMockRecorder) CreateMultitenantDatabase(multitenantDatabase interface{}) *gomock.Call
- func (mr *MockInstallationDatabaseStoreInterfaceMockRecorder) GetClusterInstallations(filter interface{}) *gomock.Call
- func (mr *MockInstallationDatabaseStoreInterfaceMockRecorder) GetMultitenantDatabase(multitenantdatabaseID interface{}) *gomock.Call
- func (mr *MockInstallationDatabaseStoreInterfaceMockRecorder) GetMultitenantDatabaseForInstallationID(installationID interface{}) *gomock.Call
- func (mr *MockInstallationDatabaseStoreInterfaceMockRecorder) GetMultitenantDatabases(filter interface{}) *gomock.Call
- func (mr *MockInstallationDatabaseStoreInterfaceMockRecorder) LockMultitenantDatabase(multitenantdatabaseID, lockerID interface{}) *gomock.Call
- func (mr *MockInstallationDatabaseStoreInterfaceMockRecorder) RemoveMultitenantDatabaseInstallationID(rdsClusterID, installationID interface{}) *gomock.Call
- func (mr *MockInstallationDatabaseStoreInterfaceMockRecorder) UnlockMultitenantDatabase(multitenantdatabaseID, lockerID, force interface{}) *gomock.Call
- func (mr *MockInstallationDatabaseStoreInterfaceMockRecorder) UpdateMultitenantDatabase(multitenantDatabase interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockDatabase ¶
type MockDatabase struct {
// contains filtered or unexported fields
}
MockDatabase is a mock of Database interface
func NewMockDatabase ¶
func NewMockDatabase(ctrl *gomock.Controller) *MockDatabase
NewMockDatabase creates a new mock instance
func (*MockDatabase) EXPECT ¶
func (m *MockDatabase) EXPECT() *MockDatabaseMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockDatabase) GenerateDatabaseSpecAndSecret ¶
func (m *MockDatabase) GenerateDatabaseSpecAndSecret(store model.InstallationDatabaseStoreInterface, logger logrus.FieldLogger) (*v1alpha1.Database, *v1.Secret, error)
GenerateDatabaseSpecAndSecret mocks base method
func (*MockDatabase) Provision ¶
func (m *MockDatabase) Provision(store model.InstallationDatabaseStoreInterface, logger logrus.FieldLogger) error
Provision mocks base method
func (*MockDatabase) Snapshot ¶
func (m *MockDatabase) Snapshot(store model.InstallationDatabaseStoreInterface, logger logrus.FieldLogger) error
Snapshot mocks base method
func (*MockDatabase) Teardown ¶
func (m *MockDatabase) Teardown(store model.InstallationDatabaseStoreInterface, keepData bool, logger logrus.FieldLogger) error
Teardown mocks base method
type MockDatabaseMockRecorder ¶
type MockDatabaseMockRecorder struct {
// contains filtered or unexported fields
}
MockDatabaseMockRecorder is the mock recorder for MockDatabase
func (*MockDatabaseMockRecorder) GenerateDatabaseSpecAndSecret ¶
func (mr *MockDatabaseMockRecorder) GenerateDatabaseSpecAndSecret(store, logger interface{}) *gomock.Call
GenerateDatabaseSpecAndSecret indicates an expected call of GenerateDatabaseSpecAndSecret
func (*MockDatabaseMockRecorder) Provision ¶
func (mr *MockDatabaseMockRecorder) Provision(store, logger interface{}) *gomock.Call
Provision indicates an expected call of Provision
func (*MockDatabaseMockRecorder) Snapshot ¶
func (mr *MockDatabaseMockRecorder) Snapshot(store, logger interface{}) *gomock.Call
Snapshot indicates an expected call of Snapshot
func (*MockDatabaseMockRecorder) Teardown ¶
func (mr *MockDatabaseMockRecorder) Teardown(store, keepData, logger interface{}) *gomock.Call
Teardown indicates an expected call of Teardown
type MockInstallationDatabaseStoreInterface ¶
type MockInstallationDatabaseStoreInterface struct {
// contains filtered or unexported fields
}
MockInstallationDatabaseStoreInterface is a mock of InstallationDatabaseStoreInterface interface
func NewMockInstallationDatabaseStoreInterface ¶
func NewMockInstallationDatabaseStoreInterface(ctrl *gomock.Controller) *MockInstallationDatabaseStoreInterface
NewMockInstallationDatabaseStoreInterface creates a new mock instance
func (*MockInstallationDatabaseStoreInterface) AddMultitenantDatabaseInstallationID ¶ added in v0.19.0
func (m *MockInstallationDatabaseStoreInterface) AddMultitenantDatabaseInstallationID(rdsClusterID, installationID string) (model.MultitenantDatabaseInstallationIDs, error)
AddMultitenantDatabaseInstallationID mocks base method
func (*MockInstallationDatabaseStoreInterface) CreateMultitenantDatabase ¶ added in v0.19.0
func (m *MockInstallationDatabaseStoreInterface) CreateMultitenantDatabase(multitenantDatabase *model.MultitenantDatabase) error
CreateMultitenantDatabase mocks base method
func (*MockInstallationDatabaseStoreInterface) EXPECT ¶
func (m *MockInstallationDatabaseStoreInterface) EXPECT() *MockInstallationDatabaseStoreInterfaceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockInstallationDatabaseStoreInterface) GetClusterInstallations ¶
func (m *MockInstallationDatabaseStoreInterface) GetClusterInstallations(filter *model.ClusterInstallationFilter) ([]*model.ClusterInstallation, error)
GetClusterInstallations mocks base method
func (*MockInstallationDatabaseStoreInterface) GetMultitenantDatabase ¶ added in v0.19.0
func (m *MockInstallationDatabaseStoreInterface) GetMultitenantDatabase(multitenantdatabaseID string) (*model.MultitenantDatabase, error)
GetMultitenantDatabase mocks base method
func (*MockInstallationDatabaseStoreInterface) GetMultitenantDatabaseForInstallationID ¶ added in v0.19.0
func (m *MockInstallationDatabaseStoreInterface) GetMultitenantDatabaseForInstallationID(installationID string) (*model.MultitenantDatabase, error)
GetMultitenantDatabaseForInstallationID mocks base method
func (*MockInstallationDatabaseStoreInterface) GetMultitenantDatabases ¶ added in v0.19.0
func (m *MockInstallationDatabaseStoreInterface) GetMultitenantDatabases(filter *model.MultitenantDatabaseFilter) ([]*model.MultitenantDatabase, error)
GetMultitenantDatabases mocks base method
func (*MockInstallationDatabaseStoreInterface) LockMultitenantDatabase ¶ added in v0.19.0
func (m *MockInstallationDatabaseStoreInterface) LockMultitenantDatabase(multitenantdatabaseID, lockerID string) (bool, error)
LockMultitenantDatabase mocks base method
func (*MockInstallationDatabaseStoreInterface) RemoveMultitenantDatabaseInstallationID ¶ added in v0.19.0
func (m *MockInstallationDatabaseStoreInterface) RemoveMultitenantDatabaseInstallationID(rdsClusterID, installationID string) (model.MultitenantDatabaseInstallationIDs, error)
RemoveMultitenantDatabaseInstallationID mocks base method
func (*MockInstallationDatabaseStoreInterface) UnlockMultitenantDatabase ¶ added in v0.19.0
func (m *MockInstallationDatabaseStoreInterface) UnlockMultitenantDatabase(multitenantdatabaseID, lockerID string, force bool) (bool, error)
UnlockMultitenantDatabase mocks base method
func (*MockInstallationDatabaseStoreInterface) UpdateMultitenantDatabase ¶ added in v0.19.0
func (m *MockInstallationDatabaseStoreInterface) UpdateMultitenantDatabase(multitenantDatabase *model.MultitenantDatabase) error
UpdateMultitenantDatabase mocks base method
type MockInstallationDatabaseStoreInterfaceMockRecorder ¶
type MockInstallationDatabaseStoreInterfaceMockRecorder struct {
// contains filtered or unexported fields
}
MockInstallationDatabaseStoreInterfaceMockRecorder is the mock recorder for MockInstallationDatabaseStoreInterface
func (*MockInstallationDatabaseStoreInterfaceMockRecorder) AddMultitenantDatabaseInstallationID ¶ added in v0.19.0
func (mr *MockInstallationDatabaseStoreInterfaceMockRecorder) AddMultitenantDatabaseInstallationID(rdsClusterID, installationID interface{}) *gomock.Call
AddMultitenantDatabaseInstallationID indicates an expected call of AddMultitenantDatabaseInstallationID
func (*MockInstallationDatabaseStoreInterfaceMockRecorder) CreateMultitenantDatabase ¶ added in v0.19.0
func (mr *MockInstallationDatabaseStoreInterfaceMockRecorder) CreateMultitenantDatabase(multitenantDatabase interface{}) *gomock.Call
CreateMultitenantDatabase indicates an expected call of CreateMultitenantDatabase
func (*MockInstallationDatabaseStoreInterfaceMockRecorder) GetClusterInstallations ¶
func (mr *MockInstallationDatabaseStoreInterfaceMockRecorder) GetClusterInstallations(filter interface{}) *gomock.Call
GetClusterInstallations indicates an expected call of GetClusterInstallations
func (*MockInstallationDatabaseStoreInterfaceMockRecorder) GetMultitenantDatabase ¶ added in v0.19.0
func (mr *MockInstallationDatabaseStoreInterfaceMockRecorder) GetMultitenantDatabase(multitenantdatabaseID interface{}) *gomock.Call
GetMultitenantDatabase indicates an expected call of GetMultitenantDatabase
func (*MockInstallationDatabaseStoreInterfaceMockRecorder) GetMultitenantDatabaseForInstallationID ¶ added in v0.19.0
func (mr *MockInstallationDatabaseStoreInterfaceMockRecorder) GetMultitenantDatabaseForInstallationID(installationID interface{}) *gomock.Call
GetMultitenantDatabaseForInstallationID indicates an expected call of GetMultitenantDatabaseForInstallationID
func (*MockInstallationDatabaseStoreInterfaceMockRecorder) GetMultitenantDatabases ¶ added in v0.19.0
func (mr *MockInstallationDatabaseStoreInterfaceMockRecorder) GetMultitenantDatabases(filter interface{}) *gomock.Call
GetMultitenantDatabases indicates an expected call of GetMultitenantDatabases
func (*MockInstallationDatabaseStoreInterfaceMockRecorder) LockMultitenantDatabase ¶ added in v0.19.0
func (mr *MockInstallationDatabaseStoreInterfaceMockRecorder) LockMultitenantDatabase(multitenantdatabaseID, lockerID interface{}) *gomock.Call
LockMultitenantDatabase indicates an expected call of LockMultitenantDatabase
func (*MockInstallationDatabaseStoreInterfaceMockRecorder) RemoveMultitenantDatabaseInstallationID ¶ added in v0.19.0
func (mr *MockInstallationDatabaseStoreInterfaceMockRecorder) RemoveMultitenantDatabaseInstallationID(rdsClusterID, installationID interface{}) *gomock.Call
RemoveMultitenantDatabaseInstallationID indicates an expected call of RemoveMultitenantDatabaseInstallationID
func (*MockInstallationDatabaseStoreInterfaceMockRecorder) UnlockMultitenantDatabase ¶ added in v0.19.0
func (mr *MockInstallationDatabaseStoreInterfaceMockRecorder) UnlockMultitenantDatabase(multitenantdatabaseID, lockerID, force interface{}) *gomock.Call
UnlockMultitenantDatabase indicates an expected call of UnlockMultitenantDatabase
func (*MockInstallationDatabaseStoreInterfaceMockRecorder) UpdateMultitenantDatabase ¶ added in v0.19.0
func (mr *MockInstallationDatabaseStoreInterfaceMockRecorder) UpdateMultitenantDatabase(multitenantDatabase interface{}) *gomock.Call
UpdateMultitenantDatabase indicates an expected call of UpdateMultitenantDatabase