googledrive

package
v0.0.33 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2018 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 GoogleDriveProvider

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

GoogleDriveProvider implements a provider

func NewGoogleDriveProvider

func NewGoogleDriveProvider(token string) *GoogleDriveProvider
func (c *GoogleDriveProvider) GetLink(filepath string) (string, error)

func (*GoogleDriveProvider) Upload

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

Jump to

Keyboard shortcuts

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