fakevtctldclient

package
v0.15.10 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type VtctldClient

type VtctldClient struct {
	vtctldclient.VtctldClient

	ApplySchemaResults map[string]struct {
		Response *vtctldatapb.ApplySchemaResponse
		Error    error
	}
	CancelSchemaMigrationResults map[string]struct {
		Response *vtctldatapb.CancelSchemaMigrationResponse
		Error    error
	}
	CleanupSchemaMigrationResults map[string]struct {
		Response *vtctldatapb.CleanupSchemaMigrationResponse
		Error    error
	}
	CompleteSchemaMigrationResults map[string]struct {
		Response *vtctldatapb.CompleteSchemaMigrationResponse
		Error    error
	}
	CreateKeyspaceShouldErr bool
	CreateShardShouldErr    bool
	DeleteKeyspaceShouldErr bool
	// Keyed by _sorted_ <ks/shard> list string joined by commas.
	DeleteShardsResults map[string]error
	// Keyed by _sorted_ TabletAlias list string joined by commas.
	DeleteTabletsResults          map[string]error
	EmergencyReparentShardResults map[string]struct {
		Response *vtctldatapb.EmergencyReparentShardResponse
		Error    error
	}
	FindAllShardsInKeyspaceResults map[string]struct {
		Response *vtctldatapb.FindAllShardsInKeyspaceResponse
		Error    error
	}
	GetBackupsResults map[string]struct {
		Response *vtctldatapb.GetBackupsResponse
		Error    error
	}
	GetCellInfoNamesResults *struct {
		Response *vtctldatapb.GetCellInfoNamesResponse
		Error    error
	}
	GetCellInfoResults map[string]struct {
		Response *vtctldatapb.GetCellInfoResponse
		Error    error
	}
	GetCellsAliasesResults *struct {
		Response *vtctldatapb.GetCellsAliasesResponse
		Error    error
	}
	GetKeyspaceResults map[string]struct {
		Response *vtctldatapb.GetKeyspaceResponse
		Error    error
	}
	GetKeyspacesResults *struct {
		Keyspaces []*vtctldatapb.Keyspace
		Error     error
	}
	GetSchemaMigrationsResults map[string]struct {
		Response *vtctldatapb.GetSchemaMigrationsResponse
		Error    error
	}
	GetSchemaResults map[string]struct {
		Response *vtctldatapb.GetSchemaResponse
		Error    error
	}
	GetSrvVSchemaResults map[string]struct {
		Response *vtctldatapb.GetSrvVSchemaResponse
		Error    error
	}
	GetVSchemaResults map[string]struct {
		Response *vtctldatapb.GetVSchemaResponse
		Error    error
	}
	GetWorkflowsResults map[string]struct {
		Response *vtctldatapb.GetWorkflowsResponse
		Error    error
	}
	LaunchSchemaMigrationResults map[string]struct {
		Response *vtctldatapb.LaunchSchemaMigrationResponse
		Error    error
	}
	PingTabletResults           map[string]error
	PlannedReparentShardResults map[string]struct {
		Response *vtctldatapb.PlannedReparentShardResponse
		Error    error
	}
	RefreshStateResults         map[string]error
	ReloadSchemaKeyspaceResults map[string]struct {
		Response *vtctldatapb.ReloadSchemaKeyspaceResponse
		Error    error
	}
	ReloadSchemaResults map[string]struct {
		Response *vtctldatapb.ReloadSchemaResponse
		Error    error
	}
	ReloadSchemaShardResults map[string]struct {
		Response *vtctldatapb.ReloadSchemaShardResponse
		Error    error
	}
	ReparentTabletResults map[string]struct {
		Response *vtctldatapb.ReparentTabletResponse
		Error    error
	}
	RetrySchemaMigrationResults map[string]struct {
		Response *vtctldatapb.RetrySchemaMigrationResponse
		Error    error
	}
	RunHealthCheckResults            map[string]error
	SetWritableResults               map[string]error
	ShardReplicationPositionsResults map[string]struct {
		Response *vtctldatapb.ShardReplicationPositionsResponse
		Error    error
	}
	StartReplicationResults           map[string]error
	StopReplicationResults            map[string]error
	TabletExternallyReparentedResults map[string]struct {
		Response *vtctldatapb.TabletExternallyReparentedResponse
		Error    error
	}
	ValidateKeyspaceResults map[string]struct {
		Response *vtctldatapb.ValidateKeyspaceResponse
		Error    error
	}
	ValidateSchemaKeyspaceResults map[string]struct {
		Response *vtctldatapb.ValidateSchemaKeyspaceResponse
		Error    error
	}
	ValidateVersionKeyspaceResults map[string]struct {
		Response *vtctldatapb.ValidateVersionKeyspaceResponse
		Error    error
	}
	WorkflowUpdateResults map[string]struct {
		Response *vtctldatapb.WorkflowUpdateResponse
		Error    error
	}
}

VtctldClient provides a partial mock implementation of the vtctldclient.VtctldClient interface for use in testing.

func (*VtctldClient) ApplySchema

ApplySchema is part of the vtctldclient.VtctldClient interface.

func (*VtctldClient) CancelSchemaMigration

CancelSchemaMigration is part of the vtctldclient.VtctldClient interface.

func (*VtctldClient) CleanupSchemaMigration

CleanupSchemaMigration is part of the vtctldclient.VtctldClient interface.

func (*VtctldClient) Close

func (fake *VtctldClient) Close() error

Close is part of the vtctldclient.VtctldClient interface.

func (*VtctldClient) CompleteSchemaMigration

CompleteSchemaMigration is part of the vtctldclient.VtctldClient interface.

func (*VtctldClient) CreateKeyspace

CreateKeyspace is part of the vtctldclient.VtctldClient interface.

func (*VtctldClient) CreateShard

CreateShard is part of the vtctldclient.VtctldClient interface.

func (*VtctldClient) DeleteKeyspace

DeleteKeyspace is part of the vtctldclient.VtctldClient interface.

func (*VtctldClient) DeleteShards

DeleteShards is part of the vtctldclient.VtctldClient interface.

func (*VtctldClient) DeleteTablets

DeleteTablets is part of the vtctldclient.VtctldClient interface.

func (*VtctldClient) EmergencyReparentShard

EmergencyReparentShard is part of the vtctldclient.VtctldClient interface.

func (*VtctldClient) FindAllShardsInKeyspace

FindAllShardsInKeyspace is part of the vtctldclient.VtctldClient interface.

func (*VtctldClient) GetBackups

GetBackups is part of the vtctldclient.VtctldClient interface.

func (*VtctldClient) GetCellInfo

GetCellInfo is part of the vtctldclient.VtctldClient interface.

func (*VtctldClient) GetCellInfoNames

GetCellInfoNames is part of the vtctldclient.VtctldClient interface.

func (*VtctldClient) GetCellsAliases

GetCellsAliases is part of the vtctldclient.VtctldClient interface.

func (*VtctldClient) GetKeyspace

GetKeyspace is part of the vtctldclient.VtctldClient interface.

func (*VtctldClient) GetKeyspaces

GetKeyspaces is part of the vtctldclient.VtctldClient interface.

func (*VtctldClient) GetSchema

GetSchema is part of the vtctldclient.VtctldClient interface.

func (*VtctldClient) GetSchemaMigrations

GetSchemaMigrations is part of the vtctldclient.VtctldClient interface.

func (*VtctldClient) GetSrvVSchema

GetSrvVSchema is part of the vtctldclient.VtctldClient interface.

func (*VtctldClient) GetSrvVSchemas

GetSrvVSchemas is part of the vtctldclient.VtctldClient interface.

func (*VtctldClient) GetVSchema

GetVSchema is part of the vtctldclient.VtctldClient interface.

func (*VtctldClient) GetWorkflows

GetWorkflows is part of the vtctldclient.VtctldClient interface.

func (*VtctldClient) LaunchSchemaMigration

LaunchSchemaMigration is part of the vtctldclient.VtctldClient interface.

func (*VtctldClient) PingTablet

PingTablet is part of the vtctldclient.VtctldClient interface.

func (*VtctldClient) PlannedReparentShard

PlannedReparentShard is part of the vtctldclient.VtctldClient interface.

func (*VtctldClient) RefreshState

RefreshState is part of the vtctldclient.VtctldClient interface.

func (*VtctldClient) ReloadSchema

ReloadSchema is part of the vtctldclient.VtctldClient interface.

func (*VtctldClient) ReloadSchemaKeyspace

ReloadSchemaKeyspace is part of the vtctldclient.VtctldClient interface.

func (*VtctldClient) ReloadSchemaShard

ReloadSchemaShard is part of the vtctldclient.VtctldClient interface.

func (*VtctldClient) ReparentTablet

ReparentTablet is part of the vtctldclient.VtctldClient interface.

func (*VtctldClient) RetrySchemaMigration

RetrySchemaMigration is part of the vtctldclient.VtctldClient interface.

func (*VtctldClient) RunHealthCheck

RunHealthCheck is part of the vtctldclient.VtctldClient interface.

func (*VtctldClient) SetWritable

SetWritable is part of the vtctldclient.VtctldClient interface.

func (*VtctldClient) ShardReplicationPositions

ShardReplicationPositions is part of the vtctldclient.VtctldClient interface.

func (*VtctldClient) StartReplication

StartReplication is part of the vtctldclient.VtctldClient interface.

func (*VtctldClient) StopReplication

StopReplication is part of the vtctldclient.VtctldClient interface.

func (*VtctldClient) TabletExternallyReparented

TabletExternallyReparented is part of the vtctldclient.VtctldClient interface.

func (*VtctldClient) ValidateKeyspace

ValidateKeyspace is part of the vtctldclient.VtctldClient interface.

func (*VtctldClient) ValidateSchemaKeyspace

ValidateSchemaKeyspace is part of the vtctldclient.VtctldClient interface.

func (*VtctldClient) ValidateVersionKeyspace

ValidateVersionKeyspace is part of the vtctldclient.VtctldClient interface.

func (*VtctldClient) WorkflowUpdate

WorkflowUpdate is part of the vtctldclient.VtctldClient interface.

Jump to

Keyboard shortcuts

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