s3_backend

package
v0.0.0-...-2206af0 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2022 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type S3BackendFactory

type S3BackendFactory struct {
}

func (*S3BackendFactory) BuildStorage

func (factory *S3BackendFactory) BuildStorage(configuration backend.StringProperties, configPrefix string, id string) (backend.BackendStorage, error)

func (*S3BackendFactory) StorageType

func (factory *S3BackendFactory) StorageType() backend.StorageType

type S3BackendStorage

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

func (*S3BackendStorage) CopyFile

func (s *S3BackendStorage) CopyFile(f *os.File, attributes map[string]string, fn func(progressed int64, percentage float32) error) (key string, size int64, err error)

func (*S3BackendStorage) DeleteFile

func (s *S3BackendStorage) DeleteFile(key string) (err error)

func (*S3BackendStorage) DownloadFile

func (s *S3BackendStorage) DownloadFile(fileName string, key string, fn func(progressed int64, percentage float32) error) (size int64, err error)

func (*S3BackendStorage) NewStorageFile

func (*S3BackendStorage) ToProperties

func (s *S3BackendStorage) ToProperties() map[string]string

type S3BackendStorageFile

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

func (S3BackendStorageFile) Close

func (s3backendStorageFile S3BackendStorageFile) Close() error

func (S3BackendStorageFile) GetStat

func (s3backendStorageFile S3BackendStorageFile) GetStat() (datSize int64, modTime time.Time, err error)

func (S3BackendStorageFile) Name

func (s3backendStorageFile S3BackendStorageFile) Name() string

func (S3BackendStorageFile) ReadAt

func (s3backendStorageFile S3BackendStorageFile) ReadAt(p []byte, off int64) (n int, err error)

func (S3BackendStorageFile) Sync

func (s3backendStorageFile S3BackendStorageFile) Sync() error

func (S3BackendStorageFile) Truncate

func (s3backendStorageFile S3BackendStorageFile) Truncate(off int64) error

func (S3BackendStorageFile) WriteAt

func (s3backendStorageFile S3BackendStorageFile) WriteAt(p []byte, off int64) (n int, err error)

Jump to

Keyboard shortcuts

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