status

package
v0.4.7 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2017 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

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 RemoveBackupInfo

func RemoveBackupInfo(cli *clientv3.Client, key string) error

func StoreFullBackupInfo

func StoreFullBackupInfo(cli *clientv3.Client, key string, info *statuspb.FullBackupInfo) error

func StoreIncBackupInfo

func StoreIncBackupInfo(cli *clientv3.Client, key string, info *statuspb.IncBackupInfo) error

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.

Directories

Path Synopsis
Package statuspb is a generated protocol buffer package.
Package statuspb is a generated protocol buffer package.

Jump to

Keyboard shortcuts

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