google_drive

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2021 License: Unlicense Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(c interface{}, logger *logrus.Logger) (gdrive archivers.Archiver)

New will return a new google_drive archivar

Types

type GoogleDrive

type GoogleDrive struct {
	OAuthToken    string
	ClientSecrets string
	// contains filtered or unexported fields
}

GoogleDrive allows to upload files to Google-Drive

func (*GoogleDrive) Connect

func (g *GoogleDrive) Connect() (newSession bool, err error)

func (*GoogleDrive) Upload

func (g *GoogleDrive) Upload(f file.File) (err error)

Jump to

Keyboard shortcuts

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