grpcvtctldserver

package
v0.18.6 Latest Latest
Warning

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

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

Documentation

Overview

Copyright 2023 The Vitess Authors.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Index

Constants

View Source
const (
	AllMigrationsIndicator = "all"
)
View Source
const (

	// DefaultWaitReplicasTimeout is the default value for waitReplicasTimeout, which is used when calling method ApplySchema.
	DefaultWaitReplicasTimeout = 10 * time.Second
)

Variables

This section is empty.

Functions

func GetVersionFunc added in v0.16.0

func GetVersionFunc() func(string) (string, error)

func SetVersionFunc added in v0.16.0

func SetVersionFunc(versionFunc func(string) (string, error))

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 NewTestVtctldServer added in v0.16.0

func NewTestVtctldServer(ts *topo.Server, tmc tmclient.TabletManagerClient) *VtctldServer

NewTestVtctldServer returns a new VtctldServer for the given topo server AND tmclient for use in tests. This should NOT be used in production.

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) CancelSchemaMigration added in v0.18.0

CancelSchemaMigration 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) CleanupSchemaMigration added in v0.18.0

CleanupSchemaMigration is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) CompleteSchemaMigration added in v0.18.0

CompleteSchemaMigration 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) GetSchemaMigrations added in v0.18.0

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) LaunchSchemaMigration added in v0.18.0

LaunchSchemaMigration is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) LookupVindexCreate added in v0.18.0

LookupVindexCreate is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) LookupVindexExternalize added in v0.18.0

LookupVindexExternalize is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) MaterializeCreate added in v0.18.0

MaterializeCreate is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) MigrateCreate added in v0.18.0

MigrateCreate is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) MountList added in v0.18.0

MountList is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) MountRegister added in v0.18.0

MountRegister is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) MountShow added in v0.18.0

MountShow is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) MountUnregister added in v0.18.0

MountUnregister is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) MoveTablesComplete added in v0.18.0

MoveTablesComplete is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) MoveTablesCreate added in v0.18.0

MoveTablesCreate is part of the vtctlservicepb.VtctldServer interface.

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) ReshardCreate added in v0.18.0

ReshardCreate is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) RestoreFromBackup added in v0.14.0

func (*VtctldServer) RetrySchemaMigration added in v0.18.0

RetrySchemaMigration is part of the vtctlservicepb.VtctldServer interface.

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) UpdateThrottlerConfig added in v0.16.0

UpdateThrottlerConfig updates throttler config for all cells

func (*VtctldServer) VDiffCreate added in v0.18.0

VDiffCreate is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) VDiffDelete added in v0.18.0

VDiffDelete is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) VDiffResume added in v0.18.0

VDiffResume is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) VDiffShow added in v0.18.0

VDiffShow is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) VDiffStop added in v0.18.0

VDiffStop 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

func (*VtctldServer) WorkflowDelete added in v0.18.0

WorkflowDelete is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) WorkflowStatus added in v0.18.0

WorkflowStatus is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) WorkflowSwitchTraffic added in v0.18.0

WorkflowSwitchTraffic is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) WorkflowUpdate added in v0.17.0

WorkflowUpdate is part of the vtctlservicepb.VtctldServer interface.

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