2017-05-06 02:21:12 +03:00
|
|
|
/*
|
2019-10-21 12:35:53 +03:00
|
|
|
Copyright 2019 The Vitess Authors.
|
2017-05-06 02:21:12 +03:00
|
|
|
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
you may not use this file except in compliance with the License.
|
|
|
|
You may obtain a copy of the License at
|
|
|
|
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
2019-10-21 12:35:53 +03:00
|
|
|
Unless required by applicable law or agreed to in writing, software
|
2017-05-06 02:21:12 +03:00
|
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
See the License for the specific language governing permissions and
|
|
|
|
limitations under the License.
|
|
|
|
*/
|
|
|
|
|
2015-07-07 01:17:41 +03:00
|
|
|
// This file contains the service definition for making management API
|
|
|
|
// calls to mysqlctld.
|
|
|
|
|
|
|
|
syntax = "proto3";
|
2018-06-08 06:00:15 +03:00
|
|
|
option go_package = "vitess.io/vitess/go/vt/proto/mysqlctl";
|
2015-07-07 01:17:41 +03:00
|
|
|
|
|
|
|
package mysqlctl;
|
|
|
|
|
2021-06-12 19:21:49 +03:00
|
|
|
import "topodata.proto";
|
|
|
|
import "vttime.proto";
|
|
|
|
|
2016-07-25 19:33:06 +03:00
|
|
|
message StartRequest{
|
|
|
|
repeated string mysqld_args = 1;
|
|
|
|
}
|
2015-07-07 01:17:41 +03:00
|
|
|
|
|
|
|
message StartResponse{}
|
|
|
|
|
|
|
|
message ShutdownRequest{
|
|
|
|
bool wait_for_mysqld = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
message ShutdownResponse{}
|
|
|
|
|
|
|
|
message RunMysqlUpgradeRequest{}
|
|
|
|
|
|
|
|
message RunMysqlUpgradeResponse{}
|
|
|
|
|
2016-06-28 01:24:08 +03:00
|
|
|
message ReinitConfigRequest{}
|
|
|
|
|
|
|
|
message ReinitConfigResponse{}
|
|
|
|
|
2018-02-03 07:59:35 +03:00
|
|
|
message RefreshConfigRequest{}
|
|
|
|
|
|
|
|
message RefreshConfigResponse{}
|
|
|
|
|
2015-07-07 01:17:41 +03:00
|
|
|
// MysqlCtl is the service definition
|
|
|
|
service MysqlCtl {
|
|
|
|
rpc Start(StartRequest) returns (StartResponse) {};
|
|
|
|
rpc Shutdown(ShutdownRequest) returns (ShutdownResponse) {};
|
|
|
|
rpc RunMysqlUpgrade(RunMysqlUpgradeRequest) returns (RunMysqlUpgradeResponse) {};
|
2016-06-28 01:24:08 +03:00
|
|
|
rpc ReinitConfig(ReinitConfigRequest) returns (ReinitConfigResponse) {};
|
2018-02-03 07:59:35 +03:00
|
|
|
rpc RefreshConfig(RefreshConfigRequest) returns (RefreshConfigResponse) {};
|
2015-07-07 01:17:41 +03:00
|
|
|
}
|
2021-01-23 01:04:49 +03:00
|
|
|
|
|
|
|
// BackupInfo is the read-only attributes of a mysqlctl/backupstorage.BackupHandle.
|
|
|
|
message BackupInfo {
|
|
|
|
string name = 1;
|
|
|
|
string directory = 2;
|
2021-06-12 19:21:49 +03:00
|
|
|
|
|
|
|
string keyspace = 3;
|
|
|
|
string shard = 4;
|
|
|
|
|
|
|
|
// The following fields will be extracted from the .Name field. If an error
|
|
|
|
// occurs during extraction/parsing, these fields may not be set, but
|
|
|
|
// VtctldServer.GetBackups will not fail.
|
|
|
|
|
|
|
|
topodata.TabletAlias tablet_alias = 5;
|
|
|
|
vttime.Time time = 6;
|
|
|
|
|
|
|
|
// The following fields are may or may not be currently set. Work is inflight
|
|
|
|
// to fully-support these fields in all backupengine/storage implementations.
|
2021-06-14 23:55:25 +03:00
|
|
|
// See https://github.com/vitessio/vitess/issues/8332.
|
2021-06-12 19:21:49 +03:00
|
|
|
|
|
|
|
// Engine is the name of the backupengine implementation used to create
|
|
|
|
// this backup.
|
|
|
|
string engine = 7;
|
|
|
|
Status status = 8;
|
|
|
|
|
|
|
|
// Status is an enum representing the possible status of a backup.
|
|
|
|
enum Status {
|
|
|
|
UNKNOWN = 0;
|
|
|
|
INCOMPLETE = 1;
|
|
|
|
COMPLETE = 2;
|
|
|
|
// A backup status of INVALID should be set if the backup is complete
|
|
|
|
// but unusable in some way (partial upload, corrupt file, etc).
|
|
|
|
INVALID = 3;
|
|
|
|
// A backup status of VALID should be set if the backup is both
|
|
|
|
// complete and usuable.
|
|
|
|
VALID = 4;
|
|
|
|
}
|
2021-01-23 01:04:49 +03:00
|
|
|
}
|