gcs

package
v0.0.0-...-1b2fc92 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2017 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GCS

type GCS struct {
	rw.Prefixed

	Bucket            string `json:"bucket"`
	ServiceAccountKey string `json:"key"`
	// contains filtered or unexported fields
}

GCS defines a Google Cloud Storage connection to a bucket.

func (*GCS) Delete

func (rw *GCS) Delete(id string) error

Delete an Google Cloud Storage object

func (*GCS) NewReader

func (rw *GCS) NewReader(id string) (io.ReadCloser, error)

NewReader returns a Google Cloud Storage Reader

func (*GCS) NewWriter

func (rw *GCS) NewWriter(id string) (io.WriteCloser, error)

NewWriter returns a Google Cloud Storage Writer

func (*GCS) Start

func (rw *GCS) Start() error

Start the GCS.

Jump to

Keyboard shortcuts

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