Documentation ¶
Index ¶
- Variables
- func ListApps()
- type FileInfo
- type GdApiObj
- func (gdrive *GdApiObj) CopyFile(filId string, nam string, dirId string) (nfilId string, err error)
- func (gdrive *GdApiObj) CreDumpFile(fid string, filnam string) (err error)
- func (gdrive *GdApiObj) CreateFile(pDirId string, nam string) (fileId string, err error)
- func (gdrive *GdApiObj) CreateFolder(pDirId string, nam string) (folderId string, err error)
- func (gdrive *GdApiObj) CvtToFilInfo(fil *drive.File) (filinfoptr *FileInfo, err error)
- func (gdrive *GdApiObj) DeleteFileById(filId string) (err error)
- func (gdrive *GdApiObj) DeleteFileByName(nam string) (err error)
- func (gdrive *GdApiObj) DownloadFileById(filId string, fileName string) (err error)
- func (gdrive *GdApiObj) DumpAbout(about *drive.About, outfil *os.File) (err error)
- func (gdrive *GdApiObj) DumpFileChar(inGfil *drive.File, outfil *os.File) (err error)
- func (gdrive *GdApiObj) EmptyTrash() (err error)
- func (gdrive *GdApiObj) ExportFile(inGfil *drive.File, outfil *os.File) (err error)
- func (gdrive *GdApiObj) ExportFileById(filId string, fileName string, ext string) (err error)
- func (gdrive *GdApiObj) FetchFileById(fid string) (resp *http.Response, err error)
- func (gdrive *GdApiObj) GetAbout() (resp *drive.About, err error)
- func (gdrive *GdApiObj) GetFileById(filId string) (fil *drive.File, err error)
- func (gdrive *GdApiObj) GetFileByName(nam string) (filesInfo *[]FileInfo, err error)
- func (gdrive *GdApiObj) GetFileChar(fid string) (gfil *drive.File, err error)
- func (gdrive *GdApiObj) GetFileInfoById(filId string) (filinfo *FileInfo, err error)
- func (gdrive *GdApiObj) GetFullPath(filId string) (filesInfo *[]FileInfo, path string, err error)
- func (gdObj *GdApiObj) InitDriveApi() (err error)
- func (gdrive *GdApiObj) ListAllFiles(dirId string) (fileList []*drive.File, err error)
- func (gdrive *GdApiObj) ListFFByName(nam string) (filList []*drive.File, err error)
- func (gdrive *GdApiObj) ListFiles() (fileList []*drive.File, err error)
- func (gdrive *GdApiObj) ListFilesByName(nam string, dirId string) (filList []*drive.File, err error)
- func (gdrive *GdApiObj) ListFilesBySize(foldId string, minSize int64) (filList []*drive.File, err error)
- func (gdrive *GdApiObj) ListFolderByName(nam string) (folderList *[]FileInfo, err error)
- func (gdrive *GdApiObj) ListFoldersByName(nam string) (filList []*drive.File, err error)
- func (gdrive *GdApiObj) ListTopDir() (id string, err error)
- func (gdrive *GdApiObj) MoveFileById(filId string, dirId string) (err error)
Constants ¶
This section is empty.
Variables ¶
View Source
var Gapp = map[string]string{
"gdoc": "application/vnd.google-apps.document",
"gsheet": "application/vnd.google-apps.spreadsheet",
"gdraw": "application/vnd.google-apps.drawing",
"gscript": "application/vnd.google-apps.script",
"photo": "application/vnd.google-apps.photo",
"gslide": "application/vnd.google-apps.presentation",
"gmap": "application/vnd.google-apps.map",
"gform": "application/vnd.google-apps.form",
"folder": "application/vnd.google-apps.folder",
"file": "application/vnd.google-apps.file",
"jpg": "image/jpeg",
"png": "image/png",
"svg": "image/svg+xml",
"pdf": "application/pdf",
"html": "text/html",
"text": "text/plain",
"rich": "application/rtf",
"word": "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
"excel": "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
"csv": "text/csv",
"ppt": "application/vnd.openxmlformats-officedocument.presentationml.presentation",
}
Functions ¶
Types ¶
type GdApiObj ¶
func (*GdApiObj) CreDumpFile ¶
func (*GdApiObj) CreateFile ¶
func (*GdApiObj) CreateFolder ¶
func (*GdApiObj) CvtToFilInfo ¶
func (*GdApiObj) DeleteFileById ¶
func (*GdApiObj) DeleteFileByName ¶
func (*GdApiObj) DownloadFileById ¶
func (*GdApiObj) DumpFileChar ¶
func (*GdApiObj) EmptyTrash ¶
func (*GdApiObj) ExportFile ¶
func (*GdApiObj) ExportFileById ¶
func (*GdApiObj) FetchFileById ¶
func (*GdApiObj) GetFileById ¶
func (*GdApiObj) GetFileByName ¶
func (*GdApiObj) GetFileChar ¶
func (*GdApiObj) GetFileInfoById ¶
func (*GdApiObj) GetFullPath ¶
func (*GdApiObj) InitDriveApi ¶
func (*GdApiObj) ListAllFiles ¶
func (*GdApiObj) ListFFByName ¶
func (*GdApiObj) ListFilesByName ¶
func (*GdApiObj) ListFilesBySize ¶
func (*GdApiObj) ListFolderByName ¶
func (*GdApiObj) ListFoldersByName ¶
func (*GdApiObj) ListTopDir ¶
Click to show internal directories.
Click to hide internal directories.