Documentation ¶
Index ¶
- func DeleteGCSObject(ctx context.Context, gcsClient *storage.Client, inputURL string) error
- func DownloadGCSObject(ctx context.Context, gcsClient *storage.Client, ...) error
- func DownloadGCSObjectFromURL(ctx context.Context, gcsClient *storage.Client, ...) error
- func DownloadGCSObjectString(ctx context.Context, gcsClient *storage.Client, inputURL string) (string, error)
- func GCSObjectExists(ctx context.Context, gcsClient *storage.Client, gcsBucket, objectName string) (bool, error)
- func GCSObjectExistsFromURL(ctx context.Context, gcsClient *storage.Client, inputURL string) (bool, error)
- func ListGCSBucket(ctx context.Context, gcsClient *storage.Client, gcsBucket, prefix string) ([]string, error)
- func UploadGCSObject(ctx context.Context, gcsClient *storage.Client, ...) error
- func UploadGCSObjectString(ctx context.Context, gcsClient *storage.Client, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteGCSObject ¶
DeleteGCSObject deletes an object at the input URL
func DownloadGCSObject ¶
func DownloadGCSObject(ctx context.Context, gcsClient *storage.Client, gcsBucket, objectName, destinationPath string) error
DownloadGCSObject downloads the object at bucket, objectName and saves it at destinationPath
func DownloadGCSObjectFromURL ¶
func DownloadGCSObjectFromURL(ctx context.Context, gcsClient *storage.Client, inputURL, destinationPath string) error
DownloadGCSObjectFromURL downloads the object at inputURL and saves it at destinationPath
func DownloadGCSObjectString ¶
func DownloadGCSObjectString(ctx context.Context, gcsClient *storage.Client, inputURL string) (string, error)
DownloadGCSObjectString downloads the object at inputURL and saves the contents of the object file to a string
func GCSObjectExists ¶
func GCSObjectExists(ctx context.Context, gcsClient *storage.Client, gcsBucket, objectName string) (bool, error)
GCSObjectExists checks if an object with objectName exists at gcsBucket objectName.
func GCSObjectExistsFromURL ¶
func GCSObjectExistsFromURL(ctx context.Context, gcsClient *storage.Client, inputURL string) (bool, error)
GCSObjectExistsFromURL checks if an object exists at inputURL
func ListGCSBucket ¶
func ListGCSBucket(ctx context.Context, gcsClient *storage.Client, gcsBucket, prefix string) ([]string, error)
ListGCSBucket lists all the objectNames in gcsBucket with prefix.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.