drive

package
v0.0.0-...-dec4d7b Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2014 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package drive registers the "googledrive" blobserver storage type, storing blobs in a Google Drive folder.

Example low-level config:

"/storage-googledrive/": {
  "handler": "storage-googledrive",
  "handlerArgs": map[string]interface{}{
    "parent_id": parentId,
    "auth": map[string]interface{}{
      "client_id":     clientId,
      "client_secret": clientSecret,
      "refresh_token": refreshToken,
    },
  },
},

Index

Constants

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

Variables

This section is empty.

Functions

func MakeOauthTransport

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

Types

This section is empty.

Directories

Path Synopsis
DriveService translates blobserver.Storage methods into Google Drive API methods.
DriveService translates blobserver.Storage methods into Google Drive API methods.

Jump to

Keyboard shortcuts

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