gdrive

package
v1.3.6 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2021 License: MIT Imports: 20 Imported by: 1

Documentation

Overview

Package gdrive provides the storage service implementation for Google Drive.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGService

func NewGService(parent, indexCacheFile string, skipFullInit bool, oauth *google.Service, readerCache interf.Cache, debugLvl uint8) interf.Service

NewGService returns an interface to Google Drive. The parent specifies the folder with the active files. If the value is "root" or empty, the root directory of Google Drive is used. indexCacheFile is used to speed up Update (files are available faster). With skipFullInit = true, the init update call ends with a successful loading of indexCacheFile. readerCache=nil disable the cache for ReaderAt() and MultiReaderAt() debugLvl (@see impl.DebugHigh and impl.DebugOff)

func OAuth

func OAuth(clientCredFile, tokenFile string, readonly bool) (*drive.Service, error)

OAuth is for the google drive access. If successful, the Google Drive service will be returned. Use this function to create new oauth credentials!

func ParseTime

func ParseTime(s string) int64

ParseTime get a RFC 3339 date-time string and return as a Unix time. input example: 2018-08-03T12:03:30.407Z

Types

This section is empty.

Jump to

Keyboard shortcuts

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