storage

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2017 License: MIT Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GCSGateway

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

GCSGateway implements the Gateway interface for interacting with Google Cloud Storage.

func (*GCSGateway) Store

func (g *GCSGateway) Store(ctx context.Context, filename string, reader io.Reader) error

Store attempts to write a file via the Gateway.

type Gateway

type Gateway interface {
	Store(ctx context.Context, filename string, in io.Reader) error
}

Gateway provides an interface for interacting with some kind of storage system. This could be filesystem-based, in-memory, in some remote storage bucket, etc.

func NewGCSGateway

func NewGCSGateway(client gcs.Client, bucket string) Gateway

NewGCSGateway creates a new Gateway instance, using GCSGateway.

Directories

Path Synopsis
Package gcs provides interfaces and wraps calls for interacting with Google Cloud Storage.
Package gcs provides interfaces and wraps calls for interacting with Google Cloud Storage.

Jump to

Keyboard shortcuts

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