Documentation ¶
Index ¶
- Constants
- func MakeOauthTransport(clientId string, clientSecret string, refreshToken string) *oauth.Transport
- type Storage
- func (gs *Storage) EnumerateBlobs(dest chan<- blobref.SizedBlobRef, after string, limit int, wait time.Duration) error
- func (gs *Storage) FetchStreaming(blob *blobref.BlobRef) (io.ReadCloser, int64, error)
- func (gs *Storage) GetBlobHub() blobserver.BlobHub
- func (gs *Storage) ReceiveBlob(blob *blobref.BlobRef, source io.Reader) (blobref.SizedBlobRef, error)
- func (gs *Storage) RemoveBlobs(blobs []*blobref.BlobRef) error
- func (gs *Storage) StatBlobs(dest chan<- blobref.SizedBlobRef, blobs []*blobref.BlobRef, wait time.Duration) error
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 ¶
Types ¶
type Storage ¶
type Storage struct {
// contains filtered or unexported fields
}
func (*Storage) EnumerateBlobs ¶
func (*Storage) FetchStreaming ¶
func (*Storage) GetBlobHub ¶
func (gs *Storage) GetBlobHub() blobserver.BlobHub
func (*Storage) ReceiveBlob ¶
Click to show internal directories.
Click to hide internal directories.