package
0.0.0-20210516141822-56fb507d68db
Repository: https://github.com/reddocmd/piledriver.git
Documentation: pkg.go.dev
# Functions
AuthorizeApp triggers the OAuth 2.0 web authentication for Piledriver.
CreateFile creates the file in drive, with the parent directory specified by parentID and filename same as input file.
CreateFolder creates a folder in drive, with a parent directory specified by parentID If no parent directories are specified, then it is not set.
DebounceEvents removes identical events less than some threshold.
DeleteFileOrFolder deletes the file (or folder) in the drive with the givwn ID.
ExecuteEvents takes a channel Events and executes them.
GetDriveService reads the token from the file denoted by tokenLocation and then returns the Google Drive service.
NewState returns a new blank state.
QueryAllContents returns a list of all the files uploaded to Drive by Piledriver that were not trashed by the user.
QueryFileID queries Google drive for the id of a file (or folder) with the givwn path If the file is found, then err is nil.
RenameFileOrFolder models the UNIX mv (1) command for Google Drive.
UpdateFile updates the file to the new contents.
WatchLoop watches for file change events in a loop recursive causes it to add new directories being created.
# Constants
Various types of id's.
Various types of event categories.
Various types of event categories.
Various types of event categories.
Various types of event categories.
Various types of event categories.
Various types of event categories.
Various types of event categories.
Various types of event categories.
Various types of id's.
# Structs
Event is the internal representation of file watcher events.
PathID contains the path and the id returned for it.
RenameInfo contains fields necessary for renaming a file/folder.
State holds global state info for the program.
# Type aliases
EventCategory denotes the type of event that has been detected.
IDKey denotes the key for the ID type.