Documentation ¶
Overview ¶
Package gcs implements the Google Cloud Storage driver backend.
Package gcs provides a storagedriver.StorageDriver implementation to store blobs in Google cloud storage.
This package leverages the google.golang.org/cloud/storage client library for interfacing with gcs.
Because gcs is a key, value store the Stat call does not support last modification time for directories (directories are an abstraction for key, value stores)
Note that the contents of incomplete uploads are not accessible even though Stat returns their length
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FromParameters ¶
func FromParameters(ctx context.Context, parameters map[string]interface{}) (storagedriver.StorageDriver, error)
FromParameters constructs a new Driver with a given parameters map Required parameters: - bucket
func New ¶
func New(ctx context.Context, params driverParameters) (storagedriver.StorageDriver, error)
New constructs a new driver