mocks

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock 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 MockCqlClient

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

MockCqlClient is a mock of CqlClient interface.

func NewMockCqlClient

func NewMockCqlClient(ctrl *gomock.Controller) *MockCqlClient

NewMockCqlClient creates a new mock instance.

func (*MockCqlClient) CloseSession

func (m *MockCqlClient) CloseSession()

CloseSession mocks base method.

func (*MockCqlClient) CreateRole

func (m *MockCqlClient) CreateRole(role cql.Role) error

CreateRole mocks base method.

func (*MockCqlClient) DropRole

func (m *MockCqlClient) DropRole(role cql.Role) error

DropRole mocks base method.

func (*MockCqlClient) EXPECT

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

func (*MockCqlClient) GetKeyspacesInfo

func (m *MockCqlClient) GetKeyspacesInfo() ([]cql.Keyspace, error)

GetKeyspacesInfo mocks base method.

func (*MockCqlClient) GetRoles

func (m *MockCqlClient) GetRoles() ([]cql.Role, error)

GetRoles mocks base method.

func (*MockCqlClient) Query

func (m *MockCqlClient) Query(stmt string, values ...any) error

Query mocks base method.

func (*MockCqlClient) UpdateRF

func (m *MockCqlClient) UpdateRF(keyspaceName string, strategyOptions map[string]string) error

UpdateRF mocks base method.

func (*MockCqlClient) UpdateRole

func (m *MockCqlClient) UpdateRole(role cql.Role) error

UpdateRole mocks base method.

func (*MockCqlClient) UpdateRolePassword

func (m *MockCqlClient) UpdateRolePassword(roleName, newPassword string) error

UpdateRolePassword mocks base method.

type MockCqlClientMockRecorder

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

MockCqlClientMockRecorder is the mock recorder for MockCqlClient.

func (*MockCqlClientMockRecorder) CloseSession

func (mr *MockCqlClientMockRecorder) CloseSession() *gomock.Call

CloseSession indicates an expected call of CloseSession.

func (*MockCqlClientMockRecorder) CreateRole

func (mr *MockCqlClientMockRecorder) CreateRole(role any) *gomock.Call

CreateRole indicates an expected call of CreateRole.

func (*MockCqlClientMockRecorder) DropRole

func (mr *MockCqlClientMockRecorder) DropRole(role any) *gomock.Call

DropRole indicates an expected call of DropRole.

func (*MockCqlClientMockRecorder) GetKeyspacesInfo

func (mr *MockCqlClientMockRecorder) GetKeyspacesInfo() *gomock.Call

GetKeyspacesInfo indicates an expected call of GetKeyspacesInfo.

func (*MockCqlClientMockRecorder) GetRoles

func (mr *MockCqlClientMockRecorder) GetRoles() *gomock.Call

GetRoles indicates an expected call of GetRoles.

func (*MockCqlClientMockRecorder) Query

func (mr *MockCqlClientMockRecorder) Query(stmt any, values ...any) *gomock.Call

Query indicates an expected call of Query.

func (*MockCqlClientMockRecorder) UpdateRF

func (mr *MockCqlClientMockRecorder) UpdateRF(keyspaceName, strategyOptions any) *gomock.Call

UpdateRF indicates an expected call of UpdateRF.

func (*MockCqlClientMockRecorder) UpdateRole

func (mr *MockCqlClientMockRecorder) UpdateRole(role any) *gomock.Call

UpdateRole indicates an expected call of UpdateRole.

func (*MockCqlClientMockRecorder) UpdateRolePassword

func (mr *MockCqlClientMockRecorder) UpdateRolePassword(roleName, newPassword any) *gomock.Call

UpdateRolePassword indicates an expected call of UpdateRolePassword.

type MockIcarus

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

MockIcarus is a mock of Icarus interface.

func NewMockIcarus

func NewMockIcarus(ctrl *gomock.Controller) *MockIcarus

NewMockIcarus creates a new mock instance.

func (*MockIcarus) Backup

Backup mocks base method.

func (*MockIcarus) Backups

func (m *MockIcarus) Backups(ctx context.Context) ([]icarus.Backup, error)

Backups mocks base method.

func (*MockIcarus) EXPECT

func (m *MockIcarus) EXPECT() *MockIcarusMockRecorder

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

func (*MockIcarus) Restore

func (m *MockIcarus) Restore(ctx context.Context, req icarus.RestoreRequest) error

Restore mocks base method.

func (*MockIcarus) Restores

func (m *MockIcarus) Restores(ctx context.Context) ([]icarus.Restore, error)

Restores mocks base method.

type MockIcarusMockRecorder

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

MockIcarusMockRecorder is the mock recorder for MockIcarus.

func (*MockIcarusMockRecorder) Backup

func (mr *MockIcarusMockRecorder) Backup(ctx, req any) *gomock.Call

Backup indicates an expected call of Backup.

func (*MockIcarusMockRecorder) Backups

func (mr *MockIcarusMockRecorder) Backups(ctx any) *gomock.Call

Backups indicates an expected call of Backups.

func (*MockIcarusMockRecorder) Restore

func (mr *MockIcarusMockRecorder) Restore(ctx, req any) *gomock.Call

Restore indicates an expected call of Restore.

func (*MockIcarusMockRecorder) Restores

func (mr *MockIcarusMockRecorder) Restores(ctx any) *gomock.Call

Restores indicates an expected call of Restores.

type MockNodectl

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

MockNodectl is a mock of Nodectl interface.

func NewMockNodectl

func NewMockNodectl(ctrl *gomock.Controller) *MockNodectl

NewMockNodectl creates a new mock instance.

func (*MockNodectl) Assassinate

func (m *MockNodectl) Assassinate(ctx context.Context, execNodeIP, assassinateNodeIP string) error

Assassinate mocks base method.

func (*MockNodectl) ClusterView

func (m *MockNodectl) ClusterView(ctx context.Context, nodeIP string) (nodectl.ClusterView, error)

ClusterView mocks base method.

func (*MockNodectl) Decommission

func (m *MockNodectl) Decommission(ctx context.Context, nodeIP string) error

Decommission mocks base method.

func (*MockNodectl) EXPECT

func (m *MockNodectl) EXPECT() *MockNodectlMockRecorder

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

func (*MockNodectl) OperationMode

func (m *MockNodectl) OperationMode(ctx context.Context, nodeIP string) (nodectl.OperationMode, error)

OperationMode mocks base method.

func (*MockNodectl) Version

func (m *MockNodectl) Version(ctx context.Context, nodeIP string) (int, int, int, error)

Version mocks base method.

type MockNodectlMockRecorder

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

MockNodectlMockRecorder is the mock recorder for MockNodectl.

func (*MockNodectlMockRecorder) Assassinate

func (mr *MockNodectlMockRecorder) Assassinate(ctx, execNodeIP, assassinateNodeIP any) *gomock.Call

Assassinate indicates an expected call of Assassinate.

func (*MockNodectlMockRecorder) ClusterView

func (mr *MockNodectlMockRecorder) ClusterView(ctx, nodeIP any) *gomock.Call

ClusterView indicates an expected call of ClusterView.

func (*MockNodectlMockRecorder) Decommission

func (mr *MockNodectlMockRecorder) Decommission(ctx, nodeIP any) *gomock.Call

Decommission indicates an expected call of Decommission.

func (*MockNodectlMockRecorder) OperationMode

func (mr *MockNodectlMockRecorder) OperationMode(ctx, nodeIP any) *gomock.Call

OperationMode indicates an expected call of OperationMode.

func (*MockNodectlMockRecorder) Version

func (mr *MockNodectlMockRecorder) Version(ctx, nodeIP any) *gomock.Call

Version indicates an expected call of Version.

type MockProberClient

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

MockProberClient is a mock of ProberClient interface.

func NewMockProberClient

func NewMockProberClient(ctrl *gomock.Controller) *MockProberClient

NewMockProberClient creates a new mock instance.

func (*MockProberClient) EXPECT

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

func (*MockProberClient) GetDCs

func (m *MockProberClient) GetDCs(ctx context.Context, host string) ([]v1alpha1.DC, error)

GetDCs mocks base method.

func (*MockProberClient) GetReaperIPs

func (m *MockProberClient) GetReaperIPs(ctx context.Context, host string) ([]string, error)

GetReaperIPs mocks base method.

func (*MockProberClient) GetRegionIPs

func (m *MockProberClient) GetRegionIPs(ctx context.Context, host string) ([]string, error)

GetRegionIPs mocks base method.

func (*MockProberClient) GetSeeds

func (m *MockProberClient) GetSeeds(ctx context.Context, host string) ([]string, error)

GetSeeds mocks base method.

func (*MockProberClient) Ready

func (m *MockProberClient) Ready(ctx context.Context) (bool, error)

Ready mocks base method.

func (*MockProberClient) ReaperReady

func (m *MockProberClient) ReaperReady(ctx context.Context, host string) (bool, error)

ReaperReady mocks base method.

func (*MockProberClient) RegionReady

func (m *MockProberClient) RegionReady(ctx context.Context, host string) (bool, error)

RegionReady mocks base method.

func (*MockProberClient) UpdateDCs

func (m *MockProberClient) UpdateDCs(ctx context.Context, dcs []v1alpha1.DC) error

UpdateDCs mocks base method.

func (*MockProberClient) UpdateReaperIPs

func (m *MockProberClient) UpdateReaperIPs(ctx context.Context, ips []string) error

UpdateReaperIPs mocks base method.

func (*MockProberClient) UpdateReaperStatus

func (m *MockProberClient) UpdateReaperStatus(ctx context.Context, ready bool) error

UpdateReaperStatus mocks base method.

func (*MockProberClient) UpdateRegionIPs

func (m *MockProberClient) UpdateRegionIPs(ctx context.Context, ips []string) error

UpdateRegionIPs mocks base method.

func (*MockProberClient) UpdateRegionStatus

func (m *MockProberClient) UpdateRegionStatus(ctx context.Context, ready bool) error

UpdateRegionStatus mocks base method.

func (*MockProberClient) UpdateSeeds

func (m *MockProberClient) UpdateSeeds(ctx context.Context, seeds []string) error

UpdateSeeds mocks base method.

type MockProberClientMockRecorder

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

MockProberClientMockRecorder is the mock recorder for MockProberClient.

func (*MockProberClientMockRecorder) GetDCs

func (mr *MockProberClientMockRecorder) GetDCs(ctx, host any) *gomock.Call

GetDCs indicates an expected call of GetDCs.

func (*MockProberClientMockRecorder) GetReaperIPs

func (mr *MockProberClientMockRecorder) GetReaperIPs(ctx, host any) *gomock.Call

GetReaperIPs indicates an expected call of GetReaperIPs.

func (*MockProberClientMockRecorder) GetRegionIPs

func (mr *MockProberClientMockRecorder) GetRegionIPs(ctx, host any) *gomock.Call

GetRegionIPs indicates an expected call of GetRegionIPs.

func (*MockProberClientMockRecorder) GetSeeds

func (mr *MockProberClientMockRecorder) GetSeeds(ctx, host any) *gomock.Call

GetSeeds indicates an expected call of GetSeeds.

func (*MockProberClientMockRecorder) Ready

func (mr *MockProberClientMockRecorder) Ready(ctx any) *gomock.Call

Ready indicates an expected call of Ready.

func (*MockProberClientMockRecorder) ReaperReady

func (mr *MockProberClientMockRecorder) ReaperReady(ctx, host any) *gomock.Call

ReaperReady indicates an expected call of ReaperReady.

func (*MockProberClientMockRecorder) RegionReady

func (mr *MockProberClientMockRecorder) RegionReady(ctx, host any) *gomock.Call

RegionReady indicates an expected call of RegionReady.

func (*MockProberClientMockRecorder) UpdateDCs

func (mr *MockProberClientMockRecorder) UpdateDCs(ctx, dcs any) *gomock.Call

UpdateDCs indicates an expected call of UpdateDCs.

func (*MockProberClientMockRecorder) UpdateReaperIPs

func (mr *MockProberClientMockRecorder) UpdateReaperIPs(ctx, ips any) *gomock.Call

UpdateReaperIPs indicates an expected call of UpdateReaperIPs.

func (*MockProberClientMockRecorder) UpdateReaperStatus

func (mr *MockProberClientMockRecorder) UpdateReaperStatus(ctx, ready any) *gomock.Call

UpdateReaperStatus indicates an expected call of UpdateReaperStatus.

func (*MockProberClientMockRecorder) UpdateRegionIPs

func (mr *MockProberClientMockRecorder) UpdateRegionIPs(ctx, ips any) *gomock.Call

UpdateRegionIPs indicates an expected call of UpdateRegionIPs.

func (*MockProberClientMockRecorder) UpdateRegionStatus

func (mr *MockProberClientMockRecorder) UpdateRegionStatus(ctx, ready any) *gomock.Call

UpdateRegionStatus indicates an expected call of UpdateRegionStatus.

func (*MockProberClientMockRecorder) UpdateSeeds

func (mr *MockProberClientMockRecorder) UpdateSeeds(ctx, seeds any) *gomock.Call

UpdateSeeds indicates an expected call of UpdateSeeds.

type MockReaperClient

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

MockReaperClient is a mock of ReaperClient interface.

func NewMockReaperClient

func NewMockReaperClient(ctrl *gomock.Controller) *MockReaperClient

NewMockReaperClient creates a new mock instance.

func (*MockReaperClient) AddCluster

func (m *MockReaperClient) AddCluster(ctx context.Context, seed string) error

AddCluster mocks base method.

func (*MockReaperClient) ClusterExists

func (m *MockReaperClient) ClusterExists(ctx context.Context) (bool, error)

ClusterExists mocks base method.

func (*MockReaperClient) Clusters

func (m *MockReaperClient) Clusters(ctx context.Context) ([]string, error)

Clusters mocks base method.

func (*MockReaperClient) CreateRepairSchedule

func (m *MockReaperClient) CreateRepairSchedule(ctx context.Context, repair v1alpha1.RepairSchedule) error

CreateRepairSchedule mocks base method.

func (*MockReaperClient) DeleteCluster

func (m *MockReaperClient) DeleteCluster(ctx context.Context) error

DeleteCluster mocks base method.

func (*MockReaperClient) DeleteRepairSchedule

func (m *MockReaperClient) DeleteRepairSchedule(ctx context.Context, repairScheduleID string) error

DeleteRepairSchedule mocks base method.

func (*MockReaperClient) EXPECT

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

func (*MockReaperClient) IsRunning

func (m *MockReaperClient) IsRunning(ctx context.Context) (bool, error)

IsRunning mocks base method.

func (*MockReaperClient) RepairSchedules

func (m *MockReaperClient) RepairSchedules(ctx context.Context) ([]reaper.RepairSchedule, error)

RepairSchedules mocks base method.

func (*MockReaperClient) RunRepair

func (m *MockReaperClient) RunRepair(ctx context.Context, keyspace, cause string) error

RunRepair mocks base method.

func (*MockReaperClient) SetRepairScheduleState

func (m *MockReaperClient) SetRepairScheduleState(ctx context.Context, repairScheduleID string, active bool) error

SetRepairScheduleState mocks base method.

type MockReaperClientMockRecorder

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

MockReaperClientMockRecorder is the mock recorder for MockReaperClient.

func (*MockReaperClientMockRecorder) AddCluster

func (mr *MockReaperClientMockRecorder) AddCluster(ctx, seed any) *gomock.Call

AddCluster indicates an expected call of AddCluster.

func (*MockReaperClientMockRecorder) ClusterExists

func (mr *MockReaperClientMockRecorder) ClusterExists(ctx any) *gomock.Call

ClusterExists indicates an expected call of ClusterExists.

func (*MockReaperClientMockRecorder) Clusters

func (mr *MockReaperClientMockRecorder) Clusters(ctx any) *gomock.Call

Clusters indicates an expected call of Clusters.

func (*MockReaperClientMockRecorder) CreateRepairSchedule

func (mr *MockReaperClientMockRecorder) CreateRepairSchedule(ctx, repair any) *gomock.Call

CreateRepairSchedule indicates an expected call of CreateRepairSchedule.

func (*MockReaperClientMockRecorder) DeleteCluster

func (mr *MockReaperClientMockRecorder) DeleteCluster(ctx any) *gomock.Call

DeleteCluster indicates an expected call of DeleteCluster.

func (*MockReaperClientMockRecorder) DeleteRepairSchedule

func (mr *MockReaperClientMockRecorder) DeleteRepairSchedule(ctx, repairScheduleID any) *gomock.Call

DeleteRepairSchedule indicates an expected call of DeleteRepairSchedule.

func (*MockReaperClientMockRecorder) IsRunning

func (mr *MockReaperClientMockRecorder) IsRunning(ctx any) *gomock.Call

IsRunning indicates an expected call of IsRunning.

func (*MockReaperClientMockRecorder) RepairSchedules

func (mr *MockReaperClientMockRecorder) RepairSchedules(ctx any) *gomock.Call

RepairSchedules indicates an expected call of RepairSchedules.

func (*MockReaperClientMockRecorder) RunRepair

func (mr *MockReaperClientMockRecorder) RunRepair(ctx, keyspace, cause any) *gomock.Call

RunRepair indicates an expected call of RunRepair.

func (*MockReaperClientMockRecorder) SetRepairScheduleState

func (mr *MockReaperClientMockRecorder) SetRepairScheduleState(ctx, repairScheduleID, active any) *gomock.Call

SetRepairScheduleState indicates an expected call of SetRepairScheduleState.

Jump to

Keyboard shortcuts

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