perkeep.org: perkeep.org/pkg/blobserver/google/drive Index | Files | Directories

package drive

import "perkeep.org/pkg/blobserver/google/drive"

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

Package Files

drive.go enumerate.go fetch.go receive.go remove.go stat.go

Constants

const Scope = "https://www.googleapis.com/auth/drive"

Scope is the OAuth2 scope used for Google Drive.

Directories

PathSynopsis
servicePackage service translates blobserver.Storage methods into Google Drive API methods.

Package drive imports 11 packages (graph) and is imported by 2 packages. Updated 2019-06-30. Refresh now. Tools for package owners.