storage

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: May 30, 2022 License: MIT Imports: 16 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 Local

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

Local storage

type: local path: /data/backups

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

Jump to

Keyboard shortcuts

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