cloudbackup

package
v5.0.2-beta3 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2023 License: AGPL-3.0 Imports: 14 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	BackupTasks = param.NewMap()
)

Functions

func FileChan

func FileChan() chan *PutFile

func MonitorBackupStop

func MonitorBackupStop(id uint) error

func ResetFileChan

func ResetFileChan()

Types

type Cloudbackup

type Cloudbackup struct {
	SourcePath string
	DestPath   string
	Filter     func(string) bool

	WaitFillCompleted bool
	IgnoreWaitRegexp  *regexp.Regexp
	// contains filtered or unexported fields
}

func New

func New(mgr *s3manager.S3Manager) *Cloudbackup

func (*Cloudbackup) OnCreate

func (c *Cloudbackup) OnCreate(file string)

func (*Cloudbackup) OnDelete

func (c *Cloudbackup) OnDelete(file string)

func (*Cloudbackup) OnModify

func (c *Cloudbackup) OnModify(file string)

func (*Cloudbackup) OnRename

func (c *Cloudbackup) OnRename(file string)

type PutFile

type PutFile struct {
	Manager           *s3manager.S3Manager
	ObjectName        string
	FilePath          string
	WaitFillCompleted bool
}

func (*PutFile) Do

func (mf *PutFile) Do() error

Jump to

Keyboard shortcuts

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