gcs

package
v0.1.25 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2022 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 {
	Reader *storage.Reader
	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) IOReader added in v0.1.24

func (h *RWHandle) IOReader() io.Reader

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