s3

package
Version: v0.0.0-...-fa99620 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2021 License: AGPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadS3StorageInfoFromDatabase

func LoadS3StorageInfoFromDatabase(storageID []byte, identifier string, rootPath string) storage_base.Storage

Types

type ETagCalculator

type ETagCalculator struct {
	Writer *io.PipeWriter
	Result chan string
}

func CreateETagCalculator

func CreateETagCalculator() *ETagCalculator

type S3

type S3 struct {
	StorageID []byte
	RootPath  string
	Data      S3DatabaseIdentifier
	// contains filtered or unexported fields
}

func (*S3) BeginBlobUpload

func (remote *S3) BeginBlobUpload(blobID []byte) storage_base.StorageUpload

func (*S3) DownloadSection

func (remote *S3) DownloadSection(path string, offset int64, length int64) io.ReadCloser

func (*S3) DownloadSectionHTTP

func (remote *S3) DownloadSectionHTTP(path string, offset int64, length int64) *http.Response

func (*S3) GetID

func (remote *S3) GetID() []byte

func (*S3) ListBlobs

func (remote *S3) ListBlobs() []storage_base.UploadedBlob

func (*S3) Metadata

func (remote *S3) Metadata(path string) (string, int64)

func (*S3) String

func (remote *S3) String() string

func (*S3) UploadDatabaseBackup

func (remote *S3) UploadDatabaseBackup(encryptedDatabase []byte, name string)

type S3DatabaseIdentifier

type S3DatabaseIdentifier struct {
	Bucket    string `json:"bucket"`
	KeyID     string `json:"aws_access_key_id"`
	SecretKey string `json:"aws_secret_access_key"`
	Region    string `json:"aws_region"`
	Endpoint  string `json:"endpoint"`
}

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL