Home Download Docs Code Community
import "perkeep.org/pkg/blobserver/google/drive"
Overview
Index
Subdirectories

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

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.

Subdirectories

Name      Synopsis
..
service      Package service translates blobserver.Storage methods into Google Drive API methods.
Website layout inspired by memcached.
Content by the authors.