Documentation ¶
Index ¶
- Variables
- func RegisterVtctlServer(s grpc.ServiceRegistrar, srv VtctlServer)
- func RegisterVtctldServer(s grpc.ServiceRegistrar, srv VtctldServer)
- type UnimplementedVtctlServer
- type UnimplementedVtctldServer
- func (UnimplementedVtctldServer) AddCellInfo(context.Context, *vtctldata.AddCellInfoRequest) (*vtctldata.AddCellInfoResponse, error)
- func (UnimplementedVtctldServer) AddCellsAlias(context.Context, *vtctldata.AddCellsAliasRequest) (*vtctldata.AddCellsAliasResponse, error)
- func (UnimplementedVtctldServer) ApplyRoutingRules(context.Context, *vtctldata.ApplyRoutingRulesRequest) (*vtctldata.ApplyRoutingRulesResponse, error)
- func (UnimplementedVtctldServer) ApplySchema(context.Context, *vtctldata.ApplySchemaRequest) (*vtctldata.ApplySchemaResponse, error)
- func (UnimplementedVtctldServer) ApplyVSchema(context.Context, *vtctldata.ApplyVSchemaRequest) (*vtctldata.ApplyVSchemaResponse, error)
- func (UnimplementedVtctldServer) Backup(*vtctldata.BackupRequest, Vtctld_BackupServer) error
- func (UnimplementedVtctldServer) BackupShard(*vtctldata.BackupShardRequest, Vtctld_BackupShardServer) error
- func (UnimplementedVtctldServer) ChangeTabletType(context.Context, *vtctldata.ChangeTabletTypeRequest) (*vtctldata.ChangeTabletTypeResponse, error)
- func (UnimplementedVtctldServer) CreateKeyspace(context.Context, *vtctldata.CreateKeyspaceRequest) (*vtctldata.CreateKeyspaceResponse, error)
- func (UnimplementedVtctldServer) CreateShard(context.Context, *vtctldata.CreateShardRequest) (*vtctldata.CreateShardResponse, error)
- func (UnimplementedVtctldServer) DeleteCellInfo(context.Context, *vtctldata.DeleteCellInfoRequest) (*vtctldata.DeleteCellInfoResponse, error)
- func (UnimplementedVtctldServer) DeleteCellsAlias(context.Context, *vtctldata.DeleteCellsAliasRequest) (*vtctldata.DeleteCellsAliasResponse, error)
- func (UnimplementedVtctldServer) DeleteKeyspace(context.Context, *vtctldata.DeleteKeyspaceRequest) (*vtctldata.DeleteKeyspaceResponse, error)
- func (UnimplementedVtctldServer) DeleteShards(context.Context, *vtctldata.DeleteShardsRequest) (*vtctldata.DeleteShardsResponse, error)
- func (UnimplementedVtctldServer) DeleteSrvVSchema(context.Context, *vtctldata.DeleteSrvVSchemaRequest) (*vtctldata.DeleteSrvVSchemaResponse, error)
- func (UnimplementedVtctldServer) DeleteTablets(context.Context, *vtctldata.DeleteTabletsRequest) (*vtctldata.DeleteTabletsResponse, error)
- func (UnimplementedVtctldServer) EmergencyReparentShard(context.Context, *vtctldata.EmergencyReparentShardRequest) (*vtctldata.EmergencyReparentShardResponse, error)
- func (UnimplementedVtctldServer) ExecuteFetchAsApp(context.Context, *vtctldata.ExecuteFetchAsAppRequest) (*vtctldata.ExecuteFetchAsAppResponse, error)
- func (UnimplementedVtctldServer) ExecuteFetchAsDBA(context.Context, *vtctldata.ExecuteFetchAsDBARequest) (*vtctldata.ExecuteFetchAsDBAResponse, error)
- func (UnimplementedVtctldServer) ExecuteHook(context.Context, *vtctldata.ExecuteHookRequest) (*vtctldata.ExecuteHookResponse, error)
- func (UnimplementedVtctldServer) FindAllShardsInKeyspace(context.Context, *vtctldata.FindAllShardsInKeyspaceRequest) (*vtctldata.FindAllShardsInKeyspaceResponse, error)
- func (UnimplementedVtctldServer) GetBackups(context.Context, *vtctldata.GetBackupsRequest) (*vtctldata.GetBackupsResponse, error)
- func (UnimplementedVtctldServer) GetCellInfo(context.Context, *vtctldata.GetCellInfoRequest) (*vtctldata.GetCellInfoResponse, error)
- func (UnimplementedVtctldServer) GetCellInfoNames(context.Context, *vtctldata.GetCellInfoNamesRequest) (*vtctldata.GetCellInfoNamesResponse, error)
- func (UnimplementedVtctldServer) GetCellsAliases(context.Context, *vtctldata.GetCellsAliasesRequest) (*vtctldata.GetCellsAliasesResponse, error)
- func (UnimplementedVtctldServer) GetKeyspace(context.Context, *vtctldata.GetKeyspaceRequest) (*vtctldata.GetKeyspaceResponse, error)
- func (UnimplementedVtctldServer) GetKeyspaces(context.Context, *vtctldata.GetKeyspacesRequest) (*vtctldata.GetKeyspacesResponse, error)
- func (UnimplementedVtctldServer) GetPermissions(context.Context, *vtctldata.GetPermissionsRequest) (*vtctldata.GetPermissionsResponse, error)
- func (UnimplementedVtctldServer) GetRoutingRules(context.Context, *vtctldata.GetRoutingRulesRequest) (*vtctldata.GetRoutingRulesResponse, error)
- func (UnimplementedVtctldServer) GetSchema(context.Context, *vtctldata.GetSchemaRequest) (*vtctldata.GetSchemaResponse, error)
- func (UnimplementedVtctldServer) GetShard(context.Context, *vtctldata.GetShardRequest) (*vtctldata.GetShardResponse, error)
- func (UnimplementedVtctldServer) GetSrvKeyspaceNames(context.Context, *vtctldata.GetSrvKeyspaceNamesRequest) (*vtctldata.GetSrvKeyspaceNamesResponse, error)
- func (UnimplementedVtctldServer) GetSrvKeyspaces(context.Context, *vtctldata.GetSrvKeyspacesRequest) (*vtctldata.GetSrvKeyspacesResponse, error)
- func (UnimplementedVtctldServer) GetSrvVSchema(context.Context, *vtctldata.GetSrvVSchemaRequest) (*vtctldata.GetSrvVSchemaResponse, error)
- func (UnimplementedVtctldServer) GetSrvVSchemas(context.Context, *vtctldata.GetSrvVSchemasRequest) (*vtctldata.GetSrvVSchemasResponse, error)
- func (UnimplementedVtctldServer) GetTablet(context.Context, *vtctldata.GetTabletRequest) (*vtctldata.GetTabletResponse, error)
- func (UnimplementedVtctldServer) GetTablets(context.Context, *vtctldata.GetTabletsRequest) (*vtctldata.GetTabletsResponse, error)
- func (UnimplementedVtctldServer) GetVSchema(context.Context, *vtctldata.GetVSchemaRequest) (*vtctldata.GetVSchemaResponse, error)
- func (UnimplementedVtctldServer) GetVersion(context.Context, *vtctldata.GetVersionRequest) (*vtctldata.GetVersionResponse, error)
- func (UnimplementedVtctldServer) GetWorkflows(context.Context, *vtctldata.GetWorkflowsRequest) (*vtctldata.GetWorkflowsResponse, error)
- func (UnimplementedVtctldServer) InitShardPrimary(context.Context, *vtctldata.InitShardPrimaryRequest) (*vtctldata.InitShardPrimaryResponse, error)
- func (UnimplementedVtctldServer) PingTablet(context.Context, *vtctldata.PingTabletRequest) (*vtctldata.PingTabletResponse, error)
- func (UnimplementedVtctldServer) PlannedReparentShard(context.Context, *vtctldata.PlannedReparentShardRequest) (*vtctldata.PlannedReparentShardResponse, error)
- func (UnimplementedVtctldServer) RebuildKeyspaceGraph(context.Context, *vtctldata.RebuildKeyspaceGraphRequest) (*vtctldata.RebuildKeyspaceGraphResponse, error)
- func (UnimplementedVtctldServer) RebuildVSchemaGraph(context.Context, *vtctldata.RebuildVSchemaGraphRequest) (*vtctldata.RebuildVSchemaGraphResponse, error)
- func (UnimplementedVtctldServer) RefreshState(context.Context, *vtctldata.RefreshStateRequest) (*vtctldata.RefreshStateResponse, error)
- func (UnimplementedVtctldServer) RefreshStateByShard(context.Context, *vtctldata.RefreshStateByShardRequest) (*vtctldata.RefreshStateByShardResponse, error)
- func (UnimplementedVtctldServer) ReloadSchema(context.Context, *vtctldata.ReloadSchemaRequest) (*vtctldata.ReloadSchemaResponse, error)
- func (UnimplementedVtctldServer) ReloadSchemaKeyspace(context.Context, *vtctldata.ReloadSchemaKeyspaceRequest) (*vtctldata.ReloadSchemaKeyspaceResponse, error)
- func (UnimplementedVtctldServer) ReloadSchemaShard(context.Context, *vtctldata.ReloadSchemaShardRequest) (*vtctldata.ReloadSchemaShardResponse, error)
- func (UnimplementedVtctldServer) RemoveBackup(context.Context, *vtctldata.RemoveBackupRequest) (*vtctldata.RemoveBackupResponse, error)
- func (UnimplementedVtctldServer) RemoveKeyspaceCell(context.Context, *vtctldata.RemoveKeyspaceCellRequest) (*vtctldata.RemoveKeyspaceCellResponse, error)
- func (UnimplementedVtctldServer) RemoveShardCell(context.Context, *vtctldata.RemoveShardCellRequest) (*vtctldata.RemoveShardCellResponse, error)
- func (UnimplementedVtctldServer) ReparentTablet(context.Context, *vtctldata.ReparentTabletRequest) (*vtctldata.ReparentTabletResponse, error)
- func (UnimplementedVtctldServer) RestoreFromBackup(*vtctldata.RestoreFromBackupRequest, Vtctld_RestoreFromBackupServer) error
- func (UnimplementedVtctldServer) RunHealthCheck(context.Context, *vtctldata.RunHealthCheckRequest) (*vtctldata.RunHealthCheckResponse, error)
- func (UnimplementedVtctldServer) SetKeyspaceDurabilityPolicy(context.Context, *vtctldata.SetKeyspaceDurabilityPolicyRequest) (*vtctldata.SetKeyspaceDurabilityPolicyResponse, error)
- func (UnimplementedVtctldServer) SetKeyspaceServedFrom(context.Context, *vtctldata.SetKeyspaceServedFromRequest) (*vtctldata.SetKeyspaceServedFromResponse, error)
- func (UnimplementedVtctldServer) SetKeyspaceShardingInfo(context.Context, *vtctldata.SetKeyspaceShardingInfoRequest) (*vtctldata.SetKeyspaceShardingInfoResponse, error)
- func (UnimplementedVtctldServer) SetShardIsPrimaryServing(context.Context, *vtctldata.SetShardIsPrimaryServingRequest) (*vtctldata.SetShardIsPrimaryServingResponse, error)
- func (UnimplementedVtctldServer) SetShardTabletControl(context.Context, *vtctldata.SetShardTabletControlRequest) (*vtctldata.SetShardTabletControlResponse, error)
- func (UnimplementedVtctldServer) SetWritable(context.Context, *vtctldata.SetWritableRequest) (*vtctldata.SetWritableResponse, error)
- func (UnimplementedVtctldServer) ShardReplicationAdd(context.Context, *vtctldata.ShardReplicationAddRequest) (*vtctldata.ShardReplicationAddResponse, error)
- func (UnimplementedVtctldServer) ShardReplicationFix(context.Context, *vtctldata.ShardReplicationFixRequest) (*vtctldata.ShardReplicationFixResponse, error)
- func (UnimplementedVtctldServer) ShardReplicationPositions(context.Context, *vtctldata.ShardReplicationPositionsRequest) (*vtctldata.ShardReplicationPositionsResponse, error)
- func (UnimplementedVtctldServer) ShardReplicationRemove(context.Context, *vtctldata.ShardReplicationRemoveRequest) (*vtctldata.ShardReplicationRemoveResponse, error)
- func (UnimplementedVtctldServer) SleepTablet(context.Context, *vtctldata.SleepTabletRequest) (*vtctldata.SleepTabletResponse, error)
- func (UnimplementedVtctldServer) SourceShardAdd(context.Context, *vtctldata.SourceShardAddRequest) (*vtctldata.SourceShardAddResponse, error)
- func (UnimplementedVtctldServer) SourceShardDelete(context.Context, *vtctldata.SourceShardDeleteRequest) (*vtctldata.SourceShardDeleteResponse, error)
- func (UnimplementedVtctldServer) StartReplication(context.Context, *vtctldata.StartReplicationRequest) (*vtctldata.StartReplicationResponse, error)
- func (UnimplementedVtctldServer) StopReplication(context.Context, *vtctldata.StopReplicationRequest) (*vtctldata.StopReplicationResponse, error)
- func (UnimplementedVtctldServer) TabletExternallyReparented(context.Context, *vtctldata.TabletExternallyReparentedRequest) (*vtctldata.TabletExternallyReparentedResponse, error)
- func (UnimplementedVtctldServer) UpdateCellInfo(context.Context, *vtctldata.UpdateCellInfoRequest) (*vtctldata.UpdateCellInfoResponse, error)
- func (UnimplementedVtctldServer) UpdateCellsAlias(context.Context, *vtctldata.UpdateCellsAliasRequest) (*vtctldata.UpdateCellsAliasResponse, error)
- func (UnimplementedVtctldServer) Validate(context.Context, *vtctldata.ValidateRequest) (*vtctldata.ValidateResponse, error)
- func (UnimplementedVtctldServer) ValidateKeyspace(context.Context, *vtctldata.ValidateKeyspaceRequest) (*vtctldata.ValidateKeyspaceResponse, error)
- func (UnimplementedVtctldServer) ValidateSchemaKeyspace(context.Context, *vtctldata.ValidateSchemaKeyspaceRequest) (*vtctldata.ValidateSchemaKeyspaceResponse, error)
- func (UnimplementedVtctldServer) ValidateShard(context.Context, *vtctldata.ValidateShardRequest) (*vtctldata.ValidateShardResponse, error)
- func (UnimplementedVtctldServer) ValidateVSchema(context.Context, *vtctldata.ValidateVSchemaRequest) (*vtctldata.ValidateVSchemaResponse, error)
- func (UnimplementedVtctldServer) ValidateVersionKeyspace(context.Context, *vtctldata.ValidateVersionKeyspaceRequest) (*vtctldata.ValidateVersionKeyspaceResponse, error)
- type UnsafeVtctlServer
- type UnsafeVtctldServer
- type VtctlClient
- type VtctlServer
- type Vtctl_ExecuteVtctlCommandClient
- type Vtctl_ExecuteVtctlCommandServer
- type VtctldClient
- type VtctldServer
- type Vtctld_BackupClient
- type Vtctld_BackupServer
- type Vtctld_BackupShardClient
- type Vtctld_BackupShardServer
- type Vtctld_RestoreFromBackupClient
- type Vtctld_RestoreFromBackupServer
Constants ¶
This section is empty.
Variables ¶
var File_vtctlservice_proto protoreflect.FileDescriptor
var Vtctl_ServiceDesc = grpc.ServiceDesc{ ServiceName: "vtctlservice.Vtctl", HandlerType: (*VtctlServer)(nil), Methods: []grpc.MethodDesc{}, Streams: []grpc.StreamDesc{ { StreamName: "ExecuteVtctlCommand", Handler: _Vtctl_ExecuteVtctlCommand_Handler, ServerStreams: true, }, }, Metadata: "vtctlservice.proto", }
Vtctl_ServiceDesc is the grpc.ServiceDesc for Vtctl service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var Vtctld_ServiceDesc = grpc.ServiceDesc{ ServiceName: "vtctlservice.Vtctld", HandlerType: (*VtctldServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "AddCellInfo", Handler: _Vtctld_AddCellInfo_Handler, }, { MethodName: "AddCellsAlias", Handler: _Vtctld_AddCellsAlias_Handler, }, { MethodName: "ApplyRoutingRules", Handler: _Vtctld_ApplyRoutingRules_Handler, }, { MethodName: "ApplySchema", Handler: _Vtctld_ApplySchema_Handler, }, { MethodName: "ApplyVSchema", Handler: _Vtctld_ApplyVSchema_Handler, }, { MethodName: "ChangeTabletType", Handler: _Vtctld_ChangeTabletType_Handler, }, { MethodName: "CreateKeyspace", Handler: _Vtctld_CreateKeyspace_Handler, }, { MethodName: "CreateShard", Handler: _Vtctld_CreateShard_Handler, }, { MethodName: "DeleteCellInfo", Handler: _Vtctld_DeleteCellInfo_Handler, }, { MethodName: "DeleteCellsAlias", Handler: _Vtctld_DeleteCellsAlias_Handler, }, { MethodName: "DeleteKeyspace", Handler: _Vtctld_DeleteKeyspace_Handler, }, { MethodName: "DeleteShards", Handler: _Vtctld_DeleteShards_Handler, }, { MethodName: "DeleteSrvVSchema", Handler: _Vtctld_DeleteSrvVSchema_Handler, }, { MethodName: "DeleteTablets", Handler: _Vtctld_DeleteTablets_Handler, }, { MethodName: "EmergencyReparentShard", Handler: _Vtctld_EmergencyReparentShard_Handler, }, { MethodName: "ExecuteFetchAsApp", Handler: _Vtctld_ExecuteFetchAsApp_Handler, }, { MethodName: "ExecuteFetchAsDBA", Handler: _Vtctld_ExecuteFetchAsDBA_Handler, }, { MethodName: "ExecuteHook", Handler: _Vtctld_ExecuteHook_Handler, }, { MethodName: "FindAllShardsInKeyspace", Handler: _Vtctld_FindAllShardsInKeyspace_Handler, }, { MethodName: "GetBackups", Handler: _Vtctld_GetBackups_Handler, }, { MethodName: "GetCellInfo", Handler: _Vtctld_GetCellInfo_Handler, }, { MethodName: "GetCellInfoNames", Handler: _Vtctld_GetCellInfoNames_Handler, }, { MethodName: "GetCellsAliases", Handler: _Vtctld_GetCellsAliases_Handler, }, { MethodName: "GetKeyspace", Handler: _Vtctld_GetKeyspace_Handler, }, { MethodName: "GetKeyspaces", Handler: _Vtctld_GetKeyspaces_Handler, }, { MethodName: "GetPermissions", Handler: _Vtctld_GetPermissions_Handler, }, { MethodName: "GetRoutingRules", Handler: _Vtctld_GetRoutingRules_Handler, }, { MethodName: "GetSchema", Handler: _Vtctld_GetSchema_Handler, }, { MethodName: "GetShard", Handler: _Vtctld_GetShard_Handler, }, { MethodName: "GetSrvKeyspaceNames", Handler: _Vtctld_GetSrvKeyspaceNames_Handler, }, { MethodName: "GetSrvKeyspaces", Handler: _Vtctld_GetSrvKeyspaces_Handler, }, { MethodName: "GetSrvVSchema", Handler: _Vtctld_GetSrvVSchema_Handler, }, { MethodName: "GetSrvVSchemas", Handler: _Vtctld_GetSrvVSchemas_Handler, }, { MethodName: "GetTablet", Handler: _Vtctld_GetTablet_Handler, }, { MethodName: "GetTablets", Handler: _Vtctld_GetTablets_Handler, }, { MethodName: "GetVersion", Handler: _Vtctld_GetVersion_Handler, }, { MethodName: "GetVSchema", Handler: _Vtctld_GetVSchema_Handler, }, { MethodName: "GetWorkflows", Handler: _Vtctld_GetWorkflows_Handler, }, { MethodName: "InitShardPrimary", Handler: _Vtctld_InitShardPrimary_Handler, }, { MethodName: "PingTablet", Handler: _Vtctld_PingTablet_Handler, }, { MethodName: "PlannedReparentShard", Handler: _Vtctld_PlannedReparentShard_Handler, }, { MethodName: "RebuildKeyspaceGraph", Handler: _Vtctld_RebuildKeyspaceGraph_Handler, }, { MethodName: "RebuildVSchemaGraph", Handler: _Vtctld_RebuildVSchemaGraph_Handler, }, { MethodName: "RefreshState", Handler: _Vtctld_RefreshState_Handler, }, { MethodName: "RefreshStateByShard", Handler: _Vtctld_RefreshStateByShard_Handler, }, { MethodName: "ReloadSchema", Handler: _Vtctld_ReloadSchema_Handler, }, { MethodName: "ReloadSchemaKeyspace", Handler: _Vtctld_ReloadSchemaKeyspace_Handler, }, { MethodName: "ReloadSchemaShard", Handler: _Vtctld_ReloadSchemaShard_Handler, }, { MethodName: "RemoveBackup", Handler: _Vtctld_RemoveBackup_Handler, }, { MethodName: "RemoveKeyspaceCell", Handler: _Vtctld_RemoveKeyspaceCell_Handler, }, { MethodName: "RemoveShardCell", Handler: _Vtctld_RemoveShardCell_Handler, }, { MethodName: "ReparentTablet", Handler: _Vtctld_ReparentTablet_Handler, }, { MethodName: "RunHealthCheck", Handler: _Vtctld_RunHealthCheck_Handler, }, { MethodName: "SetKeyspaceDurabilityPolicy", Handler: _Vtctld_SetKeyspaceDurabilityPolicy_Handler, }, { MethodName: "SetKeyspaceServedFrom", Handler: _Vtctld_SetKeyspaceServedFrom_Handler, }, { MethodName: "SetKeyspaceShardingInfo", Handler: _Vtctld_SetKeyspaceShardingInfo_Handler, }, { MethodName: "SetShardIsPrimaryServing", Handler: _Vtctld_SetShardIsPrimaryServing_Handler, }, { MethodName: "SetShardTabletControl", Handler: _Vtctld_SetShardTabletControl_Handler, }, { MethodName: "SetWritable", Handler: _Vtctld_SetWritable_Handler, }, { MethodName: "ShardReplicationAdd", Handler: _Vtctld_ShardReplicationAdd_Handler, }, { MethodName: "ShardReplicationFix", Handler: _Vtctld_ShardReplicationFix_Handler, }, { MethodName: "ShardReplicationPositions", Handler: _Vtctld_ShardReplicationPositions_Handler, }, { MethodName: "ShardReplicationRemove", Handler: _Vtctld_ShardReplicationRemove_Handler, }, { MethodName: "SleepTablet", Handler: _Vtctld_SleepTablet_Handler, }, { MethodName: "SourceShardAdd", Handler: _Vtctld_SourceShardAdd_Handler, }, { MethodName: "SourceShardDelete", Handler: _Vtctld_SourceShardDelete_Handler, }, { MethodName: "StartReplication", Handler: _Vtctld_StartReplication_Handler, }, { MethodName: "StopReplication", Handler: _Vtctld_StopReplication_Handler, }, { MethodName: "TabletExternallyReparented", Handler: _Vtctld_TabletExternallyReparented_Handler, }, { MethodName: "UpdateCellInfo", Handler: _Vtctld_UpdateCellInfo_Handler, }, { MethodName: "UpdateCellsAlias", Handler: _Vtctld_UpdateCellsAlias_Handler, }, { MethodName: "Validate", Handler: _Vtctld_Validate_Handler, }, { MethodName: "ValidateKeyspace", Handler: _Vtctld_ValidateKeyspace_Handler, }, { MethodName: "ValidateSchemaKeyspace", Handler: _Vtctld_ValidateSchemaKeyspace_Handler, }, { MethodName: "ValidateShard", Handler: _Vtctld_ValidateShard_Handler, }, { MethodName: "ValidateVersionKeyspace", Handler: _Vtctld_ValidateVersionKeyspace_Handler, }, { MethodName: "ValidateVSchema", Handler: _Vtctld_ValidateVSchema_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "Backup", Handler: _Vtctld_Backup_Handler, ServerStreams: true, }, { StreamName: "BackupShard", Handler: _Vtctld_BackupShard_Handler, ServerStreams: true, }, { StreamName: "RestoreFromBackup", Handler: _Vtctld_RestoreFromBackup_Handler, ServerStreams: true, }, }, Metadata: "vtctlservice.proto", }
Vtctld_ServiceDesc is the grpc.ServiceDesc for Vtctld service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterVtctlServer ¶
func RegisterVtctlServer(s grpc.ServiceRegistrar, srv VtctlServer)
func RegisterVtctldServer ¶ added in v0.9.0
func RegisterVtctldServer(s grpc.ServiceRegistrar, srv VtctldServer)
Types ¶
type UnimplementedVtctlServer ¶
type UnimplementedVtctlServer struct { }
UnimplementedVtctlServer must be embedded to have forward compatible implementations.
func (UnimplementedVtctlServer) ExecuteVtctlCommand ¶
func (UnimplementedVtctlServer) ExecuteVtctlCommand(*vtctldata.ExecuteVtctlCommandRequest, Vtctl_ExecuteVtctlCommandServer) error
type UnimplementedVtctldServer ¶ added in v0.9.0
type UnimplementedVtctldServer struct { }
UnimplementedVtctldServer must be embedded to have forward compatible implementations.
func (UnimplementedVtctldServer) AddCellInfo ¶ added in v0.11.0
func (UnimplementedVtctldServer) AddCellInfo(context.Context, *vtctldata.AddCellInfoRequest) (*vtctldata.AddCellInfoResponse, error)
func (UnimplementedVtctldServer) AddCellsAlias ¶ added in v0.11.0
func (UnimplementedVtctldServer) AddCellsAlias(context.Context, *vtctldata.AddCellsAliasRequest) (*vtctldata.AddCellsAliasResponse, error)
func (UnimplementedVtctldServer) ApplyRoutingRules ¶ added in v0.11.0
func (UnimplementedVtctldServer) ApplyRoutingRules(context.Context, *vtctldata.ApplyRoutingRulesRequest) (*vtctldata.ApplyRoutingRulesResponse, error)
func (UnimplementedVtctldServer) ApplySchema ¶ added in v0.13.0
func (UnimplementedVtctldServer) ApplySchema(context.Context, *vtctldata.ApplySchemaRequest) (*vtctldata.ApplySchemaResponse, error)
func (UnimplementedVtctldServer) ApplyVSchema ¶ added in v0.11.0
func (UnimplementedVtctldServer) ApplyVSchema(context.Context, *vtctldata.ApplyVSchemaRequest) (*vtctldata.ApplyVSchemaResponse, error)
func (UnimplementedVtctldServer) Backup ¶ added in v0.14.0
func (UnimplementedVtctldServer) Backup(*vtctldata.BackupRequest, Vtctld_BackupServer) error
func (UnimplementedVtctldServer) BackupShard ¶ added in v0.14.0
func (UnimplementedVtctldServer) BackupShard(*vtctldata.BackupShardRequest, Vtctld_BackupShardServer) error
func (UnimplementedVtctldServer) ChangeTabletType ¶ added in v0.10.0
func (UnimplementedVtctldServer) ChangeTabletType(context.Context, *vtctldata.ChangeTabletTypeRequest) (*vtctldata.ChangeTabletTypeResponse, error)
func (UnimplementedVtctldServer) CreateKeyspace ¶ added in v0.10.0
func (UnimplementedVtctldServer) CreateKeyspace(context.Context, *vtctldata.CreateKeyspaceRequest) (*vtctldata.CreateKeyspaceResponse, error)
func (UnimplementedVtctldServer) CreateShard ¶ added in v0.10.0
func (UnimplementedVtctldServer) CreateShard(context.Context, *vtctldata.CreateShardRequest) (*vtctldata.CreateShardResponse, error)
func (UnimplementedVtctldServer) DeleteCellInfo ¶ added in v0.11.0
func (UnimplementedVtctldServer) DeleteCellInfo(context.Context, *vtctldata.DeleteCellInfoRequest) (*vtctldata.DeleteCellInfoResponse, error)
func (UnimplementedVtctldServer) DeleteCellsAlias ¶ added in v0.11.0
func (UnimplementedVtctldServer) DeleteCellsAlias(context.Context, *vtctldata.DeleteCellsAliasRequest) (*vtctldata.DeleteCellsAliasResponse, error)
func (UnimplementedVtctldServer) DeleteKeyspace ¶ added in v0.10.0
func (UnimplementedVtctldServer) DeleteKeyspace(context.Context, *vtctldata.DeleteKeyspaceRequest) (*vtctldata.DeleteKeyspaceResponse, error)
func (UnimplementedVtctldServer) DeleteShards ¶ added in v0.10.0
func (UnimplementedVtctldServer) DeleteShards(context.Context, *vtctldata.DeleteShardsRequest) (*vtctldata.DeleteShardsResponse, error)
func (UnimplementedVtctldServer) DeleteSrvVSchema ¶ added in v0.12.0
func (UnimplementedVtctldServer) DeleteSrvVSchema(context.Context, *vtctldata.DeleteSrvVSchemaRequest) (*vtctldata.DeleteSrvVSchemaResponse, error)
func (UnimplementedVtctldServer) DeleteTablets ¶ added in v0.10.0
func (UnimplementedVtctldServer) DeleteTablets(context.Context, *vtctldata.DeleteTabletsRequest) (*vtctldata.DeleteTabletsResponse, error)
func (UnimplementedVtctldServer) EmergencyReparentShard ¶ added in v0.10.0
func (UnimplementedVtctldServer) EmergencyReparentShard(context.Context, *vtctldata.EmergencyReparentShardRequest) (*vtctldata.EmergencyReparentShardResponse, error)
func (UnimplementedVtctldServer) ExecuteFetchAsApp ¶ added in v0.14.0
func (UnimplementedVtctldServer) ExecuteFetchAsApp(context.Context, *vtctldata.ExecuteFetchAsAppRequest) (*vtctldata.ExecuteFetchAsAppResponse, error)
func (UnimplementedVtctldServer) ExecuteFetchAsDBA ¶ added in v0.14.0
func (UnimplementedVtctldServer) ExecuteFetchAsDBA(context.Context, *vtctldata.ExecuteFetchAsDBARequest) (*vtctldata.ExecuteFetchAsDBAResponse, error)
func (UnimplementedVtctldServer) ExecuteHook ¶ added in v0.13.0
func (UnimplementedVtctldServer) ExecuteHook(context.Context, *vtctldata.ExecuteHookRequest) (*vtctldata.ExecuteHookResponse, error)
func (UnimplementedVtctldServer) FindAllShardsInKeyspace ¶ added in v0.9.0
func (UnimplementedVtctldServer) FindAllShardsInKeyspace(context.Context, *vtctldata.FindAllShardsInKeyspaceRequest) (*vtctldata.FindAllShardsInKeyspaceResponse, error)
func (UnimplementedVtctldServer) GetBackups ¶ added in v0.10.0
func (UnimplementedVtctldServer) GetBackups(context.Context, *vtctldata.GetBackupsRequest) (*vtctldata.GetBackupsResponse, error)
func (UnimplementedVtctldServer) GetCellInfo ¶ added in v0.10.0
func (UnimplementedVtctldServer) GetCellInfo(context.Context, *vtctldata.GetCellInfoRequest) (*vtctldata.GetCellInfoResponse, error)
func (UnimplementedVtctldServer) GetCellInfoNames ¶ added in v0.10.0
func (UnimplementedVtctldServer) GetCellInfoNames(context.Context, *vtctldata.GetCellInfoNamesRequest) (*vtctldata.GetCellInfoNamesResponse, error)
func (UnimplementedVtctldServer) GetCellsAliases ¶ added in v0.10.0
func (UnimplementedVtctldServer) GetCellsAliases(context.Context, *vtctldata.GetCellsAliasesRequest) (*vtctldata.GetCellsAliasesResponse, error)
func (UnimplementedVtctldServer) GetKeyspace ¶ added in v0.9.0
func (UnimplementedVtctldServer) GetKeyspace(context.Context, *vtctldata.GetKeyspaceRequest) (*vtctldata.GetKeyspaceResponse, error)
func (UnimplementedVtctldServer) GetKeyspaces ¶ added in v0.9.0
func (UnimplementedVtctldServer) GetKeyspaces(context.Context, *vtctldata.GetKeyspacesRequest) (*vtctldata.GetKeyspacesResponse, error)
func (UnimplementedVtctldServer) GetPermissions ¶ added in v0.14.0
func (UnimplementedVtctldServer) GetPermissions(context.Context, *vtctldata.GetPermissionsRequest) (*vtctldata.GetPermissionsResponse, error)
func (UnimplementedVtctldServer) GetRoutingRules ¶ added in v0.11.0
func (UnimplementedVtctldServer) GetRoutingRules(context.Context, *vtctldata.GetRoutingRulesRequest) (*vtctldata.GetRoutingRulesResponse, error)
func (UnimplementedVtctldServer) GetSchema ¶ added in v0.10.0
func (UnimplementedVtctldServer) GetSchema(context.Context, *vtctldata.GetSchemaRequest) (*vtctldata.GetSchemaResponse, error)
func (UnimplementedVtctldServer) GetShard ¶ added in v0.10.0
func (UnimplementedVtctldServer) GetShard(context.Context, *vtctldata.GetShardRequest) (*vtctldata.GetShardResponse, error)
func (UnimplementedVtctldServer) GetSrvKeyspaceNames ¶ added in v0.12.0
func (UnimplementedVtctldServer) GetSrvKeyspaceNames(context.Context, *vtctldata.GetSrvKeyspaceNamesRequest) (*vtctldata.GetSrvKeyspaceNamesResponse, error)
func (UnimplementedVtctldServer) GetSrvKeyspaces ¶ added in v0.10.0
func (UnimplementedVtctldServer) GetSrvKeyspaces(context.Context, *vtctldata.GetSrvKeyspacesRequest) (*vtctldata.GetSrvKeyspacesResponse, error)
func (UnimplementedVtctldServer) GetSrvVSchema ¶ added in v0.10.0
func (UnimplementedVtctldServer) GetSrvVSchema(context.Context, *vtctldata.GetSrvVSchemaRequest) (*vtctldata.GetSrvVSchemaResponse, error)
func (UnimplementedVtctldServer) GetSrvVSchemas ¶ added in v0.11.0
func (UnimplementedVtctldServer) GetSrvVSchemas(context.Context, *vtctldata.GetSrvVSchemasRequest) (*vtctldata.GetSrvVSchemasResponse, error)
func (UnimplementedVtctldServer) GetTablet ¶ added in v0.10.0
func (UnimplementedVtctldServer) GetTablet(context.Context, *vtctldata.GetTabletRequest) (*vtctldata.GetTabletResponse, error)
func (UnimplementedVtctldServer) GetTablets ¶ added in v0.10.0
func (UnimplementedVtctldServer) GetTablets(context.Context, *vtctldata.GetTabletsRequest) (*vtctldata.GetTabletsResponse, error)
func (UnimplementedVtctldServer) GetVSchema ¶ added in v0.10.0
func (UnimplementedVtctldServer) GetVSchema(context.Context, *vtctldata.GetVSchemaRequest) (*vtctldata.GetVSchemaResponse, error)
func (UnimplementedVtctldServer) GetVersion ¶ added in v0.14.0
func (UnimplementedVtctldServer) GetVersion(context.Context, *vtctldata.GetVersionRequest) (*vtctldata.GetVersionResponse, error)
func (UnimplementedVtctldServer) GetWorkflows ¶ added in v0.10.0
func (UnimplementedVtctldServer) GetWorkflows(context.Context, *vtctldata.GetWorkflowsRequest) (*vtctldata.GetWorkflowsResponse, error)
func (UnimplementedVtctldServer) InitShardPrimary ¶ added in v0.10.0
func (UnimplementedVtctldServer) InitShardPrimary(context.Context, *vtctldata.InitShardPrimaryRequest) (*vtctldata.InitShardPrimaryResponse, error)
func (UnimplementedVtctldServer) PingTablet ¶ added in v0.12.0
func (UnimplementedVtctldServer) PingTablet(context.Context, *vtctldata.PingTabletRequest) (*vtctldata.PingTabletResponse, error)
func (UnimplementedVtctldServer) PlannedReparentShard ¶ added in v0.10.0
func (UnimplementedVtctldServer) PlannedReparentShard(context.Context, *vtctldata.PlannedReparentShardRequest) (*vtctldata.PlannedReparentShardResponse, error)
func (UnimplementedVtctldServer) RebuildKeyspaceGraph ¶ added in v0.12.0
func (UnimplementedVtctldServer) RebuildKeyspaceGraph(context.Context, *vtctldata.RebuildKeyspaceGraphRequest) (*vtctldata.RebuildKeyspaceGraphResponse, error)
func (UnimplementedVtctldServer) RebuildVSchemaGraph ¶ added in v0.11.0
func (UnimplementedVtctldServer) RebuildVSchemaGraph(context.Context, *vtctldata.RebuildVSchemaGraphRequest) (*vtctldata.RebuildVSchemaGraphResponse, error)
func (UnimplementedVtctldServer) RefreshState ¶ added in v0.11.0
func (UnimplementedVtctldServer) RefreshState(context.Context, *vtctldata.RefreshStateRequest) (*vtctldata.RefreshStateResponse, error)
func (UnimplementedVtctldServer) RefreshStateByShard ¶ added in v0.11.0
func (UnimplementedVtctldServer) RefreshStateByShard(context.Context, *vtctldata.RefreshStateByShardRequest) (*vtctldata.RefreshStateByShardResponse, error)
func (UnimplementedVtctldServer) ReloadSchema ¶ added in v0.13.0
func (UnimplementedVtctldServer) ReloadSchema(context.Context, *vtctldata.ReloadSchemaRequest) (*vtctldata.ReloadSchemaResponse, error)
func (UnimplementedVtctldServer) ReloadSchemaKeyspace ¶ added in v0.13.0
func (UnimplementedVtctldServer) ReloadSchemaKeyspace(context.Context, *vtctldata.ReloadSchemaKeyspaceRequest) (*vtctldata.ReloadSchemaKeyspaceResponse, error)
func (UnimplementedVtctldServer) ReloadSchemaShard ¶ added in v0.13.0
func (UnimplementedVtctldServer) ReloadSchemaShard(context.Context, *vtctldata.ReloadSchemaShardRequest) (*vtctldata.ReloadSchemaShardResponse, error)
func (UnimplementedVtctldServer) RemoveBackup ¶ added in v0.14.0
func (UnimplementedVtctldServer) RemoveBackup(context.Context, *vtctldata.RemoveBackupRequest) (*vtctldata.RemoveBackupResponse, error)
func (UnimplementedVtctldServer) RemoveKeyspaceCell ¶ added in v0.10.0
func (UnimplementedVtctldServer) RemoveKeyspaceCell(context.Context, *vtctldata.RemoveKeyspaceCellRequest) (*vtctldata.RemoveKeyspaceCellResponse, error)
func (UnimplementedVtctldServer) RemoveShardCell ¶ added in v0.10.0
func (UnimplementedVtctldServer) RemoveShardCell(context.Context, *vtctldata.RemoveShardCellRequest) (*vtctldata.RemoveShardCellResponse, error)
func (UnimplementedVtctldServer) ReparentTablet ¶ added in v0.10.0
func (UnimplementedVtctldServer) ReparentTablet(context.Context, *vtctldata.ReparentTabletRequest) (*vtctldata.ReparentTabletResponse, error)
func (UnimplementedVtctldServer) RestoreFromBackup ¶ added in v0.14.0
func (UnimplementedVtctldServer) RestoreFromBackup(*vtctldata.RestoreFromBackupRequest, Vtctld_RestoreFromBackupServer) error
func (UnimplementedVtctldServer) RunHealthCheck ¶ added in v0.12.0
func (UnimplementedVtctldServer) RunHealthCheck(context.Context, *vtctldata.RunHealthCheckRequest) (*vtctldata.RunHealthCheckResponse, error)
func (UnimplementedVtctldServer) SetKeyspaceDurabilityPolicy ¶ added in v0.14.0
func (UnimplementedVtctldServer) SetKeyspaceDurabilityPolicy(context.Context, *vtctldata.SetKeyspaceDurabilityPolicyRequest) (*vtctldata.SetKeyspaceDurabilityPolicyResponse, error)
func (UnimplementedVtctldServer) SetKeyspaceServedFrom ¶ added in v0.13.0
func (UnimplementedVtctldServer) SetKeyspaceServedFrom(context.Context, *vtctldata.SetKeyspaceServedFromRequest) (*vtctldata.SetKeyspaceServedFromResponse, error)
func (UnimplementedVtctldServer) SetKeyspaceShardingInfo ¶ added in v0.13.0
func (UnimplementedVtctldServer) SetKeyspaceShardingInfo(context.Context, *vtctldata.SetKeyspaceShardingInfoRequest) (*vtctldata.SetKeyspaceShardingInfoResponse, error)
func (UnimplementedVtctldServer) SetShardIsPrimaryServing ¶ added in v0.12.0
func (UnimplementedVtctldServer) SetShardIsPrimaryServing(context.Context, *vtctldata.SetShardIsPrimaryServingRequest) (*vtctldata.SetShardIsPrimaryServingResponse, error)
func (UnimplementedVtctldServer) SetShardTabletControl ¶ added in v0.12.0
func (UnimplementedVtctldServer) SetShardTabletControl(context.Context, *vtctldata.SetShardTabletControlRequest) (*vtctldata.SetShardTabletControlResponse, error)
func (UnimplementedVtctldServer) SetWritable ¶ added in v0.12.0
func (UnimplementedVtctldServer) SetWritable(context.Context, *vtctldata.SetWritableRequest) (*vtctldata.SetWritableResponse, error)
func (UnimplementedVtctldServer) ShardReplicationAdd ¶ added in v0.14.0
func (UnimplementedVtctldServer) ShardReplicationAdd(context.Context, *vtctldata.ShardReplicationAddRequest) (*vtctldata.ShardReplicationAddResponse, error)
func (UnimplementedVtctldServer) ShardReplicationFix ¶ added in v0.14.0
func (UnimplementedVtctldServer) ShardReplicationFix(context.Context, *vtctldata.ShardReplicationFixRequest) (*vtctldata.ShardReplicationFixResponse, error)
func (UnimplementedVtctldServer) ShardReplicationPositions ¶ added in v0.10.0
func (UnimplementedVtctldServer) ShardReplicationPositions(context.Context, *vtctldata.ShardReplicationPositionsRequest) (*vtctldata.ShardReplicationPositionsResponse, error)
func (UnimplementedVtctldServer) ShardReplicationRemove ¶ added in v0.14.0
func (UnimplementedVtctldServer) ShardReplicationRemove(context.Context, *vtctldata.ShardReplicationRemoveRequest) (*vtctldata.ShardReplicationRemoveResponse, error)
func (UnimplementedVtctldServer) SleepTablet ¶ added in v0.12.0
func (UnimplementedVtctldServer) SleepTablet(context.Context, *vtctldata.SleepTabletRequest) (*vtctldata.SleepTabletResponse, error)
func (UnimplementedVtctldServer) SourceShardAdd ¶ added in v0.14.0
func (UnimplementedVtctldServer) SourceShardAdd(context.Context, *vtctldata.SourceShardAddRequest) (*vtctldata.SourceShardAddResponse, error)
func (UnimplementedVtctldServer) SourceShardDelete ¶ added in v0.14.0
func (UnimplementedVtctldServer) SourceShardDelete(context.Context, *vtctldata.SourceShardDeleteRequest) (*vtctldata.SourceShardDeleteResponse, error)
func (UnimplementedVtctldServer) StartReplication ¶ added in v0.12.0
func (UnimplementedVtctldServer) StartReplication(context.Context, *vtctldata.StartReplicationRequest) (*vtctldata.StartReplicationResponse, error)
func (UnimplementedVtctldServer) StopReplication ¶ added in v0.12.0
func (UnimplementedVtctldServer) StopReplication(context.Context, *vtctldata.StopReplicationRequest) (*vtctldata.StopReplicationResponse, error)
func (UnimplementedVtctldServer) TabletExternallyReparented ¶ added in v0.10.0
func (UnimplementedVtctldServer) TabletExternallyReparented(context.Context, *vtctldata.TabletExternallyReparentedRequest) (*vtctldata.TabletExternallyReparentedResponse, error)
func (UnimplementedVtctldServer) UpdateCellInfo ¶ added in v0.11.0
func (UnimplementedVtctldServer) UpdateCellInfo(context.Context, *vtctldata.UpdateCellInfoRequest) (*vtctldata.UpdateCellInfoResponse, error)
func (UnimplementedVtctldServer) UpdateCellsAlias ¶ added in v0.11.0
func (UnimplementedVtctldServer) UpdateCellsAlias(context.Context, *vtctldata.UpdateCellsAliasRequest) (*vtctldata.UpdateCellsAliasResponse, error)
func (UnimplementedVtctldServer) Validate ¶ added in v0.12.0
func (UnimplementedVtctldServer) Validate(context.Context, *vtctldata.ValidateRequest) (*vtctldata.ValidateResponse, error)
func (UnimplementedVtctldServer) ValidateKeyspace ¶ added in v0.12.0
func (UnimplementedVtctldServer) ValidateKeyspace(context.Context, *vtctldata.ValidateKeyspaceRequest) (*vtctldata.ValidateKeyspaceResponse, error)
func (UnimplementedVtctldServer) ValidateSchemaKeyspace ¶ added in v0.14.0
func (UnimplementedVtctldServer) ValidateSchemaKeyspace(context.Context, *vtctldata.ValidateSchemaKeyspaceRequest) (*vtctldata.ValidateSchemaKeyspaceResponse, error)
func (UnimplementedVtctldServer) ValidateShard ¶ added in v0.12.0
func (UnimplementedVtctldServer) ValidateShard(context.Context, *vtctldata.ValidateShardRequest) (*vtctldata.ValidateShardResponse, error)
func (UnimplementedVtctldServer) ValidateVSchema ¶ added in v0.14.0
func (UnimplementedVtctldServer) ValidateVSchema(context.Context, *vtctldata.ValidateVSchemaRequest) (*vtctldata.ValidateVSchemaResponse, error)
func (UnimplementedVtctldServer) ValidateVersionKeyspace ¶ added in v0.14.0
func (UnimplementedVtctldServer) ValidateVersionKeyspace(context.Context, *vtctldata.ValidateVersionKeyspaceRequest) (*vtctldata.ValidateVersionKeyspaceResponse, error)
type UnsafeVtctlServer ¶ added in v0.11.0
type UnsafeVtctlServer interface {
// contains filtered or unexported methods
}
UnsafeVtctlServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to VtctlServer will result in compilation errors.
type UnsafeVtctldServer ¶ added in v0.11.0
type UnsafeVtctldServer interface {
// contains filtered or unexported methods
}
UnsafeVtctldServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to VtctldServer will result in compilation errors.
type VtctlClient ¶
type VtctlClient interface {
ExecuteVtctlCommand(ctx context.Context, in *vtctldata.ExecuteVtctlCommandRequest, opts ...grpc.CallOption) (Vtctl_ExecuteVtctlCommandClient, error)
}
VtctlClient is the client API for Vtctl service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewVtctlClient ¶
func NewVtctlClient(cc grpc.ClientConnInterface) VtctlClient
type VtctlServer ¶
type VtctlServer interface { ExecuteVtctlCommand(*vtctldata.ExecuteVtctlCommandRequest, Vtctl_ExecuteVtctlCommandServer) error // contains filtered or unexported methods }
VtctlServer is the server API for Vtctl service. All implementations must embed UnimplementedVtctlServer for forward compatibility
type Vtctl_ExecuteVtctlCommandClient ¶
type Vtctl_ExecuteVtctlCommandClient interface { Recv() (*vtctldata.ExecuteVtctlCommandResponse, error) grpc.ClientStream }
type Vtctl_ExecuteVtctlCommandServer ¶
type Vtctl_ExecuteVtctlCommandServer interface { Send(*vtctldata.ExecuteVtctlCommandResponse) error grpc.ServerStream }
type VtctldClient ¶ added in v0.9.0
type VtctldClient interface { // AddCellInfo registers a local topology service in a new cell by creating // the CellInfo with the provided parameters. AddCellInfo(ctx context.Context, in *vtctldata.AddCellInfoRequest, opts ...grpc.CallOption) (*vtctldata.AddCellInfoResponse, error) // AddCellsAlias defines a group of cells that can be referenced by a single // name (the alias). // // When routing query traffic, replica/rdonly traffic can be routed across // cells within the group (alias). Only primary traffic can be routed across // cells not in the same group (alias). AddCellsAlias(ctx context.Context, in *vtctldata.AddCellsAliasRequest, opts ...grpc.CallOption) (*vtctldata.AddCellsAliasResponse, error) // ApplyRoutingRules applies the VSchema routing rules. ApplyRoutingRules(ctx context.Context, in *vtctldata.ApplyRoutingRulesRequest, opts ...grpc.CallOption) (*vtctldata.ApplyRoutingRulesResponse, error) // ApplySchema applies a schema to a keyspace. ApplySchema(ctx context.Context, in *vtctldata.ApplySchemaRequest, opts ...grpc.CallOption) (*vtctldata.ApplySchemaResponse, error) // ApplyVSchema applies a vschema to a keyspace. ApplyVSchema(ctx context.Context, in *vtctldata.ApplyVSchemaRequest, opts ...grpc.CallOption) (*vtctldata.ApplyVSchemaResponse, error) // Backup uses the BackupEngine and BackupStorage services on the specified // tablet to create and store a new backup. Backup(ctx context.Context, in *vtctldata.BackupRequest, opts ...grpc.CallOption) (Vtctld_BackupClient, error) // BackupShard chooses a tablet in the shard and uses it to create a backup. BackupShard(ctx context.Context, in *vtctldata.BackupShardRequest, opts ...grpc.CallOption) (Vtctld_BackupShardClient, error) // ChangeTabletType changes the db type for the specified tablet, if possible. // This is used primarily to arrange replicas, and it will not convert a // primary. For that, use InitShardPrimary. // // NOTE: This command automatically updates the serving graph. ChangeTabletType(ctx context.Context, in *vtctldata.ChangeTabletTypeRequest, opts ...grpc.CallOption) (*vtctldata.ChangeTabletTypeResponse, error) // CreateKeyspace creates the specified keyspace in the topology. For a // SNAPSHOT keyspace, the request must specify the name of a base keyspace, // as well as a snapshot time. CreateKeyspace(ctx context.Context, in *vtctldata.CreateKeyspaceRequest, opts ...grpc.CallOption) (*vtctldata.CreateKeyspaceResponse, error) // CreateShard creates the specified shard in the topology. CreateShard(ctx context.Context, in *vtctldata.CreateShardRequest, opts ...grpc.CallOption) (*vtctldata.CreateShardResponse, error) // DeleteCellInfo deletes the CellInfo for the provided cell. The cell cannot // be referenced by any Shard record in the topology. DeleteCellInfo(ctx context.Context, in *vtctldata.DeleteCellInfoRequest, opts ...grpc.CallOption) (*vtctldata.DeleteCellInfoResponse, error) // DeleteCellsAlias deletes the CellsAlias for the provided alias. DeleteCellsAlias(ctx context.Context, in *vtctldata.DeleteCellsAliasRequest, opts ...grpc.CallOption) (*vtctldata.DeleteCellsAliasResponse, error) // DeleteKeyspace deletes the specified keyspace from the topology. In // recursive mode, it also recursively deletes all shards in the keyspace. // Otherwise, the keyspace must be empty (have no shards), or DeleteKeyspace // returns an error. DeleteKeyspace(ctx context.Context, in *vtctldata.DeleteKeyspaceRequest, opts ...grpc.CallOption) (*vtctldata.DeleteKeyspaceResponse, error) // DeleteShards deletes the specified shards from the topology. In recursive // mode, it also deletes all tablets belonging to the shard. Otherwise, the // shard must be empty (have no tablets) or DeleteShards returns an error for // that shard. DeleteShards(ctx context.Context, in *vtctldata.DeleteShardsRequest, opts ...grpc.CallOption) (*vtctldata.DeleteShardsResponse, error) // DeleteSrvVSchema deletes the SrvVSchema object in the specified cell. DeleteSrvVSchema(ctx context.Context, in *vtctldata.DeleteSrvVSchemaRequest, opts ...grpc.CallOption) (*vtctldata.DeleteSrvVSchemaResponse, error) // DeleteTablets deletes one or more tablets from the topology. DeleteTablets(ctx context.Context, in *vtctldata.DeleteTabletsRequest, opts ...grpc.CallOption) (*vtctldata.DeleteTabletsResponse, error) // EmergencyReparentShard reparents the shard to the new primary. It assumes // the old primary is dead or otherwise not responding. EmergencyReparentShard(ctx context.Context, in *vtctldata.EmergencyReparentShardRequest, opts ...grpc.CallOption) (*vtctldata.EmergencyReparentShardResponse, error) // ExecuteFetchAsApp executes a SQL query on the remote tablet as the App user. ExecuteFetchAsApp(ctx context.Context, in *vtctldata.ExecuteFetchAsAppRequest, opts ...grpc.CallOption) (*vtctldata.ExecuteFetchAsAppResponse, error) // ExecuteFetchAsDBA executes a SQL query on the remote tablet as the DBA user. ExecuteFetchAsDBA(ctx context.Context, in *vtctldata.ExecuteFetchAsDBARequest, opts ...grpc.CallOption) (*vtctldata.ExecuteFetchAsDBAResponse, error) // ExecuteHook runs the hook on the tablet. ExecuteHook(ctx context.Context, in *vtctldata.ExecuteHookRequest, opts ...grpc.CallOption) (*vtctldata.ExecuteHookResponse, error) // FindAllShardsInKeyspace returns a map of shard names to shard references // for a given keyspace. FindAllShardsInKeyspace(ctx context.Context, in *vtctldata.FindAllShardsInKeyspaceRequest, opts ...grpc.CallOption) (*vtctldata.FindAllShardsInKeyspaceResponse, error) // GetBackups returns all the backups for a shard. GetBackups(ctx context.Context, in *vtctldata.GetBackupsRequest, opts ...grpc.CallOption) (*vtctldata.GetBackupsResponse, error) // GetCellInfo returns the information for a cell. GetCellInfo(ctx context.Context, in *vtctldata.GetCellInfoRequest, opts ...grpc.CallOption) (*vtctldata.GetCellInfoResponse, error) // GetCellInfoNames returns all the cells for which we have a CellInfo object, // meaning we have a topology service registered. GetCellInfoNames(ctx context.Context, in *vtctldata.GetCellInfoNamesRequest, opts ...grpc.CallOption) (*vtctldata.GetCellInfoNamesResponse, error) // GetCellsAliases returns a mapping of cell alias to cells identified by that // alias. GetCellsAliases(ctx context.Context, in *vtctldata.GetCellsAliasesRequest, opts ...grpc.CallOption) (*vtctldata.GetCellsAliasesResponse, error) // GetKeyspace reads the given keyspace from the topo and returns it. GetKeyspace(ctx context.Context, in *vtctldata.GetKeyspaceRequest, opts ...grpc.CallOption) (*vtctldata.GetKeyspaceResponse, error) // GetKeyspaces returns the keyspace struct of all keyspaces in the topo. GetKeyspaces(ctx context.Context, in *vtctldata.GetKeyspacesRequest, opts ...grpc.CallOption) (*vtctldata.GetKeyspacesResponse, error) // GetPermissions returns the permissions set on the remote tablet. GetPermissions(ctx context.Context, in *vtctldata.GetPermissionsRequest, opts ...grpc.CallOption) (*vtctldata.GetPermissionsResponse, error) // GetRoutingRules returns the VSchema routing rules. GetRoutingRules(ctx context.Context, in *vtctldata.GetRoutingRulesRequest, opts ...grpc.CallOption) (*vtctldata.GetRoutingRulesResponse, error) // GetSchema returns the schema for a tablet, or just the schema for the // specified tables in that tablet. GetSchema(ctx context.Context, in *vtctldata.GetSchemaRequest, opts ...grpc.CallOption) (*vtctldata.GetSchemaResponse, error) // GetShard returns information about a shard in the topology. GetShard(ctx context.Context, in *vtctldata.GetShardRequest, opts ...grpc.CallOption) (*vtctldata.GetShardResponse, error) // GetSrvKeyspaceNames returns a mapping of cell name to the keyspaces served // in that cell. GetSrvKeyspaceNames(ctx context.Context, in *vtctldata.GetSrvKeyspaceNamesRequest, opts ...grpc.CallOption) (*vtctldata.GetSrvKeyspaceNamesResponse, error) // GetSrvKeyspaces returns the SrvKeyspaces for a keyspace in one or more // cells. GetSrvKeyspaces(ctx context.Context, in *vtctldata.GetSrvKeyspacesRequest, opts ...grpc.CallOption) (*vtctldata.GetSrvKeyspacesResponse, error) // GetSrvVSchema returns the SrvVSchema for a cell. GetSrvVSchema(ctx context.Context, in *vtctldata.GetSrvVSchemaRequest, opts ...grpc.CallOption) (*vtctldata.GetSrvVSchemaResponse, error) // GetSrvVSchemas returns a mapping from cell name to SrvVSchema for all cells, // optionally filtered by cell name. GetSrvVSchemas(ctx context.Context, in *vtctldata.GetSrvVSchemasRequest, opts ...grpc.CallOption) (*vtctldata.GetSrvVSchemasResponse, error) // GetTablet returns information about a tablet. GetTablet(ctx context.Context, in *vtctldata.GetTabletRequest, opts ...grpc.CallOption) (*vtctldata.GetTabletResponse, error) // GetTablets returns tablets, optionally filtered by keyspace and shard. GetTablets(ctx context.Context, in *vtctldata.GetTabletsRequest, opts ...grpc.CallOption) (*vtctldata.GetTabletsResponse, error) // GetVersion returns the version of a tablet from its debug vars. GetVersion(ctx context.Context, in *vtctldata.GetVersionRequest, opts ...grpc.CallOption) (*vtctldata.GetVersionResponse, error) // GetVSchema returns the vschema for a keyspace. GetVSchema(ctx context.Context, in *vtctldata.GetVSchemaRequest, opts ...grpc.CallOption) (*vtctldata.GetVSchemaResponse, error) // GetWorkflows returns a list of workflows for the given keyspace. GetWorkflows(ctx context.Context, in *vtctldata.GetWorkflowsRequest, opts ...grpc.CallOption) (*vtctldata.GetWorkflowsResponse, error) // InitShardPrimary sets the initial primary for a shard. Will make all other // tablets in the shard replicas of the provided primary. // // WARNING: This could cause data loss on an already replicating shard. // PlannedReparentShard or EmergencyReparentShard should be used in those // cases instead. InitShardPrimary(ctx context.Context, in *vtctldata.InitShardPrimaryRequest, opts ...grpc.CallOption) (*vtctldata.InitShardPrimaryResponse, error) // PingTablet checks that the specified tablet is awake and responding to RPCs. // This command can be blocked by other in-flight operations. PingTablet(ctx context.Context, in *vtctldata.PingTabletRequest, opts ...grpc.CallOption) (*vtctldata.PingTabletResponse, error) // PlannedReparentShard reparents the shard to the new primary, or away from // an old primary. Both the old and new primaries need to be reachable and // running. // // **NOTE**: The vtctld will not consider any replicas outside the cell the // current shard primary is in for promotion unless NewPrimary is explicitly // provided in the request. PlannedReparentShard(ctx context.Context, in *vtctldata.PlannedReparentShardRequest, opts ...grpc.CallOption) (*vtctldata.PlannedReparentShardResponse, error) // RebuildKeyspaceGraph rebuilds the serving data for a keyspace. // // This may trigger an update to all connected clients. RebuildKeyspaceGraph(ctx context.Context, in *vtctldata.RebuildKeyspaceGraphRequest, opts ...grpc.CallOption) (*vtctldata.RebuildKeyspaceGraphResponse, error) // RebuildVSchemaGraph rebuilds the per-cell SrvVSchema from the global // VSchema objects in the provided cells (or all cells in the topo none // provided). RebuildVSchemaGraph(ctx context.Context, in *vtctldata.RebuildVSchemaGraphRequest, opts ...grpc.CallOption) (*vtctldata.RebuildVSchemaGraphResponse, error) // RefreshState reloads the tablet record on the specified tablet. RefreshState(ctx context.Context, in *vtctldata.RefreshStateRequest, opts ...grpc.CallOption) (*vtctldata.RefreshStateResponse, error) // RefreshStateByShard calls RefreshState on all the tablets in the given shard. RefreshStateByShard(ctx context.Context, in *vtctldata.RefreshStateByShardRequest, opts ...grpc.CallOption) (*vtctldata.RefreshStateByShardResponse, error) // ReloadSchema instructs the remote tablet to reload its schema. ReloadSchema(ctx context.Context, in *vtctldata.ReloadSchemaRequest, opts ...grpc.CallOption) (*vtctldata.ReloadSchemaResponse, error) // ReloadSchemaKeyspace reloads the schema on all tablets in a keyspace. ReloadSchemaKeyspace(ctx context.Context, in *vtctldata.ReloadSchemaKeyspaceRequest, opts ...grpc.CallOption) (*vtctldata.ReloadSchemaKeyspaceResponse, error) // ReloadSchemaShard reloads the schema on all tablets in a shard. // // In general, we don't always expect all replicas to be ready to reload, and // the periodic schema reload makes them self-healing anyway. So, we do this // on a best-effort basis, and log warnings for any tablets that fail to // reload within the context deadline. ReloadSchemaShard(ctx context.Context, in *vtctldata.ReloadSchemaShardRequest, opts ...grpc.CallOption) (*vtctldata.ReloadSchemaShardResponse, error) // RemoveBackup removes a backup from the BackupStorage used by vtctld. RemoveBackup(ctx context.Context, in *vtctldata.RemoveBackupRequest, opts ...grpc.CallOption) (*vtctldata.RemoveBackupResponse, error) // RemoveKeyspaceCell removes the specified cell from the Cells list for all // shards in the specified keyspace (by calling RemoveShardCell on every // shard). It also removes the SrvKeyspace for that keyspace in that cell. RemoveKeyspaceCell(ctx context.Context, in *vtctldata.RemoveKeyspaceCellRequest, opts ...grpc.CallOption) (*vtctldata.RemoveKeyspaceCellResponse, error) // RemoveShardCell removes the specified cell from the specified shard's Cells // list. RemoveShardCell(ctx context.Context, in *vtctldata.RemoveShardCellRequest, opts ...grpc.CallOption) (*vtctldata.RemoveShardCellResponse, error) // ReparentTablet reparents a tablet to the current primary in the shard. This // only works if the current replica position matches the last known reparent // action. ReparentTablet(ctx context.Context, in *vtctldata.ReparentTabletRequest, opts ...grpc.CallOption) (*vtctldata.ReparentTabletResponse, error) // RestoreFromBackup stops mysqld for the given tablet and restores a backup. RestoreFromBackup(ctx context.Context, in *vtctldata.RestoreFromBackupRequest, opts ...grpc.CallOption) (Vtctld_RestoreFromBackupClient, error) // RunHealthCheck runs a healthcheck on the remote tablet. RunHealthCheck(ctx context.Context, in *vtctldata.RunHealthCheckRequest, opts ...grpc.CallOption) (*vtctldata.RunHealthCheckResponse, error) // SetKeyspaceDurabilityPolicy updates the DurabilityPolicy for a keyspace. SetKeyspaceDurabilityPolicy(ctx context.Context, in *vtctldata.SetKeyspaceDurabilityPolicyRequest, opts ...grpc.CallOption) (*vtctldata.SetKeyspaceDurabilityPolicyResponse, error) // SetKeyspaceServedFrom changes the ServedFromMap manually, and is intended // only for emergency fixes. This does not rebuild the serving graph. // // The ServedFromMap is automatically updated as a part of MigrateServedFrom. SetKeyspaceServedFrom(ctx context.Context, in *vtctldata.SetKeyspaceServedFromRequest, opts ...grpc.CallOption) (*vtctldata.SetKeyspaceServedFromResponse, error) // SetKeyspaceShardingInfo updates the sharding information for a keyspace. SetKeyspaceShardingInfo(ctx context.Context, in *vtctldata.SetKeyspaceShardingInfoRequest, opts ...grpc.CallOption) (*vtctldata.SetKeyspaceShardingInfoResponse, error) // SetShardIsPrimaryServing adds or removes a shard from serving. // // This is meant as an emergency function. It does not rebuild any serving // graph (i.e. it does not run RebuildKeyspaceGraph). SetShardIsPrimaryServing(ctx context.Context, in *vtctldata.SetShardIsPrimaryServingRequest, opts ...grpc.CallOption) (*vtctldata.SetShardIsPrimaryServingResponse, error) // SetShardTabletControl updates the TabletControl topo record for a shard and // tablet type. // // This should only be used for an emergency fix, or after a finished // Reshard. See the documentation on SetShardTabletControlRequest for more // information about the different update modes. SetShardTabletControl(ctx context.Context, in *vtctldata.SetShardTabletControlRequest, opts ...grpc.CallOption) (*vtctldata.SetShardTabletControlResponse, error) // SetWritable sets a tablet as read-write (writable=true) or read-only (writable=false). SetWritable(ctx context.Context, in *vtctldata.SetWritableRequest, opts ...grpc.CallOption) (*vtctldata.SetWritableResponse, error) // ShardReplicationAdd adds an entry to a topodata.ShardReplication object. // // It is a low-level function and should generally not be called. ShardReplicationAdd(ctx context.Context, in *vtctldata.ShardReplicationAddRequest, opts ...grpc.CallOption) (*vtctldata.ShardReplicationAddResponse, error) // ShardReplicationFix walks the replication graph for a shard in a cell and // attempts to fix the first problem encountered, returning information about // the problem fixed, if any. ShardReplicationFix(ctx context.Context, in *vtctldata.ShardReplicationFixRequest, opts ...grpc.CallOption) (*vtctldata.ShardReplicationFixResponse, error) // ShardReplicationPositions returns the replication position of each tablet // in a shard. This RPC makes a best-effort to return partial results. For // example, if one tablet in the shard graph is unreachable, then // ShardReplicationPositions will return non-error, and include valid results // for the reachable tablets. ShardReplicationPositions(ctx context.Context, in *vtctldata.ShardReplicationPositionsRequest, opts ...grpc.CallOption) (*vtctldata.ShardReplicationPositionsResponse, error) // ShardReplicationRemove removes an entry from a topodata.ShardReplication // object. // // It is a low-level function and should generally not be called. ShardReplicationRemove(ctx context.Context, in *vtctldata.ShardReplicationRemoveRequest, opts ...grpc.CallOption) (*vtctldata.ShardReplicationRemoveResponse, error) // SleepTablet blocks the aciton queue on the specified tablet for the // specified duration. // // This is typically used for testing. SleepTablet(ctx context.Context, in *vtctldata.SleepTabletRequest, opts ...grpc.CallOption) (*vtctldata.SleepTabletResponse, error) // SourceShardAdd adds the SourceShard record with the provided index. This // should be used only as an emergency function. // // It does not call RefreshState for the shard primary. SourceShardAdd(ctx context.Context, in *vtctldata.SourceShardAddRequest, opts ...grpc.CallOption) (*vtctldata.SourceShardAddResponse, error) // SourceShardDelete deletes the SourceShard record with the provided index. // This should be used only as an emergency cleanup function. // // It does not call RefreshState for the shard primary. SourceShardDelete(ctx context.Context, in *vtctldata.SourceShardDeleteRequest, opts ...grpc.CallOption) (*vtctldata.SourceShardDeleteResponse, error) // StartReplication starts replication on the specified tablet. StartReplication(ctx context.Context, in *vtctldata.StartReplicationRequest, opts ...grpc.CallOption) (*vtctldata.StartReplicationResponse, error) // StopReplication stops replication on the specified tablet. StopReplication(ctx context.Context, in *vtctldata.StopReplicationRequest, opts ...grpc.CallOption) (*vtctldata.StopReplicationResponse, error) // TabletExternallyReparented changes metadata in the topology server to // acknowledge a shard primary change performed by an external tool (e.g. // orchestrator). // // See the Reparenting guide for more information: // https://vitess.io/docs/user-guides/configuration-advanced/reparenting/#external-reparenting. TabletExternallyReparented(ctx context.Context, in *vtctldata.TabletExternallyReparentedRequest, opts ...grpc.CallOption) (*vtctldata.TabletExternallyReparentedResponse, error) // UpdateCellInfo updates the content of a CellInfo with the provided // parameters. Empty values are ignored. If the cell does not exist, the // CellInfo will be created. UpdateCellInfo(ctx context.Context, in *vtctldata.UpdateCellInfoRequest, opts ...grpc.CallOption) (*vtctldata.UpdateCellInfoResponse, error) // UpdateCellsAlias updates the content of a CellsAlias with the provided // parameters. Empty values are ignored. If the alias does not exist, the // CellsAlias will be created. UpdateCellsAlias(ctx context.Context, in *vtctldata.UpdateCellsAliasRequest, opts ...grpc.CallOption) (*vtctldata.UpdateCellsAliasResponse, error) // Validate validates that all nodes from the global replication graph are // reachable, and that all tablets in discoverable cells are consistent. Validate(ctx context.Context, in *vtctldata.ValidateRequest, opts ...grpc.CallOption) (*vtctldata.ValidateResponse, error) // ValidateKeyspace validates that all nodes reachable from the specified // keyspace are consistent. ValidateKeyspace(ctx context.Context, in *vtctldata.ValidateKeyspaceRequest, opts ...grpc.CallOption) (*vtctldata.ValidateKeyspaceResponse, error) // ValidateSchemaKeyspace validates that the schema on the primary tablet for shard 0 matches the schema on all of the other tablets in the keyspace. ValidateSchemaKeyspace(ctx context.Context, in *vtctldata.ValidateSchemaKeyspaceRequest, opts ...grpc.CallOption) (*vtctldata.ValidateSchemaKeyspaceResponse, error) // ValidateShard validates that all nodes reachable from the specified shard // are consistent. ValidateShard(ctx context.Context, in *vtctldata.ValidateShardRequest, opts ...grpc.CallOption) (*vtctldata.ValidateShardResponse, error) // ValidateVersionKeyspace validates that the version on the primary of shard 0 matches all of the other tablets in the keyspace. ValidateVersionKeyspace(ctx context.Context, in *vtctldata.ValidateVersionKeyspaceRequest, opts ...grpc.CallOption) (*vtctldata.ValidateVersionKeyspaceResponse, error) // ValidateVSchema compares the schema of each primary tablet in "keyspace/shards..." to the vschema and errs if there are differences. ValidateVSchema(ctx context.Context, in *vtctldata.ValidateVSchemaRequest, opts ...grpc.CallOption) (*vtctldata.ValidateVSchemaResponse, error) }
VtctldClient is the client API for Vtctld service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewVtctldClient ¶ added in v0.9.0
func NewVtctldClient(cc grpc.ClientConnInterface) VtctldClient
type VtctldServer ¶ added in v0.9.0
type VtctldServer interface { // AddCellInfo registers a local topology service in a new cell by creating // the CellInfo with the provided parameters. AddCellInfo(context.Context, *vtctldata.AddCellInfoRequest) (*vtctldata.AddCellInfoResponse, error) // AddCellsAlias defines a group of cells that can be referenced by a single // name (the alias). // // When routing query traffic, replica/rdonly traffic can be routed across // cells within the group (alias). Only primary traffic can be routed across // cells not in the same group (alias). AddCellsAlias(context.Context, *vtctldata.AddCellsAliasRequest) (*vtctldata.AddCellsAliasResponse, error) // ApplyRoutingRules applies the VSchema routing rules. ApplyRoutingRules(context.Context, *vtctldata.ApplyRoutingRulesRequest) (*vtctldata.ApplyRoutingRulesResponse, error) // ApplySchema applies a schema to a keyspace. ApplySchema(context.Context, *vtctldata.ApplySchemaRequest) (*vtctldata.ApplySchemaResponse, error) // ApplyVSchema applies a vschema to a keyspace. ApplyVSchema(context.Context, *vtctldata.ApplyVSchemaRequest) (*vtctldata.ApplyVSchemaResponse, error) // Backup uses the BackupEngine and BackupStorage services on the specified // tablet to create and store a new backup. Backup(*vtctldata.BackupRequest, Vtctld_BackupServer) error // BackupShard chooses a tablet in the shard and uses it to create a backup. BackupShard(*vtctldata.BackupShardRequest, Vtctld_BackupShardServer) error // ChangeTabletType changes the db type for the specified tablet, if possible. // This is used primarily to arrange replicas, and it will not convert a // primary. For that, use InitShardPrimary. // // NOTE: This command automatically updates the serving graph. ChangeTabletType(context.Context, *vtctldata.ChangeTabletTypeRequest) (*vtctldata.ChangeTabletTypeResponse, error) // CreateKeyspace creates the specified keyspace in the topology. For a // SNAPSHOT keyspace, the request must specify the name of a base keyspace, // as well as a snapshot time. CreateKeyspace(context.Context, *vtctldata.CreateKeyspaceRequest) (*vtctldata.CreateKeyspaceResponse, error) // CreateShard creates the specified shard in the topology. CreateShard(context.Context, *vtctldata.CreateShardRequest) (*vtctldata.CreateShardResponse, error) // DeleteCellInfo deletes the CellInfo for the provided cell. The cell cannot // be referenced by any Shard record in the topology. DeleteCellInfo(context.Context, *vtctldata.DeleteCellInfoRequest) (*vtctldata.DeleteCellInfoResponse, error) // DeleteCellsAlias deletes the CellsAlias for the provided alias. DeleteCellsAlias(context.Context, *vtctldata.DeleteCellsAliasRequest) (*vtctldata.DeleteCellsAliasResponse, error) // DeleteKeyspace deletes the specified keyspace from the topology. In // recursive mode, it also recursively deletes all shards in the keyspace. // Otherwise, the keyspace must be empty (have no shards), or DeleteKeyspace // returns an error. DeleteKeyspace(context.Context, *vtctldata.DeleteKeyspaceRequest) (*vtctldata.DeleteKeyspaceResponse, error) // DeleteShards deletes the specified shards from the topology. In recursive // mode, it also deletes all tablets belonging to the shard. Otherwise, the // shard must be empty (have no tablets) or DeleteShards returns an error for // that shard. DeleteShards(context.Context, *vtctldata.DeleteShardsRequest) (*vtctldata.DeleteShardsResponse, error) // DeleteSrvVSchema deletes the SrvVSchema object in the specified cell. DeleteSrvVSchema(context.Context, *vtctldata.DeleteSrvVSchemaRequest) (*vtctldata.DeleteSrvVSchemaResponse, error) // DeleteTablets deletes one or more tablets from the topology. DeleteTablets(context.Context, *vtctldata.DeleteTabletsRequest) (*vtctldata.DeleteTabletsResponse, error) // EmergencyReparentShard reparents the shard to the new primary. It assumes // the old primary is dead or otherwise not responding. EmergencyReparentShard(context.Context, *vtctldata.EmergencyReparentShardRequest) (*vtctldata.EmergencyReparentShardResponse, error) // ExecuteFetchAsApp executes a SQL query on the remote tablet as the App user. ExecuteFetchAsApp(context.Context, *vtctldata.ExecuteFetchAsAppRequest) (*vtctldata.ExecuteFetchAsAppResponse, error) // ExecuteFetchAsDBA executes a SQL query on the remote tablet as the DBA user. ExecuteFetchAsDBA(context.Context, *vtctldata.ExecuteFetchAsDBARequest) (*vtctldata.ExecuteFetchAsDBAResponse, error) // ExecuteHook runs the hook on the tablet. ExecuteHook(context.Context, *vtctldata.ExecuteHookRequest) (*vtctldata.ExecuteHookResponse, error) // FindAllShardsInKeyspace returns a map of shard names to shard references // for a given keyspace. FindAllShardsInKeyspace(context.Context, *vtctldata.FindAllShardsInKeyspaceRequest) (*vtctldata.FindAllShardsInKeyspaceResponse, error) // GetBackups returns all the backups for a shard. GetBackups(context.Context, *vtctldata.GetBackupsRequest) (*vtctldata.GetBackupsResponse, error) // GetCellInfo returns the information for a cell. GetCellInfo(context.Context, *vtctldata.GetCellInfoRequest) (*vtctldata.GetCellInfoResponse, error) // GetCellInfoNames returns all the cells for which we have a CellInfo object, // meaning we have a topology service registered. GetCellInfoNames(context.Context, *vtctldata.GetCellInfoNamesRequest) (*vtctldata.GetCellInfoNamesResponse, error) // GetCellsAliases returns a mapping of cell alias to cells identified by that // alias. GetCellsAliases(context.Context, *vtctldata.GetCellsAliasesRequest) (*vtctldata.GetCellsAliasesResponse, error) // GetKeyspace reads the given keyspace from the topo and returns it. GetKeyspace(context.Context, *vtctldata.GetKeyspaceRequest) (*vtctldata.GetKeyspaceResponse, error) // GetKeyspaces returns the keyspace struct of all keyspaces in the topo. GetKeyspaces(context.Context, *vtctldata.GetKeyspacesRequest) (*vtctldata.GetKeyspacesResponse, error) // GetPermissions returns the permissions set on the remote tablet. GetPermissions(context.Context, *vtctldata.GetPermissionsRequest) (*vtctldata.GetPermissionsResponse, error) // GetRoutingRules returns the VSchema routing rules. GetRoutingRules(context.Context, *vtctldata.GetRoutingRulesRequest) (*vtctldata.GetRoutingRulesResponse, error) // GetSchema returns the schema for a tablet, or just the schema for the // specified tables in that tablet. GetSchema(context.Context, *vtctldata.GetSchemaRequest) (*vtctldata.GetSchemaResponse, error) // GetShard returns information about a shard in the topology. GetShard(context.Context, *vtctldata.GetShardRequest) (*vtctldata.GetShardResponse, error) // GetSrvKeyspaceNames returns a mapping of cell name to the keyspaces served // in that cell. GetSrvKeyspaceNames(context.Context, *vtctldata.GetSrvKeyspaceNamesRequest) (*vtctldata.GetSrvKeyspaceNamesResponse, error) // GetSrvKeyspaces returns the SrvKeyspaces for a keyspace in one or more // cells. GetSrvKeyspaces(context.Context, *vtctldata.GetSrvKeyspacesRequest) (*vtctldata.GetSrvKeyspacesResponse, error) // GetSrvVSchema returns the SrvVSchema for a cell. GetSrvVSchema(context.Context, *vtctldata.GetSrvVSchemaRequest) (*vtctldata.GetSrvVSchemaResponse, error) // GetSrvVSchemas returns a mapping from cell name to SrvVSchema for all cells, // optionally filtered by cell name. GetSrvVSchemas(context.Context, *vtctldata.GetSrvVSchemasRequest) (*vtctldata.GetSrvVSchemasResponse, error) // GetTablet returns information about a tablet. GetTablet(context.Context, *vtctldata.GetTabletRequest) (*vtctldata.GetTabletResponse, error) // GetTablets returns tablets, optionally filtered by keyspace and shard. GetTablets(context.Context, *vtctldata.GetTabletsRequest) (*vtctldata.GetTabletsResponse, error) // GetVersion returns the version of a tablet from its debug vars. GetVersion(context.Context, *vtctldata.GetVersionRequest) (*vtctldata.GetVersionResponse, error) // GetVSchema returns the vschema for a keyspace. GetVSchema(context.Context, *vtctldata.GetVSchemaRequest) (*vtctldata.GetVSchemaResponse, error) // GetWorkflows returns a list of workflows for the given keyspace. GetWorkflows(context.Context, *vtctldata.GetWorkflowsRequest) (*vtctldata.GetWorkflowsResponse, error) // InitShardPrimary sets the initial primary for a shard. Will make all other // tablets in the shard replicas of the provided primary. // // WARNING: This could cause data loss on an already replicating shard. // PlannedReparentShard or EmergencyReparentShard should be used in those // cases instead. InitShardPrimary(context.Context, *vtctldata.InitShardPrimaryRequest) (*vtctldata.InitShardPrimaryResponse, error) // PingTablet checks that the specified tablet is awake and responding to RPCs. // This command can be blocked by other in-flight operations. PingTablet(context.Context, *vtctldata.PingTabletRequest) (*vtctldata.PingTabletResponse, error) // PlannedReparentShard reparents the shard to the new primary, or away from // an old primary. Both the old and new primaries need to be reachable and // running. // // **NOTE**: The vtctld will not consider any replicas outside the cell the // current shard primary is in for promotion unless NewPrimary is explicitly // provided in the request. PlannedReparentShard(context.Context, *vtctldata.PlannedReparentShardRequest) (*vtctldata.PlannedReparentShardResponse, error) // RebuildKeyspaceGraph rebuilds the serving data for a keyspace. // // This may trigger an update to all connected clients. RebuildKeyspaceGraph(context.Context, *vtctldata.RebuildKeyspaceGraphRequest) (*vtctldata.RebuildKeyspaceGraphResponse, error) // RebuildVSchemaGraph rebuilds the per-cell SrvVSchema from the global // VSchema objects in the provided cells (or all cells in the topo none // provided). RebuildVSchemaGraph(context.Context, *vtctldata.RebuildVSchemaGraphRequest) (*vtctldata.RebuildVSchemaGraphResponse, error) // RefreshState reloads the tablet record on the specified tablet. RefreshState(context.Context, *vtctldata.RefreshStateRequest) (*vtctldata.RefreshStateResponse, error) // RefreshStateByShard calls RefreshState on all the tablets in the given shard. RefreshStateByShard(context.Context, *vtctldata.RefreshStateByShardRequest) (*vtctldata.RefreshStateByShardResponse, error) // ReloadSchema instructs the remote tablet to reload its schema. ReloadSchema(context.Context, *vtctldata.ReloadSchemaRequest) (*vtctldata.ReloadSchemaResponse, error) // ReloadSchemaKeyspace reloads the schema on all tablets in a keyspace. ReloadSchemaKeyspace(context.Context, *vtctldata.ReloadSchemaKeyspaceRequest) (*vtctldata.ReloadSchemaKeyspaceResponse, error) // ReloadSchemaShard reloads the schema on all tablets in a shard. // // In general, we don't always expect all replicas to be ready to reload, and // the periodic schema reload makes them self-healing anyway. So, we do this // on a best-effort basis, and log warnings for any tablets that fail to // reload within the context deadline. ReloadSchemaShard(context.Context, *vtctldata.ReloadSchemaShardRequest) (*vtctldata.ReloadSchemaShardResponse, error) // RemoveBackup removes a backup from the BackupStorage used by vtctld. RemoveBackup(context.Context, *vtctldata.RemoveBackupRequest) (*vtctldata.RemoveBackupResponse, error) // RemoveKeyspaceCell removes the specified cell from the Cells list for all // shards in the specified keyspace (by calling RemoveShardCell on every // shard). It also removes the SrvKeyspace for that keyspace in that cell. RemoveKeyspaceCell(context.Context, *vtctldata.RemoveKeyspaceCellRequest) (*vtctldata.RemoveKeyspaceCellResponse, error) // RemoveShardCell removes the specified cell from the specified shard's Cells // list. RemoveShardCell(context.Context, *vtctldata.RemoveShardCellRequest) (*vtctldata.RemoveShardCellResponse, error) // ReparentTablet reparents a tablet to the current primary in the shard. This // only works if the current replica position matches the last known reparent // action. ReparentTablet(context.Context, *vtctldata.ReparentTabletRequest) (*vtctldata.ReparentTabletResponse, error) // RestoreFromBackup stops mysqld for the given tablet and restores a backup. RestoreFromBackup(*vtctldata.RestoreFromBackupRequest, Vtctld_RestoreFromBackupServer) error // RunHealthCheck runs a healthcheck on the remote tablet. RunHealthCheck(context.Context, *vtctldata.RunHealthCheckRequest) (*vtctldata.RunHealthCheckResponse, error) // SetKeyspaceDurabilityPolicy updates the DurabilityPolicy for a keyspace. SetKeyspaceDurabilityPolicy(context.Context, *vtctldata.SetKeyspaceDurabilityPolicyRequest) (*vtctldata.SetKeyspaceDurabilityPolicyResponse, error) // SetKeyspaceServedFrom changes the ServedFromMap manually, and is intended // only for emergency fixes. This does not rebuild the serving graph. // // The ServedFromMap is automatically updated as a part of MigrateServedFrom. SetKeyspaceServedFrom(context.Context, *vtctldata.SetKeyspaceServedFromRequest) (*vtctldata.SetKeyspaceServedFromResponse, error) // SetKeyspaceShardingInfo updates the sharding information for a keyspace. SetKeyspaceShardingInfo(context.Context, *vtctldata.SetKeyspaceShardingInfoRequest) (*vtctldata.SetKeyspaceShardingInfoResponse, error) // SetShardIsPrimaryServing adds or removes a shard from serving. // // This is meant as an emergency function. It does not rebuild any serving // graph (i.e. it does not run RebuildKeyspaceGraph). SetShardIsPrimaryServing(context.Context, *vtctldata.SetShardIsPrimaryServingRequest) (*vtctldata.SetShardIsPrimaryServingResponse, error) // SetShardTabletControl updates the TabletControl topo record for a shard and // tablet type. // // This should only be used for an emergency fix, or after a finished // Reshard. See the documentation on SetShardTabletControlRequest for more // information about the different update modes. SetShardTabletControl(context.Context, *vtctldata.SetShardTabletControlRequest) (*vtctldata.SetShardTabletControlResponse, error) // SetWritable sets a tablet as read-write (writable=true) or read-only (writable=false). SetWritable(context.Context, *vtctldata.SetWritableRequest) (*vtctldata.SetWritableResponse, error) // ShardReplicationAdd adds an entry to a topodata.ShardReplication object. // // It is a low-level function and should generally not be called. ShardReplicationAdd(context.Context, *vtctldata.ShardReplicationAddRequest) (*vtctldata.ShardReplicationAddResponse, error) // ShardReplicationFix walks the replication graph for a shard in a cell and // attempts to fix the first problem encountered, returning information about // the problem fixed, if any. ShardReplicationFix(context.Context, *vtctldata.ShardReplicationFixRequest) (*vtctldata.ShardReplicationFixResponse, error) // ShardReplicationPositions returns the replication position of each tablet // in a shard. This RPC makes a best-effort to return partial results. For // example, if one tablet in the shard graph is unreachable, then // ShardReplicationPositions will return non-error, and include valid results // for the reachable tablets. ShardReplicationPositions(context.Context, *vtctldata.ShardReplicationPositionsRequest) (*vtctldata.ShardReplicationPositionsResponse, error) // ShardReplicationRemove removes an entry from a topodata.ShardReplication // object. // // It is a low-level function and should generally not be called. ShardReplicationRemove(context.Context, *vtctldata.ShardReplicationRemoveRequest) (*vtctldata.ShardReplicationRemoveResponse, error) // SleepTablet blocks the aciton queue on the specified tablet for the // specified duration. // // This is typically used for testing. SleepTablet(context.Context, *vtctldata.SleepTabletRequest) (*vtctldata.SleepTabletResponse, error) // SourceShardAdd adds the SourceShard record with the provided index. This // should be used only as an emergency function. // // It does not call RefreshState for the shard primary. SourceShardAdd(context.Context, *vtctldata.SourceShardAddRequest) (*vtctldata.SourceShardAddResponse, error) // SourceShardDelete deletes the SourceShard record with the provided index. // This should be used only as an emergency cleanup function. // // It does not call RefreshState for the shard primary. SourceShardDelete(context.Context, *vtctldata.SourceShardDeleteRequest) (*vtctldata.SourceShardDeleteResponse, error) // StartReplication starts replication on the specified tablet. StartReplication(context.Context, *vtctldata.StartReplicationRequest) (*vtctldata.StartReplicationResponse, error) // StopReplication stops replication on the specified tablet. StopReplication(context.Context, *vtctldata.StopReplicationRequest) (*vtctldata.StopReplicationResponse, error) // TabletExternallyReparented changes metadata in the topology server to // acknowledge a shard primary change performed by an external tool (e.g. // orchestrator). // // See the Reparenting guide for more information: // https://vitess.io/docs/user-guides/configuration-advanced/reparenting/#external-reparenting. TabletExternallyReparented(context.Context, *vtctldata.TabletExternallyReparentedRequest) (*vtctldata.TabletExternallyReparentedResponse, error) // UpdateCellInfo updates the content of a CellInfo with the provided // parameters. Empty values are ignored. If the cell does not exist, the // CellInfo will be created. UpdateCellInfo(context.Context, *vtctldata.UpdateCellInfoRequest) (*vtctldata.UpdateCellInfoResponse, error) // UpdateCellsAlias updates the content of a CellsAlias with the provided // parameters. Empty values are ignored. If the alias does not exist, the // CellsAlias will be created. UpdateCellsAlias(context.Context, *vtctldata.UpdateCellsAliasRequest) (*vtctldata.UpdateCellsAliasResponse, error) // Validate validates that all nodes from the global replication graph are // reachable, and that all tablets in discoverable cells are consistent. Validate(context.Context, *vtctldata.ValidateRequest) (*vtctldata.ValidateResponse, error) // ValidateKeyspace validates that all nodes reachable from the specified // keyspace are consistent. ValidateKeyspace(context.Context, *vtctldata.ValidateKeyspaceRequest) (*vtctldata.ValidateKeyspaceResponse, error) // ValidateSchemaKeyspace validates that the schema on the primary tablet for shard 0 matches the schema on all of the other tablets in the keyspace. ValidateSchemaKeyspace(context.Context, *vtctldata.ValidateSchemaKeyspaceRequest) (*vtctldata.ValidateSchemaKeyspaceResponse, error) // ValidateShard validates that all nodes reachable from the specified shard // are consistent. ValidateShard(context.Context, *vtctldata.ValidateShardRequest) (*vtctldata.ValidateShardResponse, error) // ValidateVersionKeyspace validates that the version on the primary of shard 0 matches all of the other tablets in the keyspace. ValidateVersionKeyspace(context.Context, *vtctldata.ValidateVersionKeyspaceRequest) (*vtctldata.ValidateVersionKeyspaceResponse, error) // ValidateVSchema compares the schema of each primary tablet in "keyspace/shards..." to the vschema and errs if there are differences. ValidateVSchema(context.Context, *vtctldata.ValidateVSchemaRequest) (*vtctldata.ValidateVSchemaResponse, error) // contains filtered or unexported methods }
VtctldServer is the server API for Vtctld service. All implementations must embed UnimplementedVtctldServer for forward compatibility
type Vtctld_BackupClient ¶ added in v0.14.0
type Vtctld_BackupClient interface { Recv() (*vtctldata.BackupResponse, error) grpc.ClientStream }
type Vtctld_BackupServer ¶ added in v0.14.0
type Vtctld_BackupServer interface { Send(*vtctldata.BackupResponse) error grpc.ServerStream }
type Vtctld_BackupShardClient ¶ added in v0.14.0
type Vtctld_BackupShardClient interface { Recv() (*vtctldata.BackupResponse, error) grpc.ClientStream }
type Vtctld_BackupShardServer ¶ added in v0.14.0
type Vtctld_BackupShardServer interface { Send(*vtctldata.BackupResponse) error grpc.ServerStream }
type Vtctld_RestoreFromBackupClient ¶ added in v0.14.0
type Vtctld_RestoreFromBackupClient interface { Recv() (*vtctldata.RestoreFromBackupResponse, error) grpc.ClientStream }
type Vtctld_RestoreFromBackupServer ¶ added in v0.14.0
type Vtctld_RestoreFromBackupServer interface { Send(*vtctldata.RestoreFromBackupResponse) error grpc.ServerStream }