s3

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MaxParts = 10_000
)

Variables

This section is empty.

Functions

This section is empty.

Types

type MultipartUpload

type MultipartUpload struct {
	Upload        *s3.CreateMultipartUploadOutput
	Parts         []types.CompletedPart
	Buffer        []byte
	TotalDataSent int
}

type Plugin

type Plugin struct {
	S3Client        *s3.Client
	Region          string
	Bucket          string
	InputPacketLen  int
	TotalFileSize   uint64
	UploadChunkSize uint64
	UploadTimeout   time.Duration
	CannedACL       string
}

func NewPlugin

func NewPlugin(ctx context.Context, config *config.Config) (*Plugin, error)

func (*Plugin) Start

func (p *Plugin) Start(ctx context.Context) chan<- string

Start returns a write-only channel to which packet chunks should be written should they wish to be streamed to S3. It is the responsibility of the caller to close the returned channel.

Jump to

Keyboard shortcuts

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