grpcvtctldserver

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: 52 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StartServer

func StartServer(s *grpc.Server, ts *topo.Server)

StartServer registers a VtctldServer for RPCs on the given gRPC server.

Types

type VtctldServer

type VtctldServer struct {
	vtctlservicepb.UnimplementedVtctldServer
	// contains filtered or unexported fields
}

VtctldServer implements the Vtctld RPC service protocol.

func NewVtctldServer

func NewVtctldServer(ts *topo.Server) *VtctldServer

NewVtctldServer returns a new VtctldServer for the given topo server.

func (*VtctldServer) AddCellInfo added in v0.11.0

AddCellInfo is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) AddCellsAlias added in v0.11.0

AddCellsAlias is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) ApplyRoutingRules added in v0.11.0

ApplyRoutingRules is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) ApplySchema added in v0.13.0

ApplySchema is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) ApplyShardRoutingRules added in v0.15.0

ApplyShardRoutingRules is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) ApplyVSchema added in v0.11.0

ApplyVSchema is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) Backup added in v0.14.0

Backup is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) BackupShard added in v0.14.0

BackupShard is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) ChangeTabletType added in v0.10.0

ChangeTabletType is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) CreateKeyspace added in v0.10.0

CreateKeyspace is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) CreateShard added in v0.10.0

CreateShard is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) DeleteCellInfo added in v0.11.0

DeleteCellInfo is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) DeleteCellsAlias added in v0.11.0

DeleteCellsAlias is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) DeleteKeyspace added in v0.10.0

DeleteKeyspace is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) DeleteShards added in v0.10.0

DeleteShards is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) DeleteSrvVSchema added in v0.12.0

DeleteSrvVSchema is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) DeleteTablets added in v0.10.0

DeleteTablets is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) EmergencyReparentShard added in v0.10.0

EmergencyReparentShard is part of the vtctldservicepb.VtctldServer interface.

func (*VtctldServer) ExecuteFetchAsApp added in v0.14.0

ExecuteFetchAsApp is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) ExecuteFetchAsDBA added in v0.14.0

ExecuteFetchAsDBA is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) ExecuteHook added in v0.13.0

ExecuteHook is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) FindAllShardsInKeyspace

FindAllShardsInKeyspace is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) GetBackups added in v0.10.0

GetBackups is part of the vtctldservicepb.VtctldServer interface.

func (*VtctldServer) GetCellInfo added in v0.10.0

GetCellInfo is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) GetCellInfoNames added in v0.10.0

GetCellInfoNames is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) GetCellsAliases added in v0.10.0

GetCellsAliases is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) GetFullStatus added in v0.15.0

GetFullStatus is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) GetKeyspace

GetKeyspace is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) GetKeyspaces

GetKeyspaces is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) GetPermissions added in v0.14.0

GetPermissions is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) GetRoutingRules added in v0.11.0

GetRoutingRules is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) GetSchema added in v0.10.0

GetSchema is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) GetShard added in v0.10.0

GetShard is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) GetShardRoutingRules added in v0.15.0

GetShardRoutingRules is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) GetSrvKeyspaceNames added in v0.12.0

GetSrvKeyspaceNames is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) GetSrvKeyspaces added in v0.10.0

GetSrvKeyspaces is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) GetSrvVSchema added in v0.10.0

GetSrvVSchema is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) GetSrvVSchemas added in v0.11.0

GetSrvVSchemas is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) GetTablet added in v0.10.0

GetTablet is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) GetTablets added in v0.10.0

GetTablets is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) GetTopologyPath added in v0.15.0

GetTopologyPath is part of the vtctlservicepb.VtctldServer interface. It returns the cell located at the provided path in the topology server.

func (*VtctldServer) GetVSchema added in v0.10.0

GetVSchema is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) GetVersion added in v0.14.0

GetVersion returns the version of a tablet from its debug vars

func (*VtctldServer) GetWorkflows added in v0.10.0

GetWorkflows is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) InitShardPrimary added in v0.10.0

InitShardPrimary is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) InitShardPrimaryLocked added in v0.10.0

func (s *VtctldServer) InitShardPrimaryLocked(
	ctx context.Context,
	ev *events.Reparent,
	req *vtctldatapb.InitShardPrimaryRequest,
	waitReplicasTimeout time.Duration,
	tmc tmclient.TabletManagerClient,
	logger logutil.Logger,
) error

InitShardPrimaryLocked is the main work of doing an InitShardPrimary. It should only called by callers that have already locked the shard in the topo. It is only public so that it can be used in wrangler and legacy vtctl server.

func (*VtctldServer) PingTablet added in v0.12.0

PingTablet is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) PlannedReparentShard added in v0.10.0

PlannedReparentShard is part of the vtctldservicepb.VtctldServer interface.

func (*VtctldServer) RebuildKeyspaceGraph added in v0.12.0

RebuildKeyspaceGraph is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) RebuildVSchemaGraph added in v0.11.0

RebuildVSchemaGraph is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) RefreshState added in v0.11.0

RefreshState is part of the vtctldservicepb.VtctldServer interface.

func (*VtctldServer) RefreshStateByShard added in v0.11.0

RefreshStateByShard is part of the vtctldservicepb.VtctldServer interface.

func (*VtctldServer) ReloadSchema added in v0.13.0

ReloadSchema is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) ReloadSchemaKeyspace added in v0.13.0

ReloadSchemaKeyspace is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) ReloadSchemaShard added in v0.13.0

ReloadSchemaShard is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) RemoveBackup added in v0.14.0

RemoveBackup is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) RemoveKeyspaceCell added in v0.10.0

RemoveKeyspaceCell is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) RemoveShardCell added in v0.10.0

RemoveShardCell is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) ReparentTablet added in v0.10.0

ReparentTablet is part of the vtctldservicepb.VtctldServer interface.

func (*VtctldServer) RestoreFromBackup added in v0.14.0

func (*VtctldServer) RunHealthCheck added in v0.12.0

RunHealthCheck is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) SetKeyspaceDurabilityPolicy added in v0.14.0

SetKeyspaceDurabilityPolicy is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) SetKeyspaceServedFrom added in v0.13.0

SetKeyspaceServedFrom is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) SetShardIsPrimaryServing added in v0.12.0

SetShardIsPrimaryServing is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) SetShardTabletControl added in v0.12.0

SetShardTabletControl is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) SetWritable added in v0.12.0

SetWritable is part of the vtctldservicepb.VtctldServer interface.

func (*VtctldServer) ShardReplicationAdd added in v0.14.0

ShardReplicationAdd is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) ShardReplicationFix added in v0.14.0

ShardReplicationFix is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) ShardReplicationPositions added in v0.10.0

ShardReplicationPositions is part of the vtctldservicepb.VtctldServer interface.

func (*VtctldServer) ShardReplicationRemove added in v0.14.0

ShardReplicationRemove is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) SleepTablet added in v0.12.0

SleepTablet is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) SourceShardAdd added in v0.14.0

SourceShardAdd is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) SourceShardDelete added in v0.14.0

SourceShardDelete is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) StartReplication added in v0.12.0

StartReplication is part of the vtctldservicepb.VtctldServer interface.

func (*VtctldServer) StopReplication added in v0.12.0

StopReplication is part of the vtctldservicepb.VtctldServer interface.

func (*VtctldServer) TabletExternallyReparented added in v0.10.0

TabletExternallyReparented is part of the vtctldservicepb.VtctldServer interface.

func (*VtctldServer) UpdateCellInfo added in v0.11.0

UpdateCellInfo is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) UpdateCellsAlias added in v0.11.0

UpdateCellsAlias is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) Validate added in v0.12.0

Validate is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) ValidateKeyspace added in v0.12.0

ValidateKeyspace is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) ValidateSchemaKeyspace added in v0.14.0

ValidateSchemaKeyspace is a part of the vtctlservicepb.VtctldServer interface. It will diff the schema from all the tablets in the keyspace.

func (*VtctldServer) ValidateShard added in v0.12.0

ValidateShard is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) ValidateVSchema added in v0.14.0

ValidateVSchema compares the schema of each primary tablet in "keyspace/shards..." to the vschema and errs if there are differences

func (*VtctldServer) ValidateVersionKeyspace added in v0.14.0

ValidateVersionKeyspace validates all versions are the same in all tablets in a keyspace

func (*VtctldServer) ValidateVersionShard added in v0.15.0

ValidateVersionShard validates all versions are the same in all tablets in a shard

Directories

Path Synopsis
Package testutil contains utility functions for writing tests for the grpcvtctldserver.
Package testutil contains utility functions for writing tests for the grpcvtctldserver.

Jump to

Keyboard shortcuts

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