storage

package
v0.0.0-...-f08a623 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2017 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GoogleCloudStorage

type GoogleCloudStorage struct {
	Storage
	Options []option.ClientOption
	// contains filtered or unexported fields
}

func (*GoogleCloudStorage) Delete

func (gcs *GoogleCloudStorage) Delete(ctx context.Context, filename string) error

func (*GoogleCloudStorage) PublicURL

func (gcs *GoogleCloudStorage) PublicURL(filename string) string

func (*GoogleCloudStorage) Setup

func (gcs *GoogleCloudStorage) Setup() error

func (*GoogleCloudStorage) Store

func (gcs *GoogleCloudStorage) Store(ctx context.Context, filename string, data []byte, metadata map[string]string) error

type Storage

type Storage interface {
	Setup() error
	PublicURL(filename string) string
	Store(ctx context.Context, filename string, data []byte, metadata map[string]string) error
	Delete(ctx context.Context, filename string) error
}

Jump to

Keyboard shortcuts

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