Documentation ¶
Index ¶
- func CopyOneFile(sourceBucket string, destBucket string, fileName string) bool
- func CreateBucket(projectID string, bucketName string) bool
- func DeleteBucket(bucketName string) bool
- func DeleteFiles(bucketName string, prefixFileName string) bool
- func GetFileNamesFromBucket(bucketName string) []string
- func SyncTwoBuckets(sourceBucket string, destBucket string, prefixFileName string) bool
- func UploadFile(bucketName string, fileName string) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CopyOneFile ¶
Copy one file from one bucket to another bucket. Return true if succeed. ("cp")
func CreateBucket ¶
Create a new bucket. Return true if it already exsits or is created successfully.
func DeleteBucket ¶
Delete the bucket if it is empty. ("rmdir")
func DeleteFiles ¶
Delete all files with specified prefix from bucket. ("rm")
func GetFileNamesFromBucket ¶
Given the bucket name, return array of file names in that bucket. ("ls")
func SyncTwoBuckets ¶
Copy all files with PrefixFileName from SourceBucke to DestBucket if there is no one yet. Return true if succeed.
func UploadFile ¶
Upload one file from local path to bucket. ("cp")
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.