Documentation
¶
Index ¶
- func GetBackupsInfo(cli *clientv3.Client) map[string]*statuspb.BackupInfo
- func GetNodesInfo(cli *clientv3.Client) *statuspb.NodeInfoMap
- func RemoveBackupInfo(cli *clientv3.Client, key string) error
- func StoreFullBackupInfo(cli *clientv3.Client, key string, info *statuspb.FullBackupInfo) error
- func StoreIncBackupInfo(cli *clientv3.Client, key string, info *statuspb.IncBackupInfo) error
- type StatusRecorder
- type WeeklyBackupAggregator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetBackupsInfo ¶
func GetBackupsInfo(cli *clientv3.Client) map[string]*statuspb.BackupInfo
func GetNodesInfo ¶
func GetNodesInfo(cli *clientv3.Client) *statuspb.NodeInfoMap
func StoreFullBackupInfo ¶
func StoreIncBackupInfo ¶
Types ¶
type StatusRecorder ¶
type StatusRecorder struct {
// contains filtered or unexported fields
}
func NewStatusRecorder ¶
func NewStatusRecorder( client *clientv3.Client, storeDir string, name string, cfg *base.ServerConfig, ) *StatusRecorder
func (*StatusRecorder) WriteStatus ¶
func (sr *StatusRecorder) WriteStatus(ctx context.Context) error
type WeeklyBackupAggregator ¶
type WeeklyBackupAggregator struct {
// contains filtered or unexported fields
}
func NewWeeklyBackupAggregator ¶
func NewWeeklyBackupAggregator() *WeeklyBackupAggregator
NewWeeklyBackupAggregator returns new instance.
func (*WeeklyBackupAggregator) AddFullBackupInfo ¶
func (a *WeeklyBackupAggregator) AddFullBackupInfo(i *statuspb.FullBackupInfo) error
AddFullBackupInfo adds full backup information to aggregator.
func (*WeeklyBackupAggregator) BestStartTime ¶
func (a *WeeklyBackupAggregator) BestStartTime(w time.Weekday) (int, int)
func (*WeeklyBackupAggregator) Switch ¶
func (a *WeeklyBackupAggregator) Switch()
Switch replace next with new weekly information store.
Click to show internal directories.
Click to hide internal directories.