Documentation ¶
Overview ¶
Package google contains the implementation for managing storage with Google Cloud Storage
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { // ProjectID is the project's ID s available in Google Cloud ProjectID string }
Config is a structure containing configuration for google cloud storage
type GoogleStorageClient ¶
type GoogleStorageClient struct {
// contains filtered or unexported fields
}
GoogleStorageClient is a structure for handling google cloud storage
func (*GoogleStorageClient) BucketExists ¶
BucketExists checks if a bucket exists
func (*GoogleStorageClient) CreateBucket ¶
func (sc *GoogleStorageClient) CreateBucket(ctx context.Context, bucketName string) error
CreateBucket creates a bucket
func (*GoogleStorageClient) Upload ¶
func (sc *GoogleStorageClient) Upload(ctx context.Context, item storage.StorageItem) (string, error)
Upload uploads a new storage item and returns the URL to the stored item
Click to show internal directories.
Click to hide internal directories.