storage

package
v0.0.0-...-770295e Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2018 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(model config.ModelConfig, archivePath string) (err error)

Run storage

Types

type Base

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

Base storage

type Context

type Context interface {
	// contains filtered or unexported methods
}

Context storage interface

type Cycler

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

type FTP

type FTP struct {
	Base
	// contains filtered or unexported fields
}

FTP storage

type: ftp path: /backups host: ftp.your-host.com port: 21 timeout: 30 username: password:

type Local

type Local struct {
	Base
	// contains filtered or unexported fields
}

Local storage

type: local path: /data/backups

type OSS

type OSS struct {
	Base
	// contains filtered or unexported fields
}

OSS - Aliyun OSS storage

type: oss bucket: gobackup-test endpoint: oss-cn-beijing.aliyuncs.com path: / access_key_id: your-access-key-id access_key_secret: your-access-key-secret max_retries: 5 timeout: 300

type Package

type Package struct {
	FileKey   string    `json:"file_key"`
	CreatedAt time.Time `json:"created_at"`
}

type PackageList

type PackageList []Package

type S3

type S3 struct {
	Base
	// contains filtered or unexported fields
}

S3 - Amazon S3 storage

type: s3 bucket: gobackup-test region: us-east-1 path: backups access_key_id: your-access-key-id secret_access_key: your-secret-access-key max_retries: 5 timeout: 300

type SCP

type SCP struct {
	Base
	// contains filtered or unexported fields
}

SCP storage

type: scp host: 192.168.1.2 port: 22 username: root password: timeout: 300 private_key: ~/.ssh/id_rsa

Jump to

Keyboard shortcuts

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