Documentation
¶
Index ¶
- type Google
- func (g *Google) CreateDir(name string, parents ...string) (*drive.File, error)
- func (g *Google) CreateFile(name, mimeType, content, parentID string) (*drive.File, error)
- func (g *Google) DownloadFile(filePath, fileName, fileID string) error
- func (g *Google) GetFileList(pageSize int64) ([]*drive.File, error)
- func (g *Google) Init(serviceAccountFilePath string) error
- func (g *Google) ReadFile(fileID string) (*drive.File, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Google ¶
type Google struct {
Service *drive.Service
}
func (*Google) CreateFile ¶
CreateFile - 建立檔案
func (*Google) DownloadFile ¶
DownloadFile - 下載檔案
func (*Google) GetFileList ¶
GetFileList - 取得檔案列表
Click to show internal directories.
Click to hide internal directories.