MCPcopy Create free account

hub / github.com/chyroc/go-aliyundrive / functions

Functions78 in github.com/chyroc/go-aliyundrive

↓ 22 callersMethodRawRequest
(ctx context.Context, req *RawRequestReq, resp interface{})
internal.go:58
↓ 13 callersMethodSet
(ctx context.Context, token *Token)
store.go:34
↓ 11 callersMethodlog
(ctx context.Context, level LogLevel, msg string, args ...interface{})
logger.go:57
↓ 10 callersMethodGet
(ctx context.Context, key string)
store.go:33
↓ 7 callersMethodString
()
logger.go:40
↓ 6 callersFunctionAutoRenameFile
(file string)
internal/helper_tool/file.go:31
↓ 5 callersFunctionassert
(err error)
_examples/all.go:54
↓ 5 callersFunctionjsonString
(v interface{})
_examples/all.go:60
↓ 4 callersFunctionReflectToString
(v reflect.Value)
internal/helper_tool/reflect.go:23
↓ 3 callersMethodGetSelfUser
(ctx context.Context)
api_auth_get_self_user.go:23
↓ 3 callersMethodLoginByQrcode
(ctx context.Context, request *LoginByQrcodeReq)
api_auth_login.go:42
↓ 2 callersMethodGetFileDownloadURLV2
GetFileDownloadURLV2 使用 DownloadFile API 获取下载链接(返回 302 跳转)
api_file_download_v2.go:25
↓ 2 callersMethodGetFileList
(ctx context.Context, request *GetFileListReq)
api_file_get_file_list.go:24
↓ 2 callersFunctionReflectToQueryString
(v reflect.Value)
internal/helper_tool/reflect.go:41
↓ 2 callersMethodToken
()
api_auth_refresh_token.go:77
↓ 2 callersMethodUploadStream
UploadStream 从流上传文件
api_file_upload.go:95
↓ 2 callersMethodgetFileList
(ctx context.Context, request *GetFileListReq)
api_file_get_file_list.go:46
↓ 2 callersFunctionparseRequestParam
(req *RawRequestReq)
internal.go:177
↓ 1 callersMethodCreateFolder
CreateFolder 创建文件夹
api_file_create_folder.go:24
↓ 1 callersMethodDeleteFile
DeleteFile 删除文件
api_file_delete.go:24
↓ 1 callersMethodError
(ctx context.Context, format string, v ...interface{})
internal.go:359
↓ 1 callersMethodGetFile
GetFile 获取文件信息
api_file_get.go:24
↓ 1 callersMethodGetSBox
(ctx context.Context)
api_file_get_sbox.go:23
↓ 1 callersMethodGetShareByAnonymous
GetShareByAnonymous 通过分享 ID 获取分享内容
api_share_link_get_share_by_anonymous.go:25
↓ 1 callersFunctionInitLogger
()
internal/helper_config/config.go:53
↓ 1 callersFunctionIsTokenExpired
(err error)
api_auth_login.go:34
↓ 1 callersMethodLog
(ctx context.Context, level LogLevel, msg string, args ...interface{})
logger.go:27
↓ 1 callersFunctionNewFileStore
(file string)
store.go:62
↓ 1 callersMethodRefreshToken
(ctx context.Context, request *RefreshTokenReq)
api_auth_refresh_token.go:24
↓ 1 callersMethodSetFilename
(filename string)
internal.go:348
↓ 1 callersMethodSetReader
(file io.Reader)
internal.go:344
↓ 1 callersFunctionautoRenameFile
(file string)
internal/helper_tool/file.go:40
↓ 1 callersMethodcompleteUpload
== upload part == == complete upload ==
api_file_upload.go:203
↓ 1 callersMethodconfirmLogin
(ctx context.Context, accessToken string)
api_auth_login.go:288
↓ 1 callersMethodcreateFileWithProof
== create with proof ==
api_file_upload.go:138
↓ 1 callersMethoddoRequest
(ctx context.Context, requestParam *RawRequestReq, realResponse interface{})
internal.go:86
↓ 1 callersFunctiondownloadURL
(ctx context.Context, url string, filename string, showProgressBar bool)
api_file_download.go:122
↓ 1 callersFunctiongetCodeMsg
(v interface{})
internal.go:368
↓ 1 callersMethodgetQrCode
(ctx context.Context)
api_auth_login.go:149
↓ 1 callersMethodgetToken
(ctx context.Context, request *getTokenReq)
api_auth_get_token.go:23
↓ 1 callersMethodinitService
()
aliyundrive_impl.go:80
↓ 1 callersMethodinternalLoginByQrcode
(ctx context.Context, request *LoginByQrcodeReq)
api_auth_login.go:78
↓ 1 callersFunctionjsonString
(v interface{})
internal.go:363
↓ 1 callersFunctionlistAllFile
(ins *aliyundrive.AliyunDrive, prefix string, driveID, parentID string, liftCount *int)
_examples/list-files/main.go:39
↓ 1 callersFunctionmakePartInfoList
(size int64)
api_file_upload.go:124
↓ 1 callersFunctionnewClient
(options []ClientOptionFunc)
aliyundrive_impl.go:45
↓ 1 callersMethodnewDefaultLogger
()
logger.go:77
↓ 1 callersFunctionnewFileUploadRequest
(params map[string]string, filekey string, reader io.Reader)
internal.go:319
↓ 1 callersMethodpreLogin
(ctx context.Context)
api_auth_login.go:134
↓ 1 callersMethodprepareHeaders
(ctx context.Context, req *RawRequestReq)
internal.go:160
↓ 1 callersMethodqueryQrCode
(ctx context.Context, t, ck string)
api_auth_login.go:190
↓ 1 callersMethodrawRequest
(ctx context.Context, req *RawRequestReq, resp interface{})
internal.go:62
↓ 1 callersMethoduploadPart
== create with proof == == upload part ==
api_file_upload.go:180
MethodDownloadFile
GetFile 获取文件信息
api_file_download.go:34
MethodDownloadFileStream
DownloadFileStream 获取文件流
api_file_download.go:77
MethodGet
(ctx context.Context, key string)
store.go:41
MethodGetFileDownloadURL
GetFile 获取文件信息
api_file_get_download_url.go:25
MethodGetFilePath
GetFilePath 重命名
api_file_get_path.go:24
MethodInfo
(ctx context.Context, format string, v ...interface{})
internal.go:355
MethodLog
(ctx context.Context, level LogLevel, msg string, args ...interface{})
logger.go:69
MethodLog
(ctx context.Context, level LogLevel, msg string, args ...interface{})
logger.go:89
MethodMoveFile
RenameFile 重命名
api_file_move.go:24
FunctionNew
(options ...ClientOptionFunc)
aliyundrive.go:22
FunctionNewLoggerStdout
()
logger.go:65
MethodRenameFile
RenameFile 重命名
api_file_rename.go:24
MethodSearchFile
GetFile 获取文件信息
api_file_search.go:25
MethodSet
(ctx context.Context, token *Token)
store.go:54
FunctionTest_Tool
(t *testing.T)
internal/helper_tool/file_test.go:24
FunctionTest_parseReq
(t *testing.T)
internal_test.go:32
MethodUploadFile
(ctx context.Context, request *UploadFileReq)
api_file_upload.go:31
FunctionWithLogger
(logger Logger, level LogLevel)
aliyundrive.go:28
FunctionWithStore
(store Store)
aliyundrive.go:45
FunctionWithWorkDir
(dir string)
aliyundrive.go:35
Functioninit
()
internal/helper_config/config.go:34
Functionmain
()
_examples/all.go:11
Functionmain
()
_examples/get-share/main.go:27
Functionmain
()
_examples/list-files/main.go:25
Functionmain
扫码登录
_examples/login-by-qrcode/main.go:27