mockmodel

package
v0.84.0 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package mockmodel to create the mocks run go generate to regenerate this package.

Package mockmodel is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockClusterUtilityDatabaseStoreInterface added in v0.46.1

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

MockClusterUtilityDatabaseStoreInterface is a mock of ClusterUtilityDatabaseStoreInterface interface

func NewMockClusterUtilityDatabaseStoreInterface added in v0.46.1

func NewMockClusterUtilityDatabaseStoreInterface(ctrl *gomock.Controller) *MockClusterUtilityDatabaseStoreInterface

NewMockClusterUtilityDatabaseStoreInterface creates a new mock instance

func (*MockClusterUtilityDatabaseStoreInterface) EXPECT added in v0.46.1

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

func (*MockClusterUtilityDatabaseStoreInterface) GetLogicalDatabases added in v0.47.0

GetLogicalDatabases mocks base method

func (*MockClusterUtilityDatabaseStoreInterface) GetMultitenantDatabases added in v0.46.1

GetMultitenantDatabases mocks base method

type MockClusterUtilityDatabaseStoreInterfaceMockRecorder added in v0.46.1

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

MockClusterUtilityDatabaseStoreInterfaceMockRecorder is the mock recorder for MockClusterUtilityDatabaseStoreInterface

func (*MockClusterUtilityDatabaseStoreInterfaceMockRecorder) GetLogicalDatabases added in v0.47.0

func (mr *MockClusterUtilityDatabaseStoreInterfaceMockRecorder) GetLogicalDatabases(filter interface{}) *gomock.Call

GetLogicalDatabases indicates an expected call of GetLogicalDatabases

func (*MockClusterUtilityDatabaseStoreInterfaceMockRecorder) GetMultitenantDatabases added in v0.46.1

func (mr *MockClusterUtilityDatabaseStoreInterfaceMockRecorder) GetMultitenantDatabases(filter interface{}) *gomock.Call

GetMultitenantDatabases indicates an expected call of GetMultitenantDatabases

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

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

func (*MockDatabase) GenerateDatabaseSecret added in v0.38.0

func (m *MockDatabase) GenerateDatabaseSecret(store model.InstallationDatabaseStoreInterface, logger logrus.FieldLogger) (*v1.Secret, error)

GenerateDatabaseSecret mocks base method

func (*MockDatabase) MigrateOut added in v0.45.0

MigrateOut mocks base method

func (*MockDatabase) MigrateTo added in v0.45.0

MigrateTo mocks base method

func (*MockDatabase) Provision

Provision mocks base method

func (*MockDatabase) RefreshResourceMetadata added in v0.43.0

func (m *MockDatabase) RefreshResourceMetadata(store model.InstallationDatabaseStoreInterface, logger logrus.FieldLogger) error

RefreshResourceMetadata mocks base method

func (*MockDatabase) RollbackMigration added in v0.45.0

RollbackMigration mocks base method

func (*MockDatabase) Snapshot

Snapshot mocks base method

func (*MockDatabase) Teardown

func (m *MockDatabase) Teardown(store model.InstallationDatabaseStoreInterface, keepData bool, logger logrus.FieldLogger) error

Teardown mocks base method

func (*MockDatabase) TeardownMigrated added in v0.45.0

TeardownMigrated mocks base method

type MockDatabaseMockRecorder

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

MockDatabaseMockRecorder is the mock recorder for MockDatabase

func (*MockDatabaseMockRecorder) GenerateDatabaseSecret added in v0.38.0

func (mr *MockDatabaseMockRecorder) GenerateDatabaseSecret(store, logger interface{}) *gomock.Call

GenerateDatabaseSecret indicates an expected call of GenerateDatabaseSecret

func (*MockDatabaseMockRecorder) MigrateOut added in v0.45.0

func (mr *MockDatabaseMockRecorder) MigrateOut(store, dbMigration, logger interface{}) *gomock.Call

MigrateOut indicates an expected call of MigrateOut

func (*MockDatabaseMockRecorder) MigrateTo added in v0.45.0

func (mr *MockDatabaseMockRecorder) MigrateTo(store, dbMigration, logger interface{}) *gomock.Call

MigrateTo indicates an expected call of MigrateTo

func (*MockDatabaseMockRecorder) Provision

func (mr *MockDatabaseMockRecorder) Provision(store, logger interface{}) *gomock.Call

Provision indicates an expected call of Provision

func (*MockDatabaseMockRecorder) RefreshResourceMetadata added in v0.43.0

func (mr *MockDatabaseMockRecorder) RefreshResourceMetadata(store, logger interface{}) *gomock.Call

RefreshResourceMetadata indicates an expected call of RefreshResourceMetadata

func (*MockDatabaseMockRecorder) RollbackMigration added in v0.45.0

func (mr *MockDatabaseMockRecorder) RollbackMigration(store, dbMigration, logger interface{}) *gomock.Call

RollbackMigration indicates an expected call of RollbackMigration

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

func (*MockDatabaseMockRecorder) TeardownMigrated added in v0.45.0

func (mr *MockDatabaseMockRecorder) TeardownMigrated(store, migrationOp, logger interface{}) *gomock.Call

TeardownMigrated indicates an expected call of TeardownMigrated

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) CreateMultitenantDatabase added in v0.19.0

func (m *MockInstallationDatabaseStoreInterface) CreateMultitenantDatabase(multitenantDatabase *model.MultitenantDatabase) error

CreateMultitenantDatabase mocks base method

func (*MockInstallationDatabaseStoreInterface) DeleteInstallationProxyDatabaseResources added in v0.47.0

func (m *MockInstallationDatabaseStoreInterface) DeleteInstallationProxyDatabaseResources(multitenantDatabase *model.MultitenantDatabase, databaseSchema *model.DatabaseSchema) error

DeleteInstallationProxyDatabaseResources mocks base method

func (*MockInstallationDatabaseStoreInterface) EXPECT

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

func (*MockInstallationDatabaseStoreInterface) GetClusterInstallations

GetClusterInstallations mocks base method

func (*MockInstallationDatabaseStoreInterface) GetDatabaseSchema added in v0.47.0

func (m *MockInstallationDatabaseStoreInterface) GetDatabaseSchema(databaseSchemaID string) (*model.DatabaseSchema, error)

GetDatabaseSchema mocks base method

func (*MockInstallationDatabaseStoreInterface) GetDatabaseSchemas added in v0.47.0

GetDatabaseSchemas mocks base method

func (*MockInstallationDatabaseStoreInterface) GetInstallation added in v0.63.0

func (m *MockInstallationDatabaseStoreInterface) GetInstallation(id string, includeGroupConfig, includeGroupConfigOverrides bool) (*model.Installation, error)

GetInstallation mocks base method

func (*MockInstallationDatabaseStoreInterface) GetInstallationsTotalDatabaseWeight added in v0.43.0

func (m *MockInstallationDatabaseStoreInterface) GetInstallationsTotalDatabaseWeight(installationIDs []string) (float64, error)

GetInstallationsTotalDatabaseWeight mocks base method

func (*MockInstallationDatabaseStoreInterface) GetLogicalDatabase added in v0.47.0

func (m *MockInstallationDatabaseStoreInterface) GetLogicalDatabase(logicalDatabaseID string) (*model.LogicalDatabase, error)

GetLogicalDatabase mocks base method

func (*MockInstallationDatabaseStoreInterface) GetLogicalDatabases added in v0.47.0

GetLogicalDatabases 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

GetMultitenantDatabases mocks base method

func (*MockInstallationDatabaseStoreInterface) GetOrCreateProxyDatabaseResourcesForInstallation added in v0.47.0

func (m *MockInstallationDatabaseStoreInterface) GetOrCreateProxyDatabaseResourcesForInstallation(installationID, multitenantDatabaseID string) (*model.DatabaseResourceGrouping, error)

GetOrCreateProxyDatabaseResourcesForInstallation mocks base method

func (*MockInstallationDatabaseStoreInterface) GetProxyDatabaseResourcesForInstallation added in v0.47.0

func (m *MockInstallationDatabaseStoreInterface) GetProxyDatabaseResourcesForInstallation(installationID string) (*model.DatabaseResourceGrouping, error)

GetProxyDatabaseResourcesForInstallation mocks base method

func (*MockInstallationDatabaseStoreInterface) GetSingleTenantDatabaseConfigForInstallation added in v0.35.0

func (m *MockInstallationDatabaseStoreInterface) GetSingleTenantDatabaseConfigForInstallation(installationID string) (*model.SingleTenantDatabaseConfig, error)

GetSingleTenantDatabaseConfigForInstallation 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) LockMultitenantDatabases added in v0.45.0

func (m *MockInstallationDatabaseStoreInterface) LockMultitenantDatabases(ids []string, lockerID string) (bool, error)

LockMultitenantDatabases 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) UnlockMultitenantDatabases added in v0.45.0

func (m *MockInstallationDatabaseStoreInterface) UnlockMultitenantDatabases(ids []string, lockerID string, force bool) (bool, error)

UnlockMultitenantDatabases 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) CreateMultitenantDatabase added in v0.19.0

func (mr *MockInstallationDatabaseStoreInterfaceMockRecorder) CreateMultitenantDatabase(multitenantDatabase interface{}) *gomock.Call

CreateMultitenantDatabase indicates an expected call of CreateMultitenantDatabase

func (*MockInstallationDatabaseStoreInterfaceMockRecorder) DeleteInstallationProxyDatabaseResources added in v0.47.0

func (mr *MockInstallationDatabaseStoreInterfaceMockRecorder) DeleteInstallationProxyDatabaseResources(multitenantDatabase, databaseSchema interface{}) *gomock.Call

DeleteInstallationProxyDatabaseResources indicates an expected call of DeleteInstallationProxyDatabaseResources

func (*MockInstallationDatabaseStoreInterfaceMockRecorder) GetClusterInstallations

func (mr *MockInstallationDatabaseStoreInterfaceMockRecorder) GetClusterInstallations(filter interface{}) *gomock.Call

GetClusterInstallations indicates an expected call of GetClusterInstallations

func (*MockInstallationDatabaseStoreInterfaceMockRecorder) GetDatabaseSchema added in v0.47.0

func (mr *MockInstallationDatabaseStoreInterfaceMockRecorder) GetDatabaseSchema(databaseSchemaID interface{}) *gomock.Call

GetDatabaseSchema indicates an expected call of GetDatabaseSchema

func (*MockInstallationDatabaseStoreInterfaceMockRecorder) GetDatabaseSchemas added in v0.47.0

func (mr *MockInstallationDatabaseStoreInterfaceMockRecorder) GetDatabaseSchemas(filter interface{}) *gomock.Call

GetDatabaseSchemas indicates an expected call of GetDatabaseSchemas

func (*MockInstallationDatabaseStoreInterfaceMockRecorder) GetInstallation added in v0.63.0

func (mr *MockInstallationDatabaseStoreInterfaceMockRecorder) GetInstallation(id, includeGroupConfig, includeGroupConfigOverrides interface{}) *gomock.Call

GetInstallation indicates an expected call of GetInstallation

func (*MockInstallationDatabaseStoreInterfaceMockRecorder) GetInstallationsTotalDatabaseWeight added in v0.43.0

func (mr *MockInstallationDatabaseStoreInterfaceMockRecorder) GetInstallationsTotalDatabaseWeight(installationIDs interface{}) *gomock.Call

GetInstallationsTotalDatabaseWeight indicates an expected call of GetInstallationsTotalDatabaseWeight

func (*MockInstallationDatabaseStoreInterfaceMockRecorder) GetLogicalDatabase added in v0.47.0

func (mr *MockInstallationDatabaseStoreInterfaceMockRecorder) GetLogicalDatabase(logicalDatabaseID interface{}) *gomock.Call

GetLogicalDatabase indicates an expected call of GetLogicalDatabase

func (*MockInstallationDatabaseStoreInterfaceMockRecorder) GetLogicalDatabases added in v0.47.0

func (mr *MockInstallationDatabaseStoreInterfaceMockRecorder) GetLogicalDatabases(filter interface{}) *gomock.Call

GetLogicalDatabases indicates an expected call of GetLogicalDatabases

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) GetOrCreateProxyDatabaseResourcesForInstallation added in v0.47.0

func (mr *MockInstallationDatabaseStoreInterfaceMockRecorder) GetOrCreateProxyDatabaseResourcesForInstallation(installationID, multitenantDatabaseID interface{}) *gomock.Call

GetOrCreateProxyDatabaseResourcesForInstallation indicates an expected call of GetOrCreateProxyDatabaseResourcesForInstallation

func (*MockInstallationDatabaseStoreInterfaceMockRecorder) GetProxyDatabaseResourcesForInstallation added in v0.47.0

func (mr *MockInstallationDatabaseStoreInterfaceMockRecorder) GetProxyDatabaseResourcesForInstallation(installationID interface{}) *gomock.Call

GetProxyDatabaseResourcesForInstallation indicates an expected call of GetProxyDatabaseResourcesForInstallation

func (*MockInstallationDatabaseStoreInterfaceMockRecorder) GetSingleTenantDatabaseConfigForInstallation added in v0.35.0

func (mr *MockInstallationDatabaseStoreInterfaceMockRecorder) GetSingleTenantDatabaseConfigForInstallation(installationID interface{}) *gomock.Call

GetSingleTenantDatabaseConfigForInstallation indicates an expected call of GetSingleTenantDatabaseConfigForInstallation

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) LockMultitenantDatabases added in v0.45.0

func (mr *MockInstallationDatabaseStoreInterfaceMockRecorder) LockMultitenantDatabases(ids, lockerID interface{}) *gomock.Call

LockMultitenantDatabases indicates an expected call of LockMultitenantDatabases

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) UnlockMultitenantDatabases added in v0.45.0

func (mr *MockInstallationDatabaseStoreInterfaceMockRecorder) UnlockMultitenantDatabases(ids, lockerID, force interface{}) *gomock.Call

UnlockMultitenantDatabases indicates an expected call of UnlockMultitenantDatabases

func (*MockInstallationDatabaseStoreInterfaceMockRecorder) UpdateMultitenantDatabase added in v0.19.0

func (mr *MockInstallationDatabaseStoreInterfaceMockRecorder) UpdateMultitenantDatabase(multitenantDatabase interface{}) *gomock.Call

UpdateMultitenantDatabase indicates an expected call of UpdateMultitenantDatabase

Jump to

Keyboard shortcuts

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