bucketstore

package
v0.0.0-...-8bcbc91 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2024 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BucketStore

type BucketStore struct {
	Bucket *s3.Bucket
}

func New

func New(cfg s3.Config) (*BucketStore, error)

func (*BucketStore) Close

func (b *BucketStore) Close()

func (*BucketStore) Get

func (b *BucketStore) Get(ctx context.Context, name string) (io.ReadCloser, error)

func (*BucketStore) IsAccessDeniedErr

func (b *BucketStore) IsAccessDeniedErr(err error) bool

func (*BucketStore) IsObjNotFoundErr

func (b *BucketStore) IsObjNotFoundErr(err error) bool

func (*BucketStore) Ping

func (b *BucketStore) Ping(ctx context.Context) error

func (*BucketStore) Upload

func (b *BucketStore) Upload(ctx context.Context, name string, r io.Reader) error

Upload writes data to a named object in the store.

Jump to

Keyboard shortcuts

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