Documentation ¶
Index ¶
- Constants
- Variables
- func PrintChanges(args PrintChangesArgs)
- func PrintFileInfo(args PrintFileInfoArgs)
- func PrintFileList(args PrintFileListArgs)
- func PrintRevisionList(args PrintRevisionListArgs)
- type AboutArgs
- type AboutExportArgs
- type AboutImportArgs
- type ConflictResolution
- type DeleteArgs
- type DeleteRevisionArgs
- type DownloadArgs
- type DownloadQueryArgs
- type DownloadRevisionArgs
- type DownloadSyncArgs
- type Drive
- func (self *Drive) About(args AboutArgs) (err error)
- func (self *Drive) AboutExport(args AboutExportArgs) (err error)
- func (self *Drive) AboutImport(args AboutImportArgs) (err error)
- func (self *Drive) Delete(args DeleteArgs) error
- func (self *Drive) DeleteRevision(args DeleteRevisionArgs) (err error)
- func (self *Drive) Download(args DownloadArgs) error
- func (self *Drive) DownloadQuery(args DownloadQueryArgs) error
- func (self *Drive) DownloadRevision(args DownloadRevisionArgs) (err error)
- func (self *Drive) DownloadSync(args DownloadSyncArgs) error
- func (self *Drive) Export(args ExportArgs) error
- func (self *Drive) GetChangesStartPageToken() (string, error)
- func (self *Drive) Import(args ImportArgs) error
- func (self *Drive) Info(args FileInfoArgs) error
- func (self *Drive) List(args ListFilesArgs) (err error)
- func (self *Drive) ListChanges(args ListChangesArgs) error
- func (self *Drive) ListPermissions(args ListPermissionsArgs) error
- func (self *Drive) ListRecursiveSync(args ListRecursiveSyncArgs) error
- func (self *Drive) ListRevisions(args ListRevisionsArgs) (err error)
- func (self *Drive) ListSync(args ListSyncArgs) error
- func (self *Drive) Mkdir(args MkdirArgs) error
- func (self *Drive) RevokePermission(args RevokePermissionArgs) error
- func (self *Drive) Share(args ShareArgs) error
- func (self *Drive) Update(args UpdateArgs) error
- func (self *Drive) Upload(args UploadArgs) error
- func (self *Drive) UploadStream(args UploadStreamArgs) error
- func (self *Drive) UploadSync(args UploadSyncArgs) error
- type ExportArgs
- type FileComparer
- type FileInfoArgs
- type ImportArgs
- type LargestSize
- type ListChangesArgs
- type ListFilesArgs
- type ListPermissionsArgs
- type ListRecursiveSyncArgs
- type ListRevisionsArgs
- type ListSyncArgs
- type LocalFile
- type MkdirArgs
- type ModTime
- type PrintChangesArgs
- type PrintFileInfoArgs
- type PrintFileListArgs
- type PrintRevisionListArgs
- type Progress
- type RemoteFile
- type RevokePermissionArgs
- type ShareArgs
- type TimeoutReader
- type UpdateArgs
- type UploadArgs
- type UploadStreamArgs
- type UploadSyncArgs
Constants ¶
View Source
const DefaultIgnoreFile = ".gdriveignore"
View Source
const DirectoryMimeType = "application/vnd.google-apps.folder"
View Source
const MaxDrawInterval = time.Second * 1
View Source
const MaxErrorRetries = 5
View Source
const MaxRateInterval = time.Second * 3
View Source
const TimeoutTimerInterval = time.Second * 10
Variables ¶
View Source
var DefaultExportMime = map[string]string{
"application/vnd.google-apps.form": "application/zip",
"application/vnd.google-apps.document": "application/pdf",
"application/vnd.google-apps.drawing": "image/svg+xml",
"application/vnd.google-apps.spreadsheet": "text/csv",
"application/vnd.google-apps.script": "application/vnd.google-apps.script+json",
"application/vnd.google-apps.presentation": "application/pdf",
}
Functions ¶
func PrintChanges ¶
func PrintChanges(args PrintChangesArgs)
func PrintFileInfo ¶
func PrintFileInfo(args PrintFileInfoArgs)
func PrintFileList ¶
func PrintFileList(args PrintFileListArgs)
func PrintRevisionList ¶
func PrintRevisionList(args PrintRevisionListArgs)
Types ¶
type AboutExportArgs ¶
type AboutImportArgs ¶
type ConflictResolution ¶
type ConflictResolution int
const ( NoResolution ConflictResolution = iota KeepLocal KeepRemote KeepLargest )
type DeleteRevisionArgs ¶
type DownloadArgs ¶
type DownloadQueryArgs ¶
type DownloadRevisionArgs ¶
type DownloadSyncArgs ¶
type Drive ¶
type Drive struct {
// contains filtered or unexported fields
}
func (*Drive) AboutExport ¶
func (self *Drive) AboutExport(args AboutExportArgs) (err error)
func (*Drive) AboutImport ¶
func (self *Drive) AboutImport(args AboutImportArgs) (err error)
func (*Drive) Delete ¶
func (self *Drive) Delete(args DeleteArgs) error
func (*Drive) DeleteRevision ¶
func (self *Drive) DeleteRevision(args DeleteRevisionArgs) (err error)
func (*Drive) Download ¶
func (self *Drive) Download(args DownloadArgs) error
func (*Drive) DownloadQuery ¶
func (self *Drive) DownloadQuery(args DownloadQueryArgs) error
func (*Drive) DownloadRevision ¶
func (self *Drive) DownloadRevision(args DownloadRevisionArgs) (err error)
func (*Drive) DownloadSync ¶
func (self *Drive) DownloadSync(args DownloadSyncArgs) error
func (*Drive) Export ¶
func (self *Drive) Export(args ExportArgs) error
func (*Drive) GetChangesStartPageToken ¶
func (*Drive) Import ¶
func (self *Drive) Import(args ImportArgs) error
func (*Drive) Info ¶
func (self *Drive) Info(args FileInfoArgs) error
func (*Drive) List ¶
func (self *Drive) List(args ListFilesArgs) (err error)
func (*Drive) ListChanges ¶
func (self *Drive) ListChanges(args ListChangesArgs) error
func (*Drive) ListPermissions ¶
func (self *Drive) ListPermissions(args ListPermissionsArgs) error
func (*Drive) ListRecursiveSync ¶
func (self *Drive) ListRecursiveSync(args ListRecursiveSyncArgs) error
func (*Drive) ListRevisions ¶
func (self *Drive) ListRevisions(args ListRevisionsArgs) (err error)
func (*Drive) ListSync ¶
func (self *Drive) ListSync(args ListSyncArgs) error
func (*Drive) RevokePermission ¶
func (self *Drive) RevokePermission(args RevokePermissionArgs) error
func (*Drive) Update ¶
func (self *Drive) Update(args UpdateArgs) error
func (*Drive) Upload ¶
func (self *Drive) Upload(args UploadArgs) error
func (*Drive) UploadStream ¶
func (self *Drive) UploadStream(args UploadStreamArgs) error
func (*Drive) UploadSync ¶
func (self *Drive) UploadSync(args UploadSyncArgs) error
type ExportArgs ¶
type FileComparer ¶
type FileComparer interface {
Changed(*LocalFile, *RemoteFile) bool
}
type ImportArgs ¶
type LargestSize ¶
type LargestSize int
const ( LocalLargestSize LargestSize = iota RemoteLargestSize EqualSize )
type ListChangesArgs ¶
type ListFilesArgs ¶
type ListPermissionsArgs ¶
type ListRecursiveSyncArgs ¶
type ListRevisionsArgs ¶
type ListSyncArgs ¶
type PrintChangesArgs ¶
type PrintFileInfoArgs ¶
type PrintFileListArgs ¶
type PrintRevisionListArgs ¶
type Progress ¶
type RemoteFile ¶
type RemoteFile struct {
// contains filtered or unexported fields
}
func (RemoteFile) Md5 ¶
func (self RemoteFile) Md5() string
func (RemoteFile) Modified ¶
func (self RemoteFile) Modified() time.Time
func (RemoteFile) Size ¶
func (self RemoteFile) Size() int64
type RevokePermissionArgs ¶
type TimeoutReader ¶
type TimeoutReader struct {
// contains filtered or unexported fields
}
type UpdateArgs ¶
type UploadArgs ¶
type UploadStreamArgs ¶
type UploadSyncArgs ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.