gcs

package
v0.1.17 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2020 License: Apache-2.0 Imports: 4 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Exists

func Exists(ctx context.Context, bucketname string, filename string) (bool, error)

Types

type RWHandle

type RWHandle struct {
	Writer *storage.Writer
	Client *storage.Client
}

func OpenRW

func OpenRW(ctx context.Context, bucketname string, filename string, contentType string) (*RWHandle, error)

func (*RWHandle) Close

func (h *RWHandle) Close() error

IMPORTANT - if you don't call this (and see it return nil), your data is likely lost

func (*RWHandle) IOWriter

func (h *RWHandle) IOWriter() io.Writer

Jump to

Keyboard shortcuts

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