Documentation ¶
Index ¶
- func DeleteFile(bucket, path, region string) error
- func DeleteVersionedBucket(name, region string) error
- func EnsureBucketExists(name, region string) error
- func EnsureFileExists(bucket, path, region string, defaultContents []byte) ([]byte, bool, error)
- func FindLongestMatchingHostedZone(subdomain string) (string, string, error)
- func HasFile(bucket, path, region string) (bool, error)
- func LoadFile(bucket, path, region string) ([]byte, error)
- func WriteFile(bucket, path, region string, contents []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteFile ¶
DeleteFile deletes a file from S3
func DeleteVersionedBucket ¶
DeleteVersionedBucket deletes and empties a versioned bucket
func EnsureBucketExists ¶
EnsureBucketExists checks if the named bucket exists and creates it if it doesn't
func EnsureFileExists ¶
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 ¶
FindLongestMatchingHostedZone finds the longest hosted zone that matches the given subdomain
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.