Documentation ¶
Index ¶
- func Copy(src string, dst string) error
- func CopyFile(src, dst string) error
- type Backup
- func (b *Backup) ApplyChanges() (err error)
- func (b *Backup) ClearStorage(num int64) (err error)
- func (b *Backup) Delete(name string) (err error)
- func (b *Backup) List(ctx context.Context, limit, offset int64, orderBy, s string) (list m.Backups, total int64, err error)
- func (b *Backup) New(scheduler bool) (err error)
- func (b *Backup) Restore(name string) (err error)
- func (b *Backup) RestoreFile(name string) (err error)
- func (b *Backup) RestoreFromChunks()
- func (b *Backup) RollbackChanges() (err error)
- func (b *Backup) SendFileToTelegram(params events.CommandSendFileToTelegram)
- func (b *Backup) Shutdown(ctx context.Context) (err error)
- func (b *Backup) UploadBackup(ctx context.Context, reader *bufio.Reader, fileName string) (newFile *m.Backup, err error)
- type Config
- type Local
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Backup ¶
type Backup struct {
// contains filtered or unexported fields
}
Backup ...
func (*Backup) ApplyChanges ¶
func (*Backup) ClearStorage ¶
func (*Backup) List ¶
func (b *Backup) List(ctx context.Context, limit, offset int64, orderBy, s string) (list m.Backups, total int64, err error)
List ...
func (*Backup) RestoreFromChunks ¶
func (b *Backup) RestoreFromChunks()
func (*Backup) RollbackChanges ¶
func (*Backup) SendFileToTelegram ¶
func (b *Backup) SendFileToTelegram(params events.CommandSendFileToTelegram)
Click to show internal directories.
Click to hide internal directories.