dropbox

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2022 License: MIT Imports: 5 Imported by: 1

README

Dropbox backend

Parameters

Possible parameters are:

  • token: The non-expiring authentication token to use

How to use it

Create an app

You can follow these instructions.

Use the created client credentials

You can either define the google_client_id and google_client_secret access params or specify the GOOGLE_CLIENT_ID and GOOGLE_CLIENT_SECRET environment variables.

You should have a config file looking like this one:

{
  "accesses": [
   {
      "user": "dropbox",
      "pass": "dropbox",
      "fs": "dropbox",
      "params": {
        "google_client_id": "*****.apps.googleusercontent.com",
        "google_client_secret": "*****"
      }
    }
  ]
}

Documentation

Overview

Package dropbox provides a Dropbox layer

Index

Constants

This section is empty.

Variables

View Source
var ErrMissingToken = errors.New("missing token")

ErrMissingToken is returned if a dropbox token wasn't specified.

Functions

func LoadFs

func LoadFs(access *confpar.Access) (afero.Fs, error)

LoadFs loads a file system from an access description

Types

This section is empty.

Jump to

Keyboard shortcuts

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