Documentation
¶
Index ¶
- func Close() error
- func DeleteObject(objectName string) error
- func GetBucket() *storage.BucketHandle
- func GetBucketName() string
- func GetClient() *storage.Client
- func ListObjects(prefix string) ([]string, error)
- func ObjectExists(objectName string) (bool, error)
- func ReadObject(objectName string) ([]byte, error)
- func ReadObjectAsReader(objectName string) (io.ReadCloser, error)
- func Setup() error
- func WriteObject(objectName string, data []byte, contentType string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteObject ¶
DeleteObject deletes an object from GCS bucket
func ListObjects ¶
ListObjects lists objects in the bucket with the given prefix
func ObjectExists ¶
ObjectExists checks if an object exists in the bucket
func ReadObject ¶
ReadObject reads an object from GCS bucket
func ReadObjectAsReader ¶
func ReadObjectAsReader(objectName string) (io.ReadCloser, error)
ReadObjectAsReader returns a reader for an object from GCS bucket
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.