s3

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2023 License: MIT Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bucket

type Bucket struct {
	Client *s3.Client
	// contains filtered or unexported fields
}

func NewBucket

func NewBucket(opts NewBucketOptions) *Bucket

func (*Bucket) Delete

func (b *Bucket) Delete(ctx context.Context, key string) error

Delete an object under key. Deleting where nothing exists does nothing and returns no error.

func (*Bucket) Get

func (b *Bucket) Get(ctx context.Context, key string) (io.ReadCloser, error)

Get an object under key. If there is nothing there, returns nil and no error.

func (*Bucket) Put

func (b *Bucket) Put(ctx context.Context, key, contentType string, body io.ReadSeeker) error

Put an object under key with the given contentType.

type NewBucketOptions

type NewBucketOptions struct {
	Config    aws.Config
	Name      string
	PathStyle bool
}

Jump to

Keyboard shortcuts

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