bucket

package
v0.82.1 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(bucket string, sess *session.Session) error

Create - create s3 bucket

func Exists

func Exists(bucket string, sess *session.Session) (bool, error)

Exists - checks if bucket exists - if err, then its assumed that the bucket does not exist.

func S3Read

func S3Read(URL string, sess *session.Session) (string, error)

S3Read - Reads the content of a given s3 url endpoint and returns the content string.

func S3write

func S3write(bucket string, key string, body io.Reader, sess *session.Session) (string, error)

S3write - Writes a file to s3 and returns the presigned url

Types

This section is empty.

Jump to

Keyboard shortcuts

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