cli

package
v0.0.0-...-3c7e412 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2015 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Delete

func Delete(d *gdrive.Drive, fileId string) error

Delete file with given file id

func Download

func Download(d *gdrive.Drive, fileId string, stdout, deleteAfterDownload bool, format string, force bool) error

Download file from drive

func DownloadLatest

func DownloadLatest(d *gdrive.Drive, stdout bool, format string, force bool) error

func Folder

func Folder(d *gdrive.Drive, title string, parentId string, share bool) error

Create folder in drive

func Info

func Info(d *gdrive.Drive, fileId string, sizeInBytes bool) error

func List

func List(d *gdrive.Drive, query, titleFilter string, maxResults int, sharedStatus, noHeader, includeDocs, sizeInBytes bool) error

func Quota

func Quota(d *gdrive.Drive, sizeInBytes bool) error

func Share

func Share(d *gdrive.Drive, fileId string) error

Make given file id readable by anyone -- auth not required to view/download file

func Unshare

func Unshare(d *gdrive.Drive, fileId string) error

Removes the 'anyone' permission -- auth will be required to view/download file

func Upload

func Upload(d *gdrive.Drive, input *os.File, title string, parentId string, share bool, mimeType string, convert bool) error

func UploadStdin

func UploadStdin(d *gdrive.Drive, input io.ReadCloser, title string, parentId string, share bool, mimeType string, convert bool) error

Upload file to drive

Types

This section is empty.

Jump to

Keyboard shortcuts

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