s3

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: Apache-2.0 Imports: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

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

func Handle

func Handle(ctx context.Context, opts ...S3Option) (*Handler, error)

Handle creates a KeyReaderAt suitable for constructing an Adapter that accesses objects on Amazon S3

func (*Handler) ReadAt

func (h *Handler) ReadAt(key string, p []byte, off int64) (int, int64, error)

func (*Handler) StreamAt

func (h *Handler) StreamAt(key string, off int64, n int64) (io.ReadCloser, int64, error)

type S3Option

type S3Option func(o *Handler)

S3Option is an option that can be passed to RegisterHandler

func S3Client

func S3Client(cl *s3.Client) S3Option

S3Client sets the s3.Client that will be used by the handler

func S3RequestPayer

func S3RequestPayer() S3Option

S3RequestPayer bills the requester for the request

Jump to

Keyboard shortcuts

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