s3

package
v0.6.3 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2022 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultEncryptionAlgorithm = "AES256"

Variables

This section is empty.

Functions

This section is empty.

Types

type S3Destination

type S3Destination struct {
	Session             *session.Session
	Client              *s3.S3
	EncryptionKey       *string
	EncryptionAlgorithm string
	Uploader            *s3manager.Uploader
	Bucket              string
	Prefix              string
	// contains filtered or unexported fields
}

func NewS3Destination

func NewS3Destination(conf *S3DestinationConf) (*S3Destination, error)

func (*S3Destination) EnsureRetention

func (s *S3Destination) EnsureRetention(max int) error

func (*S3Destination) Store

func (s *S3Destination) Store(obj backup.Object) (int64, error)

type S3DestinationConf

type S3DestinationConf struct {
	Endpoint            string
	AccessKey           string
	SecretKey           string
	EncryptionKey       *string
	EncryptionAlgorithm string
	DisableSSL          bool
	InsecureSkipVerify  bool
	Bucket              string
	Prefix              string
	PartSize            int64
}

type S3Source

type S3Source struct {
	Session             *session.Session
	Client              *s3.S3
	Downloader          *s3manager.Downloader
	Bucket              string
	Key                 string
	EncryptionKey       *string
	EncryptionAlgorithm string
	// contains filtered or unexported fields
}

func NewS3Source

func NewS3Source(conf *S3SourceConf) (*S3Source, error)

func (*S3Source) Stream

func (s *S3Source) Stream(dst backup.Destination) (int64, error)

type S3SourceConf

type S3SourceConf struct {
	Endpoint            string
	AccessKey           string
	SecretKey           string
	EncryptionKey       *string
	EncryptionAlgorithm string
	DisableSSL          bool
	InsecureSkipVerify  bool
	Bucket              string
	Key                 string
}

Jump to

Keyboard shortcuts

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