google

package
v0.0.0-...-10d000d Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	Scope       = "https://www.googleapis.com/auth/devstorage.read_write"
	AuthURL     = "https://accounts.google.com/o/oauth2/auth"
	TokenURL    = "https://accounts.google.com/o/oauth2/token"
	RedirectURL = "urn:ietf:wg:oauth:2.0:oob"
)

Variables

This section is empty.

Functions

func MakeOauthTransport

func MakeOauthTransport(clientId string, clientSecret string, refreshToken string) *oauth.Transport

Types

type Storage

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

func (*Storage) EnumerateBlobs

func (gs *Storage) EnumerateBlobs(dest chan<- blobref.SizedBlobRef, after string, limit int, wait time.Duration) error

func (*Storage) FetchStreaming

func (gs *Storage) FetchStreaming(blob *blobref.BlobRef) (io.ReadCloser, int64, error)

func (*Storage) GetBlobHub

func (gs *Storage) GetBlobHub() blobserver.BlobHub

func (*Storage) ReceiveBlob

func (gs *Storage) ReceiveBlob(blob *blobref.BlobRef, source io.Reader) (blobref.SizedBlobRef, error)

func (*Storage) RemoveBlobs

func (gs *Storage) RemoveBlobs(blobs []*blobref.BlobRef) error

func (*Storage) StatBlobs

func (gs *Storage) StatBlobs(dest chan<- blobref.SizedBlobRef, blobs []*blobref.BlobRef, wait time.Duration) error

Jump to

Keyboard shortcuts

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