Documentation ¶
Index ¶
- func Copy(srcBucketName, srcObjectName, dstBucketName, dstObjectName string) error
- func DeleteObjectWithPrefix(bucketName, prefix string) error
- func GetAllObjectNamesWithPrefix(bucketName, prefix string) ([]string, error)
- func GetAllPrefixesUnderBucketWithPrefix(bucketName, prefix string) ([]string, error)
- func HTTPGet(url string) ([]byte, error)
- func NameFromUniquified(uniquified string) (string, error)
- func Read(bucketName, objectName string) ([]byte, error)
- func StrSliceRemove(in []string, i int) []string
- func ToCompoundName(delim string, tags ...string) string
- func ToTags(delim, compoundName string) []string
- func Uniquify(name string) (string, error)
- func WriteToBucket(bucketName string, objectPrefix string, objectName string, data []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteObjectWithPrefix ¶
DeleteObjectWithPrefix deletes any object in the specified bucket that starts with the specified prefix.
func GetAllObjectNamesWithPrefix ¶
GetAllObjectNamesWithPrefix returns all object start with specified prefix under the specified bucket. If no prefix is supplied, it returns all objects under that bucket.
func GetAllPrefixesUnderBucketWithPrefix ¶
GetAllPrefixesUnderBucketWithPrefix returns all the prefixes (sub-folders at the bottom most layer) within the specified bucket.
func NameFromUniquified ¶
NameFromUniquified extracts the original name from the uniquified string
func StrSliceRemove ¶
StrSliceRemove removes an element from a string slice at the specified index
func ToCompoundName ¶
ToCompoundName accepts list of tags and returns a compound name. It ignores any empty tag (i.e.: empty string) If the final element only contains one string, then that string is returned as the compound name
func WriteToBucket ¶
WriteToBucket writes the specified content to the specified bucket.
- bucketName: Name of the bucket this fn writes to
- objectPrefix: Prefix of the file. EX: folder1
- objectName: Name for the file that this fn creates for writing out data.
- data: Content of the file.
Types ¶
This section is empty.