Documentation ¶
Index ¶
- func PrintUsageStats(aboutService *drive.AboutService, log contracts.Logger)
- type Drive
- func (d *Drive) CreateFolder(curFullPath string, parentIds []string) (string, error)
- func (d *Drive) Delete(file contracts.File) error
- func (d *Drive) FillDb() error
- func (d *Drive) SaveChangesToDb() error
- func (d *Drive) SyncRemoteWithLocal(file contracts.File) error
- func (d *Drive) Update(fileId string, name string, parentIds []string, oldParentIds []string) (*drive.File, error)
- func (d *Drive) Upload(curFullPath string, parentIds []string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PrintUsageStats ¶
Types ¶
type Drive ¶
type Drive struct {
// contains filtered or unexported fields
}
func (*Drive) CreateFolder ¶
func (*Drive) FillDb ¶
FillDb synchronizes information about the files in google drive with the information about them in the local database. Having the information locally saves us from querying the server many times. With that information we can easily find a deleted, modified file not only by modification date, but also by hash and full path
func (*Drive) SaveChangesToDb ¶
SaveChangesToDb gets changes since the last synchronization and saves the changes to the database
func (*Drive) SyncRemoteWithLocal ¶
SyncRemoteWithLocal synchronizes the local file system with remote one file - file information from remote
Directories ¶
Path | Synopsis |
---|---|
Package specification describes rules and specifications of the remote files, such as if it can be downloaded, if it is a folder and so on.
|
Package specification describes rules and specifications of the remote files, such as if it can be downloaded, if it is a folder and so on. |
Click to show internal directories.
Click to hide internal directories.