tasks

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2014 License: MIT Imports: 12 Imported by: 1

Documentation

Index

Constants

View Source
const (
	LOCAL_TASK_TYPE    = "local"
	POSTGRES_TASK_TYPE = "postgres"
	MYSQL_TASK_TYPE    = "mysql"
)

Variables

This section is empty.

Functions

func EncryptCmd

func EncryptCmd(pass string) string

func RegisterBuilder

func RegisterBuilder(taskType string, taskBuilder BackupTaskBuilderFunc)

func ResultSuccess

func ResultSuccess(pathResult *backuper.PathResult) bool

Types

type BackupTaskBuilderFunc

type BackupTaskBuilderFunc (func(*backuper.TaskConfig) BackupTaskInterface)

type BackupTaskInterface

type BackupTaskInterface interface {
	Type() string
	GenerateTmpFile(tmpFilePath string) (output []byte, err error)
	TmpFileName() string
}

func GetTask

func GetTask(config *backuper.TaskConfig) (task BackupTaskInterface, err error)

type Runner

type Runner struct {
	// contains filtered or unexported fields
}

func NewRunner

func NewRunner(config *backuper.AgentConfig, secretConfig *config.Providers) *Runner

func (*Runner) CleanupTmpDir

func (runner *Runner) CleanupTmpDir() error

func (*Runner) Run

func (runner *Runner) Run() (err error, backupResult *backuper.BackupResult)

Jump to

Keyboard shortcuts

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