s3

package
v1.8.2-alpha1 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BucketKeyPrefix = ""
View Source
var BucketName = ""

Functions

func BucketExists

func BucketExists(bucketName string) (bool, error)

BucketExists checks whether the named bucket exists

func BucketHasContents added in v1.4.0

func BucketHasContents(bucketName string) (bool, error)

Returns true if the bucket is not empty

func CreateBucket

func CreateBucket(bucketName string) error

CreateBucket creates a new S3 bucket

func DeleteObject added in v1.7.0

func DeleteObject(bucketName string, key string) error

DeleteObject deletes an object from a bucket

func GetObject added in v1.7.0

func GetObject(bucketName string, key string) ([]byte, error)

GetObject gets an object by key from an S3 bucket

func PutObject added in v1.7.0

func PutObject(bucketName string, key string, body []byte) error

PutObject puts an object into a bucket

func RainBucket

func RainBucket(forceCreation bool) string

RainBucket returns the name of the rain deployment bucket in the current region and asks the user if they wish it to be created if it does not exist unless forceCreation is true, then it will not ask

func Upload

func Upload(bucketName string, content []byte) (string, error)

Upload an artefact to the bucket with a unique name

Types

This section is empty.

Jump to

Keyboard shortcuts

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