s3aws

package
v0.0.0-...-0dadfe6 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2019 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type S3backend

type S3backend struct {
}

S3backend returns a struct to use the S3-Methods

func (S3backend) DeleteAll

func (b S3backend) DeleteAll(viper *viper.Viper, backups *backup.Backups) (count int, err error)

DeleteAll deletes all backups in the struct

func (S3backend) DeleteWal

func (b S3backend) DeleteWal(viper *viper.Viper, w *backup.Wal) (err error)

DeleteWal deletes the given WAL-file

func (S3backend) Fetch

func (b S3backend) Fetch(viper *viper.Viper) (err error)

Fetch recover from a S3 compatible object store

func (S3backend) GetBackups

func (b S3backend) GetBackups(viper *viper.Viper, subDirWal string) (backups backup.Backups)

GetBackups returns Backups

func (S3backend) GetBasebackup

func (b S3backend) GetBasebackup(viper *viper.Viper, backup *backup.Backup, backupStream *io.Reader, wgStart *sync.WaitGroup, wgDone *sync.WaitGroup)

GetBasebackup gets things from S3

func (S3backend) GetStartWalLocation

func (b S3backend) GetStartWalLocation(viper *viper.Viper, bp *backup.Backup) (startWalLocation string, err error)

GetStartWalLocation returns the oldest needed WAL file Every older WAL file is not required to use this backup

func (S3backend) GetWals

func (b S3backend) GetWals(viper *viper.Viper) (a backup.Archive, err error)

GetWals returns WAL-Files from S3

func (S3backend) WriteStream

func (b S3backend) WriteStream(viper *viper.Viper, input *io.Reader, name string, backuptype string)

WriteStream handles a stream and writes it to S3 storage

Jump to

Keyboard shortcuts

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