storeuploader

package
v2.14.7+incompatible Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StoreUploader

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

StoreUploader is the configuration for the StoreUploader

func New

func New(endpoint string, secure bool, accessKeyID, secretAccessKey string, logger *zap.SugaredLogger) (*StoreUploader, error)

New returns a new instance of the StoreUploader

func (*StoreUploader) DeleteAll

func (u *StoreUploader) DeleteAll(bucket, prefix string) error

DeleteAll deletes all revisions of all files matching the given prefix

func (*StoreUploader) DeleteOldBackups

func (u *StoreUploader) DeleteOldBackups(bucket, prefix string, revisionsToKeep int) error

DeleteOldBackups deletes revisions of all files of the given prefix which are older than max-revisions

func (*StoreUploader) Store

func (u *StoreUploader) Store(file, bucket, prefix string, createBucket bool) error

Store uploads the given file to S3

Jump to

Keyboard shortcuts

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