csclient

package
v0.0.0-...-f0891e6 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2022 License: GPL-2.0 Imports: 10 Imported by: 0

Documentation

Index

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

func DownloadFileIntoMemory(w io.Writer, bucketName, object string) ([]byte, error)

downloadFileIntoMemory downloads an object.

func ListFiles

func ListFiles(w io.Writer, bucketName string, timeOut time.Duration) error

listFiles lists objects within specified bucket.

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.

Jump to

Keyboard shortcuts

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