mocks

package
v0.30.3 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package mocks to create the mocks run go generate to regenerate this 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 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) GenerateDatabaseSpecAndSecret

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

GenerateDatabaseSpecAndSecret mocks base method

func (*MockDatabase) Provision

Provision 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

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

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

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

func (m *MockInstallationDatabaseStoreInterface) LockMultitenantDatabase(multitenantdatabaseID, lockerID string) (bool, error)

LockMultitenantDatabase 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) 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) 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

Jump to

Keyboard shortcuts

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