s3

package
v1.11.1 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type S3

type S3 struct {
	*muxfys.S3Accessor
}

S3 lets you upload data to S3 and retrieve it.

func New

func New(bucketPath string) (*S3, error)

New returns an S3 that gets your S3 credentials from ~/.s3cfg. The bucketPath will be checked for accessibility. Only the first "directory" of the path, actual bucket name, will be checked and stored as a root for the other method paths.

func (*S3) OpenFile

func (s *S3) OpenFile(source string) (io.ReadCloser, error)

OpenFile lets you stream the given S3 bucket/source object.

func (*S3) RemoveFile added in v1.3.0

func (s *S3) RemoveFile(path string) error

func (*S3) UploadData

func (s *S3) UploadData(data io.Reader, dest string) error

UploadData uploads the given data to bucket/dest.

Jump to

Keyboard shortcuts

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