aws

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSession

func NewSession() (*aws_session.Session, error)

func S3Download

func S3Download(session *aws_session.Session, bucket, key string) ([]byte, error)

func S3GetLatestKey

func S3GetLatestKey(session *aws_session.Session, bucket string, prefix string) (*string, error)

func S3Upload

func S3Upload(session *aws_session.Session, bucket, key string, data []byte) error

Types

type S3BlobStorage

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

func NewS3BlobStorage

func NewS3BlobStorage(bucket string) (*S3BlobStorage, error)

func (*S3BlobStorage) Get

func (bs *S3BlobStorage) Get(key string) ([]byte, error)

func (*S3BlobStorage) GetLatestKey

func (bs *S3BlobStorage) GetLatestKey(prefix string) (*string, error)

func (*S3BlobStorage) Put

func (bs *S3BlobStorage) Put(key string, data []byte) error

Jump to

Keyboard shortcuts

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