googledrive

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: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OAuth2GoogleDriveConfig

func OAuth2GoogleDriveConfig() *oauth2.Config

OAuth2GoogleDriveConfig ...

Types

type Provider added in v0.0.40

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

Provider implements a provider

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 fileid

func (*Provider) Upload added in v0.0.40

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

Upload the file

Jump to

Keyboard shortcuts

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