s3

package
v1.44.2 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2020 License: Apache-2.0 Imports: 7 Imported by: 12

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DownloadFile

func DownloadFile(bucket, key string, timeout time.Duration, w io.WriterAt, client S3Client) error

DownloadFile downloads a file from s3 and writes it with the writer.

func ParseS3ARN

func ParseS3ARN(s3ARN string) (bucket string, key string, err error)

ParseS3ARN parses an s3 ARN.

Types

type S3Client

type S3Client interface {
	DownloadWithContext(ctx aws.Context, w io.WriterAt, input *s3.GetObjectInput, options ...func(*s3manager.Downloader)) (n int64, err error)
}

S3Client interface wraps the S3 API.

Directories

Path Synopsis
mocks
Package mock_factory is a generated GoMock package.
Package mock_factory is a generated GoMock package.
Package mock_s3 is a generated GoMock package.
Package mock_s3 is a generated GoMock package.

Jump to

Keyboard shortcuts

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