google

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2015 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package google implements an indexpack VFS backed by Google cloud storage.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StorageFS

type StorageFS struct{ Bucket string }

StorageFS implements a VFS backed by a bucket in Google Cloud Storage

func (StorageFS) Create

func (s StorageFS) Create(ctx context.Context, path string) (io.WriteCloser, error)

Create implements part of the VFS interface.

func (StorageFS) Glob

func (s StorageFS) Glob(ctx context.Context, glob string) ([]string, error)

Glob implements part of the VFS interface.

func (StorageFS) MkdirAll

func (StorageFS) MkdirAll(_ context.Context, path string, mode os.FileMode) error

MkdirAll implements part of the VFS interface.

func (StorageFS) Open

func (s StorageFS) Open(ctx context.Context, path string) (io.ReadCloser, error)

Open implements part of the VFS interface.

func (StorageFS) Remove

func (s StorageFS) Remove(ctx context.Context, path string) error

Remove implements part of the VFS interface.

func (StorageFS) Rename

func (s StorageFS) Rename(ctx context.Context, oldPath, newPath string) error

Rename implements part of the VFS interface.

func (StorageFS) Stat

func (s StorageFS) Stat(ctx context.Context, path string) (os.FileInfo, error)

Stat implements part of the VFS interface.

Jump to

Keyboard shortcuts

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