driver

package
v0.0.0-...-6e81732 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2014 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bucket

type Bucket interface {
	Create(name string) (File, error)
	Open(name string) (File, error)
	Delete(path string) error

	URL(path string) (*url.URL, error)
	SignedURL(path string, expires time.Time) (*url.URL, error)
}

type Driver

type Driver interface {
	Open(source string) (Bucket, error)
}

type File

type File interface {
	Name() string
	Close() error
	Read(b []byte) (n int, err error)
	Readdir(n int) (fi []os.FileInfo, err error)
	Stat() (fi os.FileInfo, err error)
	Write(b []byte) (n int, err error)
}

Jump to

Keyboard shortcuts

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