s3

package
v0.0.0-...-9ccd85a Latest Latest
Warning

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

Go to latest
Published: May 14, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileIO

type FileIO struct {
	Path string
}

func (*FileIO) Pull

func (fio *FileIO) Pull(ctx context.Context) (io.ReadCloser, error)

func (*FileIO) Push

func (fio *FileIO) Push(ctx context.Context, r io.Reader) error

type Puller

type Puller interface {
	Pull(ctx context.Context) (io.ReadCloser, error)
}

type Pusher

type Pusher interface {
	Push(ctx context.Context, r io.Reader) error
}

type S3IO

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

func NewS3IO

func NewS3IO(bucket, item string) (*S3IO, error)

func (*S3IO) Pull

func (s3io *S3IO) Pull(ctx context.Context) (io.ReadCloser, error)

func (*S3IO) Push

func (s3io *S3IO) Push(ctx context.Context, r io.Reader) error

Jump to

Keyboard shortcuts

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