bizs3

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bucket

type Bucket int
const (
	BucketUnspecified Bucket = iota
	BucketDefault
)

type PutObject

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

func (*PutObject) Close

func (p *PutObject) Close() error

func (*PutObject) Write

func (p *PutObject) Write(b []byte) (int, error)

type S3

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

func NewS3

func NewS3(repo S3Repo) *S3

func (*S3) NewPushData

func (s *S3) NewPushData(ctx context.Context, bucket Bucket, objectName string) (*PutObject, error)

type S3Repo

type S3Repo interface {
	PutObject(context.Context, io.Reader, Bucket, string) error
}

Jump to

Keyboard shortcuts

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