s3

package
v1.0.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseS3Uri

func ParseS3Uri(uri string) (bucket string, key string, err error)

Types

type FakeS3Ops

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

func NewFakeS3Ops

func NewFakeS3Ops(downloadData []byte, storePath string, err error) *FakeS3Ops

func (*FakeS3Ops) Download

func (f *FakeS3Ops) Download(string, string, string) (*string, error)

func (*FakeS3Ops) DownloadUrl

func (f *FakeS3Ops) DownloadUrl(string, string) (*string, error)

func (*FakeS3Ops) Upload

func (f *FakeS3Ops) Upload(_ string, _ string, _ string) error

type S3DownloadOps

type S3DownloadOps interface {
	Download(bucket string, key string, dstDir string) (*string, error)
	DownloadUrl(url string, dstDir string) (*string, error)
}

type S3Manager

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

func NewS3Manager

func NewS3Manager(region string) *S3Manager

func (*S3Manager) Download

func (s *S3Manager) Download(bucket string, key string, dir string) (*string, error)

func (*S3Manager) DownloadUrl

func (s *S3Manager) DownloadUrl(s3url, dir string) (*string, error)

func (*S3Manager) Upload

func (s *S3Manager) Upload(bucket string, key string, filename string) error

type S3Ops

type S3Ops interface {
	S3UploadOps
	S3DownloadOps
}

type S3UploadOps

type S3UploadOps interface {
	Upload(bucket string, key string, filename string) error
}

Jump to

Keyboard shortcuts

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