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 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)
Click to show internal directories.
Click to hide internal directories.