googledrivetool

package
v0.0.53 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 19, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

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) CreateDir

func (g *Google) CreateDir(name string, parents ...string) (*drive.File, error)

CreateDir -建立資料夾

func (*Google) CreateFile

func (g *Google) CreateFile(name, mimeType, content, parentID string) (*drive.File, error)

CreateFile - 建立檔案

func (*Google) DownloadFile

func (g *Google) DownloadFile(filePath, fileName, fileID string) error

DownloadFile - 下載檔案

func (*Google) GetFileList

func (g *Google) GetFileList(pageSize int64) ([]*drive.File, error)

GetFileList - 取得檔案列表

func (*Google) Init

func (g *Google) Init(serviceAccountFilePath string) error

Init - 初始化

func (*Google) ReadFile

func (g *Google) ReadFile(fileID string) (*drive.File, error)

ReadFile - 讀取檔案

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL