mocks

package
v1.15.0 Latest Latest
Warning

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

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

README

Generating mocks

Mocks in this package were generated using Mockery.

To install Mockery on macOS:

brew install mockery

If necessary, mocks can be regenerated with:

mockery --dir=./pkg/cassandra --output=./pkg/mocks --name=ManagementApiFacade
mockery --dir=./pkg/reaper --output=./pkg/mocks --name=Manager  --filename=reaper_manager.go --structname=ReaperManager

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ManagementApiFacade

type ManagementApiFacade struct {
	mock.Mock
}

ManagementApiFacade is an autogenerated mock type for the ManagementApiFacade type

func (*ManagementApiFacade) AlterKeyspace

func (_m *ManagementApiFacade) AlterKeyspace(keyspaceName string, replicationSettings map[string]int) error

AlterKeyspace provides a mock function with given fields: keyspaceName, replicationSettings

func (*ManagementApiFacade) CreateKeyspaceIfNotExists

func (_m *ManagementApiFacade) CreateKeyspaceIfNotExists(keyspaceName string, replication map[string]int) error

CreateKeyspaceIfNotExists provides a mock function with given fields: keyspaceName, replication

func (*ManagementApiFacade) CreateTable

func (_m *ManagementApiFacade) CreateTable(definition *httphelper.TableDefinition) error

CreateTable provides a mock function with given fields: definition

func (*ManagementApiFacade) EnsureKeyspaceReplication

func (_m *ManagementApiFacade) EnsureKeyspaceReplication(keyspaceName string, replication map[string]int) error

EnsureKeyspaceReplication provides a mock function with given fields: keyspaceName, replication

func (*ManagementApiFacade) GetKeyspaceReplication

func (_m *ManagementApiFacade) GetKeyspaceReplication(keyspaceName string) (map[string]string, error)

GetKeyspaceReplication provides a mock function with given fields: keyspaceName

func (*ManagementApiFacade) GetSchemaVersions

func (_m *ManagementApiFacade) GetSchemaVersions() (map[string][]string, error)

GetSchemaVersions provides a mock function with given fields:

func (*ManagementApiFacade) ListKeyspaces

func (_m *ManagementApiFacade) ListKeyspaces(keyspaceName string) ([]string, error)

ListKeyspaces provides a mock function with given fields: keyspaceName

func (*ManagementApiFacade) ListTables

func (_m *ManagementApiFacade) ListTables(keyspaceName string) ([]string, error)

ListTables provides a mock function with given fields: keyspaceName

type ReaperManager

type ReaperManager struct {
	mock.Mock
}

ReaperManager is an autogenerated mock type for the Manager type

func (*ReaperManager) AddClusterToReaper

func (_m *ReaperManager) AddClusterToReaper(ctx context.Context, cassdc *v1beta1.CassandraDatacenter) error

AddClusterToReaper provides a mock function with given fields: ctx, cassdc

func (*ReaperManager) Connect

func (_m *ReaperManager) Connect(ctx context.Context, _a1 *v1alpha1.Reaper, username string, password string) error

Connect provides a mock function with given fields: ctx, _a1, username, password

func (*ReaperManager) VerifyClusterIsConfigured

func (_m *ReaperManager) VerifyClusterIsConfigured(ctx context.Context, cassdc *v1beta1.CassandraDatacenter) (bool, error)

VerifyClusterIsConfigured provides a mock function with given fields: ctx, cassdc

Jump to

Keyboard shortcuts

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