pdbackup

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 15, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL