Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func OutputToFile ¶
func OutputToFile(backInfo *BackupInfo, f *os.File) error
OutputToFile output the backupInfo to the file.
Types ¶
type BackupInfo ¶
type BackupInfo struct {
ClusterID uint64 `json:"clusterID"`
AllocIDMax uint64 `json:"allocIDMax"`
AllocTimestampMax uint64 `json:"allocTimestampMax"`
Config *config.Config `json:"config"`
}
BackupInfo is the backup infos.
func GetBackupInfo ¶
func GetBackupInfo(client *clientv3.Client, pdAddr string) (*BackupInfo, error)
GetBackupInfo return the BackupInfo
Click to show internal directories.
Click to hide internal directories.