s3

package
v0.0.0-...-0f29083 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	KIND = "s3"
)

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) 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(names ...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
}

func (*Service) Close

func (s *Service) Close()

func (*Service) DeleteObjects

func (s *Service) DeleteObjects(keys []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