mocks

package
v1.30.2 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2026 License: Apache-2.0 Imports: 8 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 NewManagementApiFacade added in v1.19.0

func NewManagementApiFacade(t interface {
	mock.TestingT
	Cleanup(func())
}) *ManagementApiFacade

NewManagementApiFacade creates a new instance of ManagementApiFacade. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

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 NewReaperManager added in v1.19.0

func NewReaperManager(t interface {
	mock.TestingT
	Cleanup(func())
}) *ReaperManager

NewReaperManager creates a new instance of ReaperManager. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

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) ConnectWithReaperRef added in v1.19.0

func (_m *ReaperManager) ConnectWithReaperRef(ctx context.Context, kc *k8ssandrav1alpha1.K8ssandraCluster, username string, password string) error

ConnectWithReaperRef provides a mock function with given fields: ctx, kc, username, password

func (*ReaperManager) GetUiCredentials added in v1.19.0

func (_m *ReaperManager) GetUiCredentials(ctx context.Context, uiUserSecretRef *v1.LocalObjectReference, namespace string) (string, string, error)

GetUiCredentials provides a mock function with given fields: ctx, uiUserSecretRef, namespace

func (*ReaperManager) SetK8sClient added in v1.19.0

func (_m *ReaperManager) SetK8sClient(_a0 client.Reader)

SetK8sClient provides a mock function with given fields: _a0

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