Documentation
¶
Index ¶
- func CreateBucket(projectID string, bucketName string, location string) (*storage.BucketHandle, error)
- func DownloadDirectory(w io.Writer, bucketName string, bucket *storage.BucketHandle, object string, ...) error
- func DownloadFile(w io.Writer, bucketName string, bucket *storage.BucketHandle, object string, ...) error
- func DownloadFileIntoMemory(w io.Writer, bucketName, object string) ([]byte, error)
- func ListFiles(w io.Writer, bucketName string, timeOut time.Duration) error
- func ListFilesWithPrefix(w io.Writer, bucketName, prefix, delim string, timeOut time.Duration) error
- func UploadDirectory(w io.Writer, bucketName string, bucket *storage.BucketHandle, ...) error
- func UploadFile(w io.Writer, bucketName string, bucket *storage.BucketHandle, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateBucket ¶
func CreateBucket(projectID string, bucketName string, location string) (*storage.BucketHandle, error)
createBucket create a new bucket with given name
func DownloadDirectory ¶
func DownloadDirectory(w io.Writer, bucketName string, bucket *storage.BucketHandle, object string, destDirName string) error
downloadFile downloads an object to a file.
func DownloadFile ¶
func DownloadFile(w io.Writer, bucketName string, bucket *storage.BucketHandle, object string, destFileName string) error
downloadFile downloads an object to a file.
func DownloadFileIntoMemory ¶
downloadFileIntoMemory downloads an object.
func ListFilesWithPrefix ¶
func ListFilesWithPrefix(w io.Writer, bucketName, prefix, delim string, timeOut time.Duration) error
listFilesWithPrefix lists objects using prefix and delimeter.
func UploadDirectory ¶
func UploadDirectory(w io.Writer, bucketName string, bucket *storage.BucketHandle, fromDirName string, object string) error
uploadFile uploads an object.
func UploadFile ¶
func UploadFile(w io.Writer, bucketName string, bucket *storage.BucketHandle, fromFileName string, object string) error
uploadFile uploads an object.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.