Documentation ¶
Index ¶
- func StartServer(s *grpc.Server, ts *topo.Server)
- type VtctldServer
- func (s *VtctldServer) ChangeTabletType(ctx context.Context, req *vtctldatapb.ChangeTabletTypeRequest) (*vtctldatapb.ChangeTabletTypeResponse, error)
- func (s *VtctldServer) CreateKeyspace(ctx context.Context, req *vtctldatapb.CreateKeyspaceRequest) (*vtctldatapb.CreateKeyspaceResponse, error)
- func (s *VtctldServer) CreateShard(ctx context.Context, req *vtctldatapb.CreateShardRequest) (*vtctldatapb.CreateShardResponse, error)
- func (s *VtctldServer) DeleteKeyspace(ctx context.Context, req *vtctldatapb.DeleteKeyspaceRequest) (*vtctldatapb.DeleteKeyspaceResponse, error)
- func (s *VtctldServer) DeleteShards(ctx context.Context, req *vtctldatapb.DeleteShardsRequest) (*vtctldatapb.DeleteShardsResponse, error)
- func (s *VtctldServer) DeleteTablets(ctx context.Context, req *vtctldatapb.DeleteTabletsRequest) (*vtctldatapb.DeleteTabletsResponse, error)
- func (s *VtctldServer) EmergencyReparentShard(ctx context.Context, req *vtctldatapb.EmergencyReparentShardRequest) (*vtctldatapb.EmergencyReparentShardResponse, error)
- func (s *VtctldServer) FindAllShardsInKeyspace(ctx context.Context, req *vtctldatapb.FindAllShardsInKeyspaceRequest) (*vtctldatapb.FindAllShardsInKeyspaceResponse, error)
- func (s *VtctldServer) GetBackups(ctx context.Context, req *vtctldatapb.GetBackupsRequest) (*vtctldatapb.GetBackupsResponse, error)
- func (s *VtctldServer) GetCellInfo(ctx context.Context, req *vtctldatapb.GetCellInfoRequest) (*vtctldatapb.GetCellInfoResponse, error)
- func (s *VtctldServer) GetCellInfoNames(ctx context.Context, req *vtctldatapb.GetCellInfoNamesRequest) (*vtctldatapb.GetCellInfoNamesResponse, error)
- func (s *VtctldServer) GetCellsAliases(ctx context.Context, req *vtctldatapb.GetCellsAliasesRequest) (*vtctldatapb.GetCellsAliasesResponse, error)
- func (s *VtctldServer) GetKeyspace(ctx context.Context, req *vtctldatapb.GetKeyspaceRequest) (*vtctldatapb.GetKeyspaceResponse, error)
- func (s *VtctldServer) GetKeyspaces(ctx context.Context, req *vtctldatapb.GetKeyspacesRequest) (*vtctldatapb.GetKeyspacesResponse, error)
- func (s *VtctldServer) GetSchema(ctx context.Context, req *vtctldatapb.GetSchemaRequest) (*vtctldatapb.GetSchemaResponse, error)
- func (s *VtctldServer) GetShard(ctx context.Context, req *vtctldatapb.GetShardRequest) (*vtctldatapb.GetShardResponse, error)
- func (s *VtctldServer) GetSrvKeyspaces(ctx context.Context, req *vtctldatapb.GetSrvKeyspacesRequest) (*vtctldatapb.GetSrvKeyspacesResponse, error)
- func (s *VtctldServer) GetSrvVSchema(ctx context.Context, req *vtctldatapb.GetSrvVSchemaRequest) (*vtctldatapb.GetSrvVSchemaResponse, error)
- func (s *VtctldServer) GetTablet(ctx context.Context, req *vtctldatapb.GetTabletRequest) (*vtctldatapb.GetTabletResponse, error)
- func (s *VtctldServer) GetTablets(ctx context.Context, req *vtctldatapb.GetTabletsRequest) (*vtctldatapb.GetTabletsResponse, error)
- func (s *VtctldServer) GetVSchema(ctx context.Context, req *vtctldatapb.GetVSchemaRequest) (*vtctldatapb.GetVSchemaResponse, error)
- func (s *VtctldServer) GetWorkflows(ctx context.Context, req *vtctldatapb.GetWorkflowsRequest) (*vtctldatapb.GetWorkflowsResponse, error)
- func (s *VtctldServer) InitShardPrimary(ctx context.Context, req *vtctldatapb.InitShardPrimaryRequest) (*vtctldatapb.InitShardPrimaryResponse, error)
- func (s *VtctldServer) InitShardPrimaryLocked(ctx context.Context, ev *events.Reparent, ...) error
- func (s *VtctldServer) PlannedReparentShard(ctx context.Context, req *vtctldatapb.PlannedReparentShardRequest) (*vtctldatapb.PlannedReparentShardResponse, error)
- func (s *VtctldServer) RemoveKeyspaceCell(ctx context.Context, req *vtctldatapb.RemoveKeyspaceCellRequest) (*vtctldatapb.RemoveKeyspaceCellResponse, error)
- func (s *VtctldServer) RemoveShardCell(ctx context.Context, req *vtctldatapb.RemoveShardCellRequest) (*vtctldatapb.RemoveShardCellResponse, error)
- func (s *VtctldServer) ReparentTablet(ctx context.Context, req *vtctldatapb.ReparentTabletRequest) (*vtctldatapb.ReparentTabletResponse, error)
- func (s *VtctldServer) ShardReplicationPositions(ctx context.Context, req *vtctldatapb.ShardReplicationPositionsRequest) (*vtctldatapb.ShardReplicationPositionsResponse, error)
- func (s *VtctldServer) TabletExternallyReparented(ctx context.Context, req *vtctldatapb.TabletExternallyReparentedRequest) (*vtctldatapb.TabletExternallyReparentedResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type VtctldServer ¶
type VtctldServer struct {
// contains filtered or unexported fields
}
VtctldServer implements the Vtctld RPC service protocol.
func NewVtctldServer ¶
func NewVtctldServer(ts *topo.Server) *VtctldServer
NewVtctldServer returns a new VtctldServer for the given topo server.
func (*VtctldServer) ChangeTabletType ¶ added in v0.10.0
func (s *VtctldServer) ChangeTabletType(ctx context.Context, req *vtctldatapb.ChangeTabletTypeRequest) (*vtctldatapb.ChangeTabletTypeResponse, error)
ChangeTabletType is part of the vtctlservicepb.VtctldServer interface.
func (*VtctldServer) CreateKeyspace ¶ added in v0.10.0
func (s *VtctldServer) CreateKeyspace(ctx context.Context, req *vtctldatapb.CreateKeyspaceRequest) (*vtctldatapb.CreateKeyspaceResponse, error)
CreateKeyspace is part of the vtctlservicepb.VtctldServer interface.
func (*VtctldServer) CreateShard ¶ added in v0.10.0
func (s *VtctldServer) CreateShard(ctx context.Context, req *vtctldatapb.CreateShardRequest) (*vtctldatapb.CreateShardResponse, error)
CreateShard is part of the vtctlservicepb.VtctldServer interface.
func (*VtctldServer) DeleteKeyspace ¶ added in v0.10.0
func (s *VtctldServer) DeleteKeyspace(ctx context.Context, req *vtctldatapb.DeleteKeyspaceRequest) (*vtctldatapb.DeleteKeyspaceResponse, error)
DeleteKeyspace is part of the vtctlservicepb.VtctldServer interface.
func (*VtctldServer) DeleteShards ¶ added in v0.10.0
func (s *VtctldServer) DeleteShards(ctx context.Context, req *vtctldatapb.DeleteShardsRequest) (*vtctldatapb.DeleteShardsResponse, error)
DeleteShards is part of the vtctlservicepb.VtctldServer interface.
func (*VtctldServer) DeleteTablets ¶ added in v0.10.0
func (s *VtctldServer) DeleteTablets(ctx context.Context, req *vtctldatapb.DeleteTabletsRequest) (*vtctldatapb.DeleteTabletsResponse, error)
DeleteTablets is part of the vtctlservicepb.VtctldServer interface.
func (*VtctldServer) EmergencyReparentShard ¶ added in v0.10.0
func (s *VtctldServer) EmergencyReparentShard(ctx context.Context, req *vtctldatapb.EmergencyReparentShardRequest) (*vtctldatapb.EmergencyReparentShardResponse, error)
EmergencyReparentShard is part of the vtctldservicepb.VtctldServer interface.
func (*VtctldServer) FindAllShardsInKeyspace ¶
func (s *VtctldServer) FindAllShardsInKeyspace(ctx context.Context, req *vtctldatapb.FindAllShardsInKeyspaceRequest) (*vtctldatapb.FindAllShardsInKeyspaceResponse, error)
FindAllShardsInKeyspace is part of the vtctlservicepb.VtctldServer interface.
func (*VtctldServer) GetBackups ¶ added in v0.10.0
func (s *VtctldServer) GetBackups(ctx context.Context, req *vtctldatapb.GetBackupsRequest) (*vtctldatapb.GetBackupsResponse, error)
GetBackups is part of the vtctldservicepb.VtctldServer interface.
func (*VtctldServer) GetCellInfo ¶ added in v0.10.0
func (s *VtctldServer) GetCellInfo(ctx context.Context, req *vtctldatapb.GetCellInfoRequest) (*vtctldatapb.GetCellInfoResponse, error)
GetCellInfo is part of the vtctlservicepb.VtctldServer interface.
func (*VtctldServer) GetCellInfoNames ¶ added in v0.10.0
func (s *VtctldServer) GetCellInfoNames(ctx context.Context, req *vtctldatapb.GetCellInfoNamesRequest) (*vtctldatapb.GetCellInfoNamesResponse, error)
GetCellInfoNames is part of the vtctlservicepb.VtctldServer interface.
func (*VtctldServer) GetCellsAliases ¶ added in v0.10.0
func (s *VtctldServer) GetCellsAliases(ctx context.Context, req *vtctldatapb.GetCellsAliasesRequest) (*vtctldatapb.GetCellsAliasesResponse, error)
GetCellsAliases is part of the vtctlservicepb.VtctldServer interface.
func (*VtctldServer) GetKeyspace ¶
func (s *VtctldServer) GetKeyspace(ctx context.Context, req *vtctldatapb.GetKeyspaceRequest) (*vtctldatapb.GetKeyspaceResponse, error)
GetKeyspace is part of the vtctlservicepb.VtctldServer interface.
func (*VtctldServer) GetKeyspaces ¶
func (s *VtctldServer) GetKeyspaces(ctx context.Context, req *vtctldatapb.GetKeyspacesRequest) (*vtctldatapb.GetKeyspacesResponse, error)
GetKeyspaces is part of the vtctlservicepb.VtctldServer interface.
func (*VtctldServer) GetSchema ¶ added in v0.10.0
func (s *VtctldServer) GetSchema(ctx context.Context, req *vtctldatapb.GetSchemaRequest) (*vtctldatapb.GetSchemaResponse, error)
GetSchema is part of the vtctlservicepb.VtctldServer interface.
func (*VtctldServer) GetShard ¶ added in v0.10.0
func (s *VtctldServer) GetShard(ctx context.Context, req *vtctldatapb.GetShardRequest) (*vtctldatapb.GetShardResponse, error)
GetShard is part of the vtctlservicepb.VtctldServer interface.
func (*VtctldServer) GetSrvKeyspaces ¶ added in v0.10.0
func (s *VtctldServer) GetSrvKeyspaces(ctx context.Context, req *vtctldatapb.GetSrvKeyspacesRequest) (*vtctldatapb.GetSrvKeyspacesResponse, error)
GetSrvKeyspaces is part of the vtctlservicepb.VtctldServer interface.
func (*VtctldServer) GetSrvVSchema ¶ added in v0.10.0
func (s *VtctldServer) GetSrvVSchema(ctx context.Context, req *vtctldatapb.GetSrvVSchemaRequest) (*vtctldatapb.GetSrvVSchemaResponse, error)
GetSrvVSchema is part of the vtctlservicepb.VtctldServer interface.
func (*VtctldServer) GetTablet ¶ added in v0.10.0
func (s *VtctldServer) GetTablet(ctx context.Context, req *vtctldatapb.GetTabletRequest) (*vtctldatapb.GetTabletResponse, error)
GetTablet is part of the vtctlservicepb.VtctldServer interface.
func (*VtctldServer) GetTablets ¶ added in v0.10.0
func (s *VtctldServer) GetTablets(ctx context.Context, req *vtctldatapb.GetTabletsRequest) (*vtctldatapb.GetTabletsResponse, error)
GetTablets is part of the vtctlservicepb.VtctldServer interface.
func (*VtctldServer) GetVSchema ¶ added in v0.10.0
func (s *VtctldServer) GetVSchema(ctx context.Context, req *vtctldatapb.GetVSchemaRequest) (*vtctldatapb.GetVSchemaResponse, error)
GetVSchema is part of the vtctlservicepb.VtctldServer interface.
func (*VtctldServer) GetWorkflows ¶ added in v0.10.0
func (s *VtctldServer) GetWorkflows(ctx context.Context, req *vtctldatapb.GetWorkflowsRequest) (*vtctldatapb.GetWorkflowsResponse, error)
GetWorkflows is part of the vtctlservicepb.VtctldServer interface.
func (*VtctldServer) InitShardPrimary ¶ added in v0.10.0
func (s *VtctldServer) InitShardPrimary(ctx context.Context, req *vtctldatapb.InitShardPrimaryRequest) (*vtctldatapb.InitShardPrimaryResponse, error)
InitShardPrimary is part of the vtctlservicepb.VtctldServer interface.
func (*VtctldServer) InitShardPrimaryLocked ¶ added in v0.10.0
func (s *VtctldServer) InitShardPrimaryLocked( ctx context.Context, ev *events.Reparent, req *vtctldatapb.InitShardPrimaryRequest, waitReplicasTimeout time.Duration, tmc tmclient.TabletManagerClient, logger logutil.Logger, ) error
InitShardPrimaryLocked is the main work of doing an InitShardPrimary. It should only called by callers that have already locked the shard in the topo. It is only public so that it can be used in wrangler and legacy vtctl server.
func (*VtctldServer) PlannedReparentShard ¶ added in v0.10.0
func (s *VtctldServer) PlannedReparentShard(ctx context.Context, req *vtctldatapb.PlannedReparentShardRequest) (*vtctldatapb.PlannedReparentShardResponse, error)
PlannedReparentShard is part of the vtctldservicepb.VtctldServer interface.
func (*VtctldServer) RemoveKeyspaceCell ¶ added in v0.10.0
func (s *VtctldServer) RemoveKeyspaceCell(ctx context.Context, req *vtctldatapb.RemoveKeyspaceCellRequest) (*vtctldatapb.RemoveKeyspaceCellResponse, error)
RemoveKeyspaceCell is part of the vtctlservicepb.VtctldServer interface.
func (*VtctldServer) RemoveShardCell ¶ added in v0.10.0
func (s *VtctldServer) RemoveShardCell(ctx context.Context, req *vtctldatapb.RemoveShardCellRequest) (*vtctldatapb.RemoveShardCellResponse, error)
RemoveShardCell is part of the vtctlservicepb.VtctldServer interface.
func (*VtctldServer) ReparentTablet ¶ added in v0.10.0
func (s *VtctldServer) ReparentTablet(ctx context.Context, req *vtctldatapb.ReparentTabletRequest) (*vtctldatapb.ReparentTabletResponse, error)
ReparentTablet is part of the vtctldservicepb.VtctldServer interface.
func (*VtctldServer) ShardReplicationPositions ¶ added in v0.10.0
func (s *VtctldServer) ShardReplicationPositions(ctx context.Context, req *vtctldatapb.ShardReplicationPositionsRequest) (*vtctldatapb.ShardReplicationPositionsResponse, error)
ShardReplicationPositions is part of the vtctldservicepb.VtctldServer interface.
func (*VtctldServer) TabletExternallyReparented ¶ added in v0.10.0
func (s *VtctldServer) TabletExternallyReparented(ctx context.Context, req *vtctldatapb.TabletExternallyReparentedRequest) (*vtctldatapb.TabletExternallyReparentedResponse, error)
TabletExternallyReparented is part of the vtctldservicepb.VtctldServer interface.