backup

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2019 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckAzureClient added in v1.0.0

func CheckAzureClient() (string, error)

func CheckGCloudClient added in v0.8.0

func CheckGCloudClient() (string, error)

func CheckMinioClient

func CheckMinioClient() (string, error)

func CheckMongodump

func CheckMongodump() (string, error)

func TmpCleanup added in v0.4.0

func TmpCleanup(path string) error

TmpCleanup remove files older than one day

Types

type Result

type Result struct {
	Name      string        `json:"name"`
	Plan      string        `json:"plan"`
	Duration  time.Duration `json:"duration"`
	Size      int64         `json:"size"`
	Status    int           `json:"status"`
	Timestamp time.Time     `json:"timestamp"`
}

func Run

func Run(plan config.Plan, tmpPath string, storagePath string) (Result, error)

Jump to

Keyboard shortcuts

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