Documentation ¶
Index ¶
- type BackupSchedule
- type ScheduleConfig
- func (sc *ScheduleConfig) Add(bs BackupSchedule) error
- func (sc *ScheduleConfig) Delete(uid string) error
- func (sc *ScheduleConfig) Get(uid string) (BackupSchedule, error)
- func (sc *ScheduleConfig) GetList() []BackupSchedule
- func (sc *ScheduleConfig) SetBackup(uid string, t time.Time) error
- func (sc *ScheduleConfig) SetChecked(uid string, t time.Time) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BackupSchedule ¶
type BackupSchedule struct { UUID string Name string Day [7]bool PLC string DB []string Backup time.Time // contains filtered or unexported fields }
func NewBackupSchedule ¶
func NewBackupSchedule() BackupSchedule
func (*BackupSchedule) AddDB ¶
func (bs *BackupSchedule) AddDB(uid string) error
func (*BackupSchedule) GetChecked ¶
func (bs *BackupSchedule) GetChecked() time.Time
func (*BackupSchedule) SetChecked ¶
func (bs *BackupSchedule) SetChecked(t time.Time)
type ScheduleConfig ¶
type ScheduleConfig struct {
Backups []BackupSchedule
}
func (*ScheduleConfig) Add ¶
func (sc *ScheduleConfig) Add(bs BackupSchedule) error
func (*ScheduleConfig) Delete ¶
func (sc *ScheduleConfig) Delete(uid string) error
func (*ScheduleConfig) Get ¶
func (sc *ScheduleConfig) Get(uid string) (BackupSchedule, error)
func (*ScheduleConfig) GetList ¶
func (sc *ScheduleConfig) GetList() []BackupSchedule
func (*ScheduleConfig) SetBackup ¶
func (sc *ScheduleConfig) SetBackup(uid string, t time.Time) error
func (*ScheduleConfig) SetChecked ¶
func (sc *ScheduleConfig) SetChecked(uid string, t time.Time) error
Click to show internal directories.
Click to hide internal directories.