aws

package
v0.0.0-...-f17ef4b Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2017 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteFile

func DeleteFile(bucket, path, region string) error

DeleteFile deletes a file from S3

func DeleteVersionedBucket

func DeleteVersionedBucket(name, region string) error

DeleteVersionedBucket deletes and empties a versioned bucket

func EnsureBucketExists

func EnsureBucketExists(name, region string) error

EnsureBucketExists checks if the named bucket exists and creates it if it doesn't

func EnsureFileExists

func EnsureFileExists(bucket, path, region string, defaultContents []byte) ([]byte, bool, error)

EnsureFileExists checks for the named file in S3 and creates it if it doesn't Second argument is true if new file was created

func FindLongestMatchingHostedZone

func FindLongestMatchingHostedZone(subdomain string) (string, string, error)

FindLongestMatchingHostedZone finds the longest hosted zone that matches the given subdomain

func HasFile

func HasFile(bucket, path, region string) (bool, error)

HasFile returns true if the specified S3 object exists

func LoadFile

func LoadFile(bucket, path, region string) ([]byte, error)

LoadFile loads a file from S3

func WriteFile

func WriteFile(bucket, path, region string, contents []byte) error

WriteFile writes the specified S3 object

Types

This section is empty.

Jump to

Keyboard shortcuts

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