Documentation
¶
Index ¶
- type ManagementApiFacade
- func (_m *ManagementApiFacade) AlterKeyspace(keyspaceName string, replicationSettings map[string]int) error
- func (_m *ManagementApiFacade) CreateKeyspaceIfNotExists(keyspaceName string, replication map[string]int) error
- func (_m *ManagementApiFacade) CreateTable(definition *httphelper.TableDefinition) error
- func (_m *ManagementApiFacade) EnsureKeyspaceReplication(keyspaceName string, replication map[string]int) error
- func (_m *ManagementApiFacade) GetKeyspaceReplication(keyspaceName string) (map[string]string, error)
- func (_m *ManagementApiFacade) GetSchemaVersions() (map[string][]string, error)
- func (_m *ManagementApiFacade) ListKeyspaces(keyspaceName string) ([]string, error)
- func (_m *ManagementApiFacade) ListTables(keyspaceName string) ([]string, error)
- type ReaperManager
- func (_m *ReaperManager) AddClusterToReaper(ctx context.Context, cassdc *v1beta1.CassandraDatacenter) error
- func (_m *ReaperManager) Connect(ctx context.Context, _a1 *v1alpha1.Reaper, username string, password string) error
- func (_m *ReaperManager) ConnectWithReaperRef(ctx context.Context, kc *k8ssandrav1alpha1.K8ssandraCluster, username string, ...) error
- func (_m *ReaperManager) GetUiCredentials(ctx context.Context, uiUserSecretRef *v1.LocalObjectReference, ...) (string, string, error)
- func (_m *ReaperManager) SetK8sClient(_a0 client.Reader)
- func (_m *ReaperManager) VerifyClusterIsConfigured(ctx context.Context, cassdc *v1beta1.CassandraDatacenter) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ManagementApiFacade ¶
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 ¶
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