s3io

package module
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2023 License: MIT Imports: 13 Imported by: 0

README

AWS S3 Go io Interfaces

Implements io interfaces for AWS S3 objects in Go.

Work in progress, please dont use as I might squash git commits when done.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create added in v0.1.0

func Create(
	bucket, key string,
	opts ...WriteOption,
) (*s3Writer, error)

func CreateWithOptions added in v0.1.0

func CreateWithOptions(
	o WriteOptions,
	opts ...WriteOption,
) (*s3Writer, error)

func CreateWithURI added in v0.1.0

func CreateWithURI(URI string, opts ...WriteOption) (*s3Writer, error)

func Open added in v0.1.0

func Open(
	bucket, key string,
	opts ...ReadOption,
) (*s3Reader, error)

func OpenWithOptions added in v0.1.0

func OpenWithOptions(
	o ReadOptions,
	opts ...ReadOption,
) (*s3Reader, error)

func OpenWithURI added in v0.1.0

func OpenWithURI(
	URI string,
	opts ...ReadOption,
) (*s3Reader, error)

func Remove added in v0.1.0

func Remove(
	bucket, key string,
	opts ...DeleteOption,
) error

func RemoveWithOptions added in v0.1.0

func RemoveWithOptions(
	o DeleteOptions,
	opts ...DeleteOption,
) error

func RemoveWithURI added in v0.1.0

func RemoveWithURI(URI string, opts ...DeleteOption) error

func Stat added in v0.1.0

func Stat(
	bucket, key string,
	opts ...StatOption,
) (*fileInfo, error)

func StatWithOptions added in v0.1.0

func StatWithOptions(
	o StatOptions,
	opts ...StatOption,
) (*fileInfo, error)

func StatWithURI added in v0.1.0

func StatWithURI(
	URI string,
	opts ...StatOption,
) (*fileInfo, error)

func WithBuffer added in v0.1.0

func WithBuffer(buf []byte) *withBuffer

func WithClient added in v0.1.0

func WithClient(client *s3.Client) *withClient

func WithContext added in v0.1.0

func WithContext(ctx context.Context) *withContext

func WithDownloader added in v0.1.0

func WithDownloader(downloader *manager.Downloader) *withDownloader

func WithUploader added in v0.1.0

func WithUploader(uploader *manager.Uploader) *withUploader

Types

type DeleteOption added in v0.1.0

type DeleteOption interface {
	ApplyDeleteOption(*DeleteOptions)
}

type DeleteOptions added in v0.1.0

type DeleteOptions struct {
	s3.DeleteObjectInput
	// contains filtered or unexported fields
}

type ReadOption added in v0.1.0

type ReadOption interface {
	ApplyReadOption(*ReadOptions)
}

type ReadOptions added in v0.1.0

type ReadOptions struct {
	s3.GetObjectInput
	// contains filtered or unexported fields
}

type StatOption added in v0.1.0

type StatOption interface {
	ApplyStatOption(*StatOptions)
}

type StatOptions added in v0.1.0

type StatOptions struct {
	s3.HeadObjectInput
	// contains filtered or unexported fields
}

type WriteOption added in v0.1.0

type WriteOption interface {
	ApplyWriteOption(*WriteOptions)
}

type WriteOptions added in v0.1.0

type WriteOptions struct {
	s3.PutObjectInput
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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