scheduleconfig

package
v0.0.0-...-3444db6 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

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

Jump to

Keyboard shortcuts

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