s3

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2018 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 S3ObjectStoreDriver

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

func (*S3ObjectStoreDriver) Download

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

func (*S3ObjectStoreDriver) FileExists

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

func (*S3ObjectStoreDriver) FileSize

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

func (*S3ObjectStoreDriver) GetURL

func (s *S3ObjectStoreDriver) GetURL() string

func (*S3ObjectStoreDriver) Kind

func (s *S3ObjectStoreDriver) Kind() string

func (*S3ObjectStoreDriver) List

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

func (*S3ObjectStoreDriver) Read

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

func (*S3ObjectStoreDriver) Remove

func (s *S3ObjectStoreDriver) Remove(names ...string) error

func (*S3ObjectStoreDriver) Upload

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

func (*S3ObjectStoreDriver) Write

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

type S3Service

type S3Service struct {
	Region   string
	Bucket   string
	Endpoint string
}

func (*S3Service) Close

func (s *S3Service) Close()

func (*S3Service) DeleteObjects

func (s *S3Service) DeleteObjects(keys []string) error

func (*S3Service) GetObject

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

func (*S3Service) HeadObject added in v0.5.0

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

func (*S3Service) ListObjects

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

func (*S3Service) New

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

func (*S3Service) PutObject

func (s *S3Service) 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