Versions in this module Expand all Collapse all v0 v0.15.10 Jul 31, 2024 v0.15.9 Jul 31, 2024 v0.15.8 Jul 31, 2024 Changes in this version + type API struct + func NewAPI(server vtadminpb.VTAdminServer, opts Options) *API + func (api *API) Adapt(handler VTAdminHandler) http.HandlerFunc + func (api *API) Options() Options + func (api *API) Server() vtadminpb.VTAdminServer + type JSONResponse struct + Error *errorBody + Ok bool + Result any + func ApplySchema(ctx context.Context, r Request, api *API) *JSONResponse + func CancelSchemaMigration(ctx context.Context, r Request, api *API) *JSONResponse + func CleanupSchemaMigration(ctx context.Context, r Request, api *API) *JSONResponse + func CompleteSchemaMigration(ctx context.Context, r Request, api *API) *JSONResponse + func CreateKeyspace(ctx context.Context, r Request, api *API) *JSONResponse + func CreateShard(ctx context.Context, r Request, api *API) *JSONResponse + func DeleteKeyspace(ctx context.Context, r Request, api *API) *JSONResponse + func DeleteShards(ctx context.Context, r Request, api *API) *JSONResponse + func DeleteTablet(ctx context.Context, r Request, api *API) *JSONResponse + func EmergencyFailoverShard(ctx context.Context, r Request, api *API) *JSONResponse + func FindSchema(ctx context.Context, r Request, api *API) *JSONResponse + func GetBackups(ctx context.Context, r Request, api *API) *JSONResponse + func GetCellInfos(ctx context.Context, r Request, api *API) *JSONResponse + func GetCellsAliases(ctx context.Context, r Request, api *API) *JSONResponse + func GetClusters(ctx context.Context, r Request, api *API) *JSONResponse + func GetFullStatus(ctx context.Context, r Request, api *API) *JSONResponse + func GetGates(ctx context.Context, r Request, api *API) *JSONResponse + func GetKeyspace(ctx context.Context, r Request, api *API) *JSONResponse + func GetKeyspaces(ctx context.Context, r Request, api *API) *JSONResponse + func GetSchema(ctx context.Context, r Request, api *API) *JSONResponse + func GetSchemaMigrations(ctx context.Context, r Request, api *API) *JSONResponse + func GetSchemas(ctx context.Context, r Request, api *API) *JSONResponse + func GetShardReplicationPositions(ctx context.Context, r Request, api *API) *JSONResponse + func GetSrvKeyspace(ctx context.Context, r Request, api *API) *JSONResponse + func GetSrvKeyspaces(ctx context.Context, r Request, api *API) *JSONResponse + func GetSrvVSchema(ctx context.Context, r Request, api *API) *JSONResponse + func GetSrvVSchemas(ctx context.Context, r Request, api *API) *JSONResponse + func GetTablet(ctx context.Context, r Request, api *API) *JSONResponse + func GetTablets(ctx context.Context, r Request, api *API) *JSONResponse + func GetTopologyPath(ctx context.Context, r Request, api *API) *JSONResponse + func GetVSchema(ctx context.Context, r Request, api *API) *JSONResponse + func GetVSchemas(ctx context.Context, r Request, api *API) *JSONResponse + func GetVtctlds(ctx context.Context, r Request, api *API) *JSONResponse + func GetWorkflow(ctx context.Context, r Request, api *API) *JSONResponse + func GetWorkflows(ctx context.Context, r Request, api *API) *JSONResponse + func LaunchSchemaMigration(ctx context.Context, r Request, api *API) *JSONResponse + func NewJSONResponse(value any, err error) *JSONResponse + func PingTablet(ctx context.Context, r Request, api *API) *JSONResponse + func PlannedFailoverShard(ctx context.Context, r Request, api *API) *JSONResponse + func RebuildKeyspaceGraph(ctx context.Context, r Request, api *API) *JSONResponse + func RefreshState(ctx context.Context, r Request, api *API) *JSONResponse + func RefreshTabletReplicationSource(ctx context.Context, r Request, api *API) *JSONResponse + func ReloadSchemaShard(ctx context.Context, r Request, api *API) *JSONResponse + func ReloadSchemas(ctx context.Context, r Request, api *API) *JSONResponse + func ReloadTabletSchema(ctx context.Context, r Request, api *API) *JSONResponse + func RemoveKeyspaceCell(ctx context.Context, r Request, api *API) *JSONResponse + func RetrySchemaMigration(ctx context.Context, r Request, api *API) *JSONResponse + func RunHealthCheck(ctx context.Context, r Request, api *API) *JSONResponse + func SetReadOnly(ctx context.Context, r Request, api *API) *JSONResponse + func SetReadWrite(ctx context.Context, r Request, api *API) *JSONResponse + func StartReplication(ctx context.Context, r Request, api *API) *JSONResponse + func StopReplication(ctx context.Context, r Request, api *API) *JSONResponse + func TabletExternallyPromoted(ctx context.Context, r Request, api *API) *JSONResponse + func VTExplain(ctx context.Context, r Request, api *API) *JSONResponse + func Validate(ctx context.Context, r Request, api *API) *JSONResponse + func ValidateKeyspace(ctx context.Context, r Request, api *API) *JSONResponse + func ValidateSchemaKeyspace(ctx context.Context, r Request, api *API) *JSONResponse + func ValidateShard(ctx context.Context, r Request, api *API) *JSONResponse + func ValidateVersionKeyspace(ctx context.Context, r Request, api *API) *JSONResponse + func ValidateVersionShard(ctx context.Context, r Request, api *API) *JSONResponse + func (r *JSONResponse) WithHTTPStatus(code int) *JSONResponse + func (r *JSONResponse) Write(w http.ResponseWriter) + type Options struct + CORSOrigins []string + DisableCompression bool + DisableDebug bool + EnableTracing bool + ExperimentalOptions struct{ ... } + type Request struct + func (r Request) ParseQueryParamAsBool(name string, defaultVal bool) (bool, error) + func (r Request) ParseQueryParamAsInt32(name string, defaultVal int32) (int32, error) + func (r Request) ParseQueryParamAsUint32(name string, defaultVal uint32) (uint32, error) + func (r Request) Vars() Vars + type VTAdminHandler func(ctx context.Context, r Request, api *API) *JSONResponse + type Vars map[string]string + func (v Vars) GetTabletAlias(key string) (*topodatapb.TabletAlias, error)