gcs

package
v0.0.0-...-5a13c2a Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2020 License: BSD-3-Clause Imports: 15 Imported by: 0

Documentation

Overview

Package gcs implements a storage backend that saves data to Google Cloud Storage.

Index

Constants

View Source
const (
	// PublicRead means project team owners get owner access and all users get reader access.
	PublicRead = "publicRead"
	// Private means project team owners get owner access.
	Private = "private"
	// ProjectPrivate means project team members get access according to their roles.
	ProjectPrivate = "projectPrivate"
	// BucketOwnerFullCtrl means the object owner gets owner access and project team owners get owner access.
	BucketOwnerFullCtrl = "bucketOwnerFullControl"
)

These constants define ACLs for writing data to Google Cloud Store. Definitions according to https://github.com/google/google-api-go-client/blob/master/storage/v1/storage-gen.go:

"publicReadWrite" - Project team owners get OWNER access, and
    allUsers get WRITER access.

Variables

This section is empty.

Functions

func New

func New(opts *storage.Opts) (storage.Storage, error)

New initializes a Storage implementation that stores data to Google Cloud Storage.

Types

This section is empty.

Jump to

Keyboard shortcuts

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