gcs

package
v0.0.0-...-212369e Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2024 License: Apache-2.0 Imports: 26 Imported by: 0

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

Types

type Wrapper

type Wrapper struct {
	// contains filtered or unexported fields
}

Wrapper wraps `driver` with a throttler, ensuring that no more than N GCS actions can occur concurrently. The default limit is 75.

Jump to

Keyboard shortcuts

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