grpcvtctldserver

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: 58 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

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

func SetVersionFunc

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

func StartServer

func StartServer(s *grpc.Server, env *vtenv.Environment, 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

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(env *vtenv.Environment, ts *topo.Server) *VtctldServer

NewVtctldServer returns a new VtctldServer for the given topo server.

func (*VtctldServer) AddCellInfo

AddCellInfo is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) AddCellsAlias

AddCellsAlias is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) ApplyKeyspaceRoutingRules

ApplyKeyspaceRoutingRules is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) ApplyRoutingRules

ApplyRoutingRules is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) ApplySchema

ApplySchema is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) ApplyShardRoutingRules

ApplyShardRoutingRules is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) ApplyVSchema

ApplyVSchema is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) Backup

Backup is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) BackupShard

BackupShard is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) CancelSchemaMigration

CancelSchemaMigration is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) ChangeTabletType

ChangeTabletType is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) CleanupSchemaMigration

CleanupSchemaMigration is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) CompleteSchemaMigration

CompleteSchemaMigration is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) CreateKeyspace

CreateKeyspace is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) CreateShard

CreateShard is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) DeleteCellInfo

DeleteCellInfo is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) DeleteCellsAlias

DeleteCellsAlias is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) DeleteKeyspace

DeleteKeyspace is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) DeleteShards

DeleteShards is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) DeleteSrvVSchema

DeleteSrvVSchema is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) DeleteTablets

DeleteTablets is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) EmergencyReparentShard

EmergencyReparentShard is part of the vtctldservicepb.VtctldServer interface.

func (*VtctldServer) ExecuteFetchAsApp

ExecuteFetchAsApp is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) ExecuteFetchAsDBA

ExecuteFetchAsDBA is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) ExecuteHook

ExecuteHook is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) ExecuteMultiFetchAsDBA

ExecuteMultiFetchAsDBA is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) FindAllShardsInKeyspace

FindAllShardsInKeyspace is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) ForceCutOverSchemaMigration

ForceCutOverSchemaMigration is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) GetBackups

GetBackups is part of the vtctldservicepb.VtctldServer interface.

func (*VtctldServer) GetCellInfo

GetCellInfo is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) GetCellInfoNames

GetCellInfoNames is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) GetCellsAliases

GetCellsAliases is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) GetFullStatus

GetFullStatus is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) GetKeyspace

GetKeyspace is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) GetKeyspaceRoutingRules

GetKeyspaceRoutingRules is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) GetKeyspaces

GetKeyspaces is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) GetPermissions

GetPermissions is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) GetRoutingRules

GetRoutingRules is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) GetSchema

GetSchema is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) GetSchemaMigrations

func (*VtctldServer) GetShard

GetShard is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) GetShardReplication

GetShardReplication is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) GetShardRoutingRules

GetShardRoutingRules is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) GetSrvKeyspaceNames

GetSrvKeyspaceNames is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) GetSrvKeyspaces

GetSrvKeyspaces is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) GetSrvVSchema

GetSrvVSchema is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) GetSrvVSchemas

GetSrvVSchemas is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) GetTablet

GetTablet is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) GetTablets

GetTablets is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) GetTopologyPath

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

func (*VtctldServer) GetVSchema

GetVSchema is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) GetVersion

GetVersion returns the version of a tablet from its debug vars

func (*VtctldServer) GetWorkflows

GetWorkflows is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) InitShardPrimary

InitShardPrimary is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) InitShardPrimaryLocked

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

LaunchSchemaMigration is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) LookupVindexCreate

LookupVindexCreate is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) LookupVindexExternalize

LookupVindexExternalize is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) MaterializeCreate

MaterializeCreate is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) MigrateCreate

MigrateCreate is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) MountList

MountList is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) MountRegister

MountRegister is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) MountShow

MountShow is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) MountUnregister

MountUnregister is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) MoveTablesComplete

MoveTablesComplete is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) MoveTablesCreate

MoveTablesCreate is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) PingTablet

PingTablet is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) PlannedReparentShard

PlannedReparentShard is part of the vtctldservicepb.VtctldServer interface.

func (*VtctldServer) RebuildKeyspaceGraph

RebuildKeyspaceGraph is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) RebuildVSchemaGraph

RebuildVSchemaGraph is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) RefreshState

RefreshState is part of the vtctldservicepb.VtctldServer interface.

func (*VtctldServer) RefreshStateByShard

RefreshStateByShard is part of the vtctldservicepb.VtctldServer interface.

func (*VtctldServer) ReloadSchema

ReloadSchema is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) ReloadSchemaKeyspace

ReloadSchemaKeyspace is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) ReloadSchemaShard

ReloadSchemaShard is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) RemoveBackup

RemoveBackup is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) RemoveKeyspaceCell

RemoveKeyspaceCell is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) RemoveShardCell

RemoveShardCell is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) ReparentTablet

ReparentTablet is part of the vtctldservicepb.VtctldServer interface.

func (*VtctldServer) ReshardCreate

ReshardCreate is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) RestoreFromBackup

func (*VtctldServer) RetrySchemaMigration

RetrySchemaMigration is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) RunHealthCheck

RunHealthCheck is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) SetKeyspaceDurabilityPolicy

SetKeyspaceDurabilityPolicy is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) SetShardIsPrimaryServing

SetShardIsPrimaryServing is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) SetShardTabletControl

SetShardTabletControl is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) SetWritable

SetWritable is part of the vtctldservicepb.VtctldServer interface.

func (*VtctldServer) ShardReplicationAdd

ShardReplicationAdd is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) ShardReplicationFix

ShardReplicationFix is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) ShardReplicationPositions

ShardReplicationPositions is part of the vtctldservicepb.VtctldServer interface.

func (*VtctldServer) ShardReplicationRemove

ShardReplicationRemove is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) SleepTablet

SleepTablet is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) SourceShardAdd

SourceShardAdd is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) SourceShardDelete

SourceShardDelete is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) StartReplication

StartReplication is part of the vtctldservicepb.VtctldServer interface.

func (*VtctldServer) StopReplication

StopReplication is part of the vtctldservicepb.VtctldServer interface.

func (*VtctldServer) TabletExternallyReparented

TabletExternallyReparented is part of the vtctldservicepb.VtctldServer interface.

func (*VtctldServer) UpdateCellInfo

UpdateCellInfo is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) UpdateCellsAlias

UpdateCellsAlias is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) UpdateThrottlerConfig

UpdateThrottlerConfig updates throttler config for all cells

func (*VtctldServer) VDiffCreate

VDiffCreate is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) VDiffDelete

VDiffDelete is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) VDiffResume

VDiffResume is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) VDiffShow

VDiffShow is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) VDiffStop

VDiffStop is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) Validate

Validate is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) ValidateKeyspace

ValidateKeyspace is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) ValidateSchemaKeyspace

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

func (*VtctldServer) ValidateShard

ValidateShard is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) ValidateVSchema

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

func (*VtctldServer) ValidateVersionKeyspace

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

func (*VtctldServer) ValidateVersionShard

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

func (*VtctldServer) WorkflowDelete

WorkflowDelete is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) WorkflowStatus

WorkflowStatus is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) WorkflowSwitchTraffic

WorkflowSwitchTraffic is part of the vtctlservicepb.VtctldServer interface.

func (*VtctldServer) WorkflowUpdate

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