Skip to content

Commit

Permalink
PMM-7385: MySQL backup restore API (#717)
Browse files Browse the repository at this point in the history
* PMM-7385: MySQL backup restore API

* generate

* rename

Co-authored-by: Alexander Tymchuk <[email protected]>
  • Loading branch information
oter and Alexander Tymchuk authored May 4, 2021
1 parent df3f775 commit 8bb9d36
Show file tree
Hide file tree
Showing 13 changed files with 1,577 additions and 328 deletions.
842 changes: 564 additions & 278 deletions api/agentpb/agent.pb.go

Large diffs are not rendered by default.

20 changes: 20 additions & 0 deletions api/agentpb/agent.proto
Original file line number Diff line number Diff line change
Expand Up @@ -404,12 +404,24 @@ message StartJobRequest {
S3LocationConfig s3_config = 10;
}
}
// MySQLRestoreBackup is job for MySQL restore backup service.
message MySQLRestoreBackup {
// Service identifier where the backup should be restored.
string service_id = 1;
// Backup name.
string name = 2;
// Where backup is stored.
oneof location_config {
S3LocationConfig s3_config = 10;
}
}
string job_id = 1;
// Timeout for the job.
google.protobuf.Duration timeout = 2;
oneof job {
Echo echo = 10;
MySQLBackup mysql_backup = 11;
MySQLRestoreBackup mysql_restore_backup = 12;
}
}

Expand Down Expand Up @@ -439,12 +451,16 @@ message JobResult {
// MySQLBackup contains result for MySQL backup job.
message MySQLBackup {}

// MySQLRestoreBackup contains result for MySQL restore backup job.
message MySQLRestoreBackup {}

string job_id = 1;
google.protobuf.Timestamp timestamp = 2;
oneof result {
Error error = 10;
Echo echo = 11;
MySQLBackup mysql_backup = 12;
MySQLRestoreBackup mysql_restore_backup = 13;
}
}

Expand All @@ -457,11 +473,15 @@ message JobProgress {
// MySQLBackup contains backup job status update.
message MySQLBackup {}

// MySQLRestoreBackup contains restore backup job status update.
message MySQLRestoreBackup {}

string job_id = 1;
google.protobuf.Timestamp timestamp = 2;
oneof result {
Echo echo = 10;
MySQLBackup mysql_backup = 11;
MySQLRestoreBackup mysql_restore_backup = 12;
}
}

Expand Down
37 changes: 37 additions & 0 deletions api/agentpb/agent.validator.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 8bb9d36

Please sign in to comment.