Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 15 additions & 9 deletions client_admin_backup.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,21 @@ import (

// BackupMeta provides meta data of a backup
type BackupMeta struct {
ID BackupID `json:"id,omitempty"`
Version string `json:"version,omitempty"`
DateTime time.Time `json:"datetime,omitempty"`
NumberOfFiles uint `json:"nrFiles,omitempty"`
NumberOfDBServers uint `json:"nrDBServers,omitempty"`
SizeInBytes uint64 `json:"sizeInBytes,omitempty"`
PotentiallyInconsistent bool `json:"potentiallyInconsistent,omitempty"`
Available bool `json:"available,omitempty"`
NumberOfPiecesPresent uint `json:"nrPiecesPresent,omitempty"`
ID BackupID `json:"id,omitempty"`
Version string `json:"version,omitempty"`
DateTime time.Time `json:"datetime,omitempty"`
NumberOfFiles uint `json:"nrFiles,omitempty"`
NumberOfDBServers uint `json:"nrDBServers,omitempty"`
SizeInBytes uint64 `json:"sizeInBytes,omitempty"`
PotentiallyInconsistent bool `json:"potentiallyInconsistent,omitempty"`
Available bool `json:"available,omitempty"`
NumberOfPiecesPresent uint `json:"nrPiecesPresent,omitempty"`
Keys []BackupMetaSha256 `json:"keys,omitempty"`
}

// BackupMetaSha256 backup sha details
type BackupMetaSha256 struct {
SHA256 string `json:"sha256"`
}

// BackupRestoreOptions provides options for Restore
Expand Down