api

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2022 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Export

func Export(srv *drive.Service, fileID, mimeType, outputFile string) error

func GetClient

func GetClient(config *oauth2.Config, accessTokenPath string) *http.Client

Retrieve a token, saves the token, then returns the generated client.

func GetService

func GetService(ctx context.Context, client *http.Client) *drive.Service

func List

func List(srv *drive.Service, directoryID string) error

func Login

func Login(credentialsURL, accessTokenPath string) *http.Client

func Logout

func Logout()

func TokenFileHomeDir

func TokenFileHomeDir() string

Types

This section is empty.

Jump to

Keyboard shortcuts

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