io

package
v0.0.402 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsNotExist

func IsNotExist(err error) bool

IsNotExist will return true if the error is because the object does not exist.

func LogClose

func LogClose(c io.Closer)

LogClose will attempt a close an log any error

Types

type Opener

type Opener interface {
	Reader(ctx context.Context, path string) (ReadCloser, error)
	Writer(ctx context.Context, path string) (WriteCloser, error)
}

Opener has methods to read and write paths

func NewOpener

func NewOpener(ctx context.Context, creds string) (Opener, error)

NewOpener returns an opener that can read GCS and local paths.

type Path

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

Path parses gs://bucket/obj urls

type ReadCloser

type ReadCloser = io.ReadCloser

ReadCloser thingy

type WriteCloser

type WriteCloser = io.WriteCloser

WriteCloser thingy

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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