Skip to content

Commit 9dac4c7

Browse files
authored
[Feature] Extend backup API (#260)
1 parent 6d8dfb1 commit 9dac4c7

File tree

1 file changed

+15
-9
lines changed

1 file changed

+15
-9
lines changed

client_admin_backup.go

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,21 @@ import (
2929

3030
// BackupMeta provides meta data of a backup
3131
type BackupMeta struct {
32-
ID BackupID `json:"id,omitempty"`
33-
Version string `json:"version,omitempty"`
34-
DateTime time.Time `json:"datetime,omitempty"`
35-
NumberOfFiles uint `json:"nrFiles,omitempty"`
36-
NumberOfDBServers uint `json:"nrDBServers,omitempty"`
37-
SizeInBytes uint64 `json:"sizeInBytes,omitempty"`
38-
PotentiallyInconsistent bool `json:"potentiallyInconsistent,omitempty"`
39-
Available bool `json:"available,omitempty"`
40-
NumberOfPiecesPresent uint `json:"nrPiecesPresent,omitempty"`
32+
ID BackupID `json:"id,omitempty"`
33+
Version string `json:"version,omitempty"`
34+
DateTime time.Time `json:"datetime,omitempty"`
35+
NumberOfFiles uint `json:"nrFiles,omitempty"`
36+
NumberOfDBServers uint `json:"nrDBServers,omitempty"`
37+
SizeInBytes uint64 `json:"sizeInBytes,omitempty"`
38+
PotentiallyInconsistent bool `json:"potentiallyInconsistent,omitempty"`
39+
Available bool `json:"available,omitempty"`
40+
NumberOfPiecesPresent uint `json:"nrPiecesPresent,omitempty"`
41+
Keys []BackupMetaSha256 `json:"keys,omitempty"`
42+
}
43+
44+
// BackupMetaSha256 backup sha details
45+
type BackupMetaSha256 struct {
46+
SHA256 string `json:"sha256"`
4147
}
4248

4349
// BackupRestoreOptions provides options for Restore

0 commit comments

Comments
 (0)