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"

      Scope is the OAuth2 scope used for Google Drive.

      Variables

      This section is empty.

      Functions

      This section is empty.

      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.