s3

package
v0.35.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(*Store)

func WithCredentialsFile

func WithCredentialsFile(path, profile string) Option

func WithLogger

func WithLogger(logger *zap.Logger) Option

func WithTokenFile

func WithTokenFile(roleARN, path string) Option

type Store

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

func NewStore

func NewStore(ctx context.Context, region, bucket string, opts ...Option) (*Store, error)

func (*Store) Close

func (s *Store) Close() error

func (*Store) Delete

func (s *Store) Delete(ctx context.Context, path string) error

func (*Store) Get

func (s *Store) Get(ctx context.Context, path string) ([]byte, error)

func (*Store) GetReader

func (s *Store) GetReader(ctx context.Context, path string) (io.ReadCloser, error)

func (*Store) List

func (s *Store) List(ctx context.Context, prefix string) ([]filestore.ObjectAttrs, error)

func (*Store) Put

func (s *Store) Put(ctx context.Context, path string, content []byte) error

Jump to

Keyboard shortcuts

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