blob

package
v0.0.0-...-4c74423 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2023 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PutRequest

type PutRequest struct {
	Key           string
	Body          io.Reader
	ContentLength int64
	ContentType   string
	Metadata      map[string]string
}

type S3

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

func New

func New(ctx context.Context, bucket string) (*S3, error)

func (*S3) Get

func (c *S3) Get(ctx context.Context, path string) (*s3.GetObjectOutput, error)

func (*S3) Put

func (c *S3) Put(ctx context.Context, req PutRequest) error

Jump to

Keyboard shortcuts

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