s3

package
v1.6.3 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewChunks

func NewChunks(bucket string, prefix string, s3 *s3.S3) core.Chunks

func NewDriver

func NewDriver() core.Driver

func NewListObjectResult

func NewListObjectResult(entries []*s3.Object, hasNext bool) *core.ListObjectResult

Types

type Chunks

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

func (*Chunks) Chunk

func (c *Chunks) Chunk() (*core.ListObjectResult, error)

type Driver

type Driver struct{}

func (Driver) Name

func (d Driver) Name() string

func (*Driver) Storage

func (d *Driver) Storage() (core.Storage, error)

type File

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

func (*File) ETag

func (f *File) ETag() string

func (*File) Key

func (f *File) Key() string

func (*File) LastModified

func (f *File) LastModified() time.Time

func (*File) Size

func (f *File) Size() int64

func (*File) Type

func (f *File) Type() string

type Store

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

func (*Store) Delete

func (s *Store) Delete(key string) error

func (*Store) Exists

func (s *Store) Exists(key string) (bool, error)

func (*Store) Get

func (s *Store) Get(key string) (io.ReadCloser, error)

func (*Store) Iterator

func (s *Store) Iterator(prefix string) core.FileIterator

func (*Store) Put

func (s *Store) Put(key string, r io.Reader) error

func (*Store) PutFromFile

func (s *Store) PutFromFile(key string, localPath string) error

func (*Store) Size

func (s *Store) Size(key string) (int64, error)

Jump to

Keyboard shortcuts

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