s3

package
v0.0.0-...-c600a59 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2024 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Opts

type Opts struct {
	BucketName    string
	AccessKeyID   string
	SecretKey     string
	Endpoint      string
	Region        string
	BatchDeletion bool
	Secure        bool
}

type S3

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

func Init

func Init(name string, opts Opts, rl int64) (*S3, error)

func (*S3) Clone

func (s *S3) Clone() interfaces.Storage

func (*S3) Close

func (s *S3) Close() error

func (*S3) Configure

func (s *S3) Configure(p Params)

func (*S3) DeleteOldBackups

func (s *S3) DeleteOldBackups(logCh chan logger.LogRecord, ofs string, job interfaces.Job, full bool) error

func (*S3) DeliveryBackup

func (s *S3) DeliveryBackup(logCh chan logger.LogRecord, jobName, tmpBackupFile, ofs, bakType string) error

func (*S3) GetFileReader

func (s *S3) GetFileReader(ofsPath string) (io.Reader, error)

func (*S3) GetName

func (s *S3) GetName() string

func (*S3) IsLocal

func (s *S3) IsLocal() int

func (*S3) ListBackups

func (s *S3) ListBackups(ofsPath string) ([]string, error)

Jump to

Keyboard shortcuts

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