gcs

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultCacheControl = ""
)

Variables

This section is empty.

Functions

This section is empty.

Types

type GCS

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

func New

func New(bucketName, credentialJSONFilePath string, httpClient *http.Client) (g *GCS, err error)

func (*GCS) Delete

func (g *GCS) Delete(ctx context.Context, name string) (err error)

func (*GCS) Exists

func (g *GCS) Exists(ctx context.Context, name string) (exists bool, err error)

func (*GCS) SaveAs

func (g *GCS) SaveAs(ctx context.Context, name string, r io.Reader) (written int64, err error)

Jump to

Keyboard shortcuts

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