dropbox

package
v0.0.75 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2019 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OAuth2DropboxConfig

func OAuth2DropboxConfig() *oauth2.Config

OAuth2DropboxConfig creates a oauth config

Types

type Provider added in v0.0.40

type Provider struct {
	Config dropbox.Config
	// contains filtered or unexported fields
}

Provider implements a provider using dropbox sdk

func NewProvider added in v0.0.40

func NewProvider(token string) *Provider

NewProvider creates a new Provider

func (c *Provider) GetLink(filepath string) (string, error)

GetLink for file

func (*Provider) Upload added in v0.0.40

func (c *Provider) Upload(file *os.File, path string) (dst string, err error)

Upload the file to dropbox

type TokenMap

type TokenMap map[string]string

TokenMap example: { "token": "xxx" }

Jump to

Keyboard shortcuts

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