s3

package
v0.0.0-...-3a87ee0 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2024 License: Apache-2.0 Imports: 17 Imported by: 9

Documentation

Index

Constants

View Source
const (
	KIND = "s3"
)
View Source
const (
	VirtualHostedStyle = "VIRTUAL_HOSTED_STYLE"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type BackupStoreDriver

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

func (*BackupStoreDriver) Download

func (s *BackupStoreDriver) Download(src, dst string) error

func (*BackupStoreDriver) FileExists

func (s *BackupStoreDriver) FileExists(filePath string) bool

func (*BackupStoreDriver) FileSize

func (s *BackupStoreDriver) FileSize(filePath string) int64

func (*BackupStoreDriver) FileTime

func (s *BackupStoreDriver) FileTime(filePath string) time.Time

func (*BackupStoreDriver) GetURL

func (s *BackupStoreDriver) GetURL() string

func (*BackupStoreDriver) Kind

func (s *BackupStoreDriver) Kind() string

func (*BackupStoreDriver) List

func (s *BackupStoreDriver) List(listPath string) ([]string, error)

func (*BackupStoreDriver) Read

func (s *BackupStoreDriver) Read(src string) (io.ReadCloser, error)

func (*BackupStoreDriver) Remove

func (s *BackupStoreDriver) Remove(path string) error

func (*BackupStoreDriver) Upload

func (s *BackupStoreDriver) Upload(src, dst string) error

func (*BackupStoreDriver) Write

func (s *BackupStoreDriver) Write(dst string, rs io.ReadSeeker) error

type Service

type Service struct {
	Region string
	Bucket string
	Client *http.Client
}

func (*Service) Close

func (s *Service) Close()

func (*Service) DeleteObjects

func (s *Service) DeleteObjects(key string) error

func (*Service) GetObject

func (s *Service) GetObject(key string) (io.ReadCloser, error)

func (*Service) HeadObject

func (s *Service) HeadObject(key string) (*s3.HeadObjectOutput, error)

func (*Service) ListObjects

func (s *Service) ListObjects(key, delimiter string) ([]*s3.Object, []*s3.CommonPrefix, error)

func (*Service) New

func (s *Service) New() (*s3.S3, error)

func (*Service) PutObject

func (s *Service) PutObject(key string, reader io.ReadSeeker) error

Jump to

Keyboard shortcuts

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