fakevtctldclient

package
v0.15.1 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2022 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

	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
	}
	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
	}
	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
	}
	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
	}
}

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

func (*VtctldClient) Close added in v0.14.0

func (fake *VtctldClient) Close() error

Close is part of the vtctldclient.VtctldClient interface.

func (*VtctldClient) CreateKeyspace added in v0.12.0

CreateKeyspace is part of the vtctldclient.VtctldClient interface.

func (*VtctldClient) CreateShard added in v0.14.0

CreateShard is part of the vtctldclient.VtctldClient interface.

func (*VtctldClient) DeleteKeyspace added in v0.12.0

DeleteKeyspace is part of the vtctldclient.VtctldClient interface.

func (*VtctldClient) DeleteShards added in v0.14.0

DeleteShards is part of the vtctldclient.VtctldClient interface.

func (*VtctldClient) DeleteTablets added in v0.14.0

DeleteTablets is part of the vtctldclient.VtctldClient interface.

func (*VtctldClient) EmergencyReparentShard added in v0.14.0

EmergencyReparentShard is part of the vtctldclient.VtctldClient interface.

func (*VtctldClient) FindAllShardsInKeyspace

FindAllShardsInKeyspace is part of the vtctldclient.VtctldClient interface.

func (*VtctldClient) GetBackups added in v0.14.0

GetBackups is part of the vtctldclient.VtctldClient interface.

func (*VtctldClient) GetCellInfo added in v0.14.0

GetCellInfo is part of the vtctldclient.VtctldClient interface.

func (*VtctldClient) GetCellInfoNames added in v0.14.0

GetCellInfoNames is part of the vtctldclient.VtctldClient interface.

func (*VtctldClient) GetCellsAliases added in v0.14.0

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) GetSrvVSchema added in v0.14.0

GetSrvVSchema is part of the vtctldclient.VtctldClient interface.

func (*VtctldClient) GetSrvVSchemas added in v0.14.0

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) PingTablet added in v0.14.0

PingTablet is part of the vtctldclient.VtctldClient interface.

func (*VtctldClient) PlannedReparentShard added in v0.14.0

PlannedReparentShard is part of the vtctldclient.VtctldClient interface.

func (*VtctldClient) RefreshState added in v0.14.0

RefreshState is part of the vtctldclient.VtctldClient interface.

func (*VtctldClient) ReloadSchema added in v0.14.0

ReloadSchema is part of the vtctldclient.VtctldClient interface.

func (*VtctldClient) ReloadSchemaKeyspace added in v0.14.0

ReloadSchemaKeyspace is part of the vtctldclient.VtctldClient interface.

func (*VtctldClient) ReloadSchemaShard added in v0.14.0

ReloadSchemaShard is part of the vtctldclient.VtctldClient interface.

func (*VtctldClient) ReparentTablet added in v0.14.0

ReparentTablet is part of the vtctldclient.VtctldClient interface.

func (*VtctldClient) RunHealthCheck added in v0.14.0

RunHealthCheck is part of the vtctldclient.VtctldClient interface.

func (*VtctldClient) SetWritable added in v0.14.0

SetWritable is part of the vtctldclient.VtctldClient interface.

func (*VtctldClient) ShardReplicationPositions added in v0.12.0

ShardReplicationPositions is part of the vtctldclient.VtctldClient interface.

func (*VtctldClient) StartReplication added in v0.14.0

StartReplication is part of the vtctldclient.VtctldClient interface.

func (*VtctldClient) StopReplication added in v0.14.0

StopReplication is part of the vtctldclient.VtctldClient interface.

func (*VtctldClient) TabletExternallyReparented added in v0.14.0

TabletExternallyReparented is part of the vtctldclient.VtctldClient interface.

func (*VtctldClient) ValidateKeyspace added in v0.14.0

ValidateKeyspace is part of the vtctldclient.VtctldClient interface.

func (*VtctldClient) ValidateSchemaKeyspace added in v0.14.0

ValidateSchemaKeyspace is part of the vtctldclient.VtctldClient interface.

func (*VtctldClient) ValidateVersionKeyspace added in v0.14.0

ValidateVersionKeyspace 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