s3

package
v0.2.25 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2026 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type S3Backend

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

func New

func New(ctx context.Context, tracer trace.Tracer, decryptfn backend.DecryptCredentailFunc, url *url.URL) (*S3Backend, error)

func (*S3Backend) Close

func (self *S3Backend) Close() error

func (*S3Backend) CreateObject

func (self *S3Backend) CreateObject(ctx context.Context, req schema.CreateObjectRequest) (*schema.Object, error)

Create object in the backend

func (*S3Backend) DeleteObjects

func (self *S3Backend) DeleteObjects(context.Context, schema.DeleteObjectsRequest) error

Delete objects in the backend (single object or prefix)

func (*S3Backend) GetObject

func (self *S3Backend) GetObject(ctx context.Context, req schema.GetObjectRequest) (_ *schema.Object, err error)

Get object metadata from the backend

func (*S3Backend) ListObjects

func (self *S3Backend) ListObjects(ctx context.Context, iterator *schema.ObjectListIterator) (err error)

Iterate through the list of objects in the backend, until io.EOF is returned.

func (*S3Backend) Name

func (self *S3Backend) Name() string

func (*S3Backend) ReadObject

func (self *S3Backend) ReadObject(ctx context.Context, req schema.GetObjectRequest) (_ io.ReadCloser, _ *schema.Object, err error)

Read object content from the backend. Caller must close the returned reader.

func (*S3Backend) URL

func (self *S3Backend) URL() *url.URL

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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