s3

package
v1.0.10 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2022 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type File

type File struct {
	Key    string
	Bucket string
	Client client.ConfigProvider

	// These are the results of a save.
	// Must be drained if reused.
	Result    chan *s3manager.UploadOutput
	ResultErr chan error
}

func New

func New(key, bucket string, c client.ConfigProvider) *File

func (*File) Load

func (f *File) Load(ctx context.Context) (io.ReadCloser, error)

func (*File) Save

func (f *File) Save(ctx context.Context) (io.WriteCloser, error)

Jump to

Keyboard shortcuts

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