backup

package
v0.0.0-...-2655167 Latest Latest
Warning

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

Go to latest
Published: May 24, 2023 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckAzureClient

func CheckAzureClient() (string, error)

func CheckGCloudClient

func CheckGCloudClient() (string, error)

func CheckKubeClient

func CheckKubeClient() (string, error)

func CheckMinioClient

func CheckMinioClient() (string, error)

func CheckMongoClient

func CheckMongoClient() (string, error)

func CheckMongodump

func CheckMongodump() (string, error)

func GetKubernetesClient

func GetKubernetesClient() *kubernetes.Clientset

func ShellEval

func ShellEval(expression string) (string, error)

evaluate expression in shell

func TmpCleanup

func TmpCleanup(path string) error

TmpCleanup remove files older than one day

func UploadToRemoteStorage

func UploadToRemoteStorage(plan config.Plan, file string) error

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"`
	HandlesBackupData bool          `json:"handlesBackupData"`
}

func Run

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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