Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/chyroc/go-aliyundrive
/ functions
Functions
78 in github.com/chyroc/go-aliyundrive
⨍
Functions
78
◇
Types & classes
71
↓ 22 callers
Method
RawRequest
(ctx context.Context, req *RawRequestReq, resp interface{})
internal.go:58
↓ 13 callers
Method
Set
(ctx context.Context, token *Token)
store.go:34
↓ 11 callers
Method
log
(ctx context.Context, level LogLevel, msg string, args ...interface{})
logger.go:57
↓ 10 callers
Method
Get
(ctx context.Context, key string)
store.go:33
↓ 7 callers
Method
String
()
logger.go:40
↓ 6 callers
Function
AutoRenameFile
(file string)
internal/helper_tool/file.go:31
↓ 5 callers
Function
assert
(err error)
_examples/all.go:54
↓ 5 callers
Function
jsonString
(v interface{})
_examples/all.go:60
↓ 4 callers
Function
ReflectToString
(v reflect.Value)
internal/helper_tool/reflect.go:23
↓ 3 callers
Method
GetSelfUser
(ctx context.Context)
api_auth_get_self_user.go:23
↓ 3 callers
Method
LoginByQrcode
(ctx context.Context, request *LoginByQrcodeReq)
api_auth_login.go:42
↓ 2 callers
Method
GetFileDownloadURLV2
GetFileDownloadURLV2 使用 DownloadFile API 获取下载链接(返回 302 跳转)
api_file_download_v2.go:25
↓ 2 callers
Method
GetFileList
(ctx context.Context, request *GetFileListReq)
api_file_get_file_list.go:24
↓ 2 callers
Function
ReflectToQueryString
(v reflect.Value)
internal/helper_tool/reflect.go:41
↓ 2 callers
Method
Token
()
api_auth_refresh_token.go:77
↓ 2 callers
Method
UploadStream
UploadStream 从流上传文件
api_file_upload.go:95
↓ 2 callers
Method
getFileList
(ctx context.Context, request *GetFileListReq)
api_file_get_file_list.go:46
↓ 2 callers
Function
parseRequestParam
(req *RawRequestReq)
internal.go:177
↓ 1 callers
Method
CreateFolder
CreateFolder 创建文件夹
api_file_create_folder.go:24
↓ 1 callers
Method
DeleteFile
DeleteFile 删除文件
api_file_delete.go:24
↓ 1 callers
Method
Error
(ctx context.Context, format string, v ...interface{})
internal.go:359
↓ 1 callers
Method
GetFile
GetFile 获取文件信息
api_file_get.go:24
↓ 1 callers
Method
GetSBox
(ctx context.Context)
api_file_get_sbox.go:23
↓ 1 callers
Method
GetShareByAnonymous
GetShareByAnonymous 通过分享 ID 获取分享内容
api_share_link_get_share_by_anonymous.go:25
↓ 1 callers
Function
InitLogger
()
internal/helper_config/config.go:53
↓ 1 callers
Function
IsTokenExpired
(err error)
api_auth_login.go:34
↓ 1 callers
Method
Log
(ctx context.Context, level LogLevel, msg string, args ...interface{})
logger.go:27
↓ 1 callers
Function
NewFileStore
(file string)
store.go:62
↓ 1 callers
Method
RefreshToken
(ctx context.Context, request *RefreshTokenReq)
api_auth_refresh_token.go:24
↓ 1 callers
Method
SetFilename
(filename string)
internal.go:348
↓ 1 callers
Method
SetReader
(file io.Reader)
internal.go:344
↓ 1 callers
Function
autoRenameFile
(file string)
internal/helper_tool/file.go:40
↓ 1 callers
Method
completeUpload
== upload part == == complete upload ==
api_file_upload.go:203
↓ 1 callers
Method
confirmLogin
(ctx context.Context, accessToken string)
api_auth_login.go:288
↓ 1 callers
Method
createFileWithProof
== create with proof ==
api_file_upload.go:138
↓ 1 callers
Method
doRequest
(ctx context.Context, requestParam *RawRequestReq, realResponse interface{})
internal.go:86
↓ 1 callers
Function
downloadURL
(ctx context.Context, url string, filename string, showProgressBar bool)
api_file_download.go:122
↓ 1 callers
Function
getCodeMsg
(v interface{})
internal.go:368
↓ 1 callers
Method
getQrCode
(ctx context.Context)
api_auth_login.go:149
↓ 1 callers
Method
getToken
(ctx context.Context, request *getTokenReq)
api_auth_get_token.go:23
↓ 1 callers
Method
initService
()
aliyundrive_impl.go:80
↓ 1 callers
Method
internalLoginByQrcode
(ctx context.Context, request *LoginByQrcodeReq)
api_auth_login.go:78
↓ 1 callers
Function
jsonString
(v interface{})
internal.go:363
↓ 1 callers
Function
listAllFile
(ins *aliyundrive.AliyunDrive, prefix string, driveID, parentID string, liftCount *int)
_examples/list-files/main.go:39
↓ 1 callers
Function
makePartInfoList
(size int64)
api_file_upload.go:124
↓ 1 callers
Function
newClient
(options []ClientOptionFunc)
aliyundrive_impl.go:45
↓ 1 callers
Method
newDefaultLogger
()
logger.go:77
↓ 1 callers
Function
newFileUploadRequest
(params map[string]string, filekey string, reader io.Reader)
internal.go:319
↓ 1 callers
Method
preLogin
(ctx context.Context)
api_auth_login.go:134
↓ 1 callers
Method
prepareHeaders
(ctx context.Context, req *RawRequestReq)
internal.go:160
↓ 1 callers
Method
queryQrCode
(ctx context.Context, t, ck string)
api_auth_login.go:190
↓ 1 callers
Method
rawRequest
(ctx context.Context, req *RawRequestReq, resp interface{})
internal.go:62
↓ 1 callers
Method
uploadPart
== create with proof == == upload part ==
api_file_upload.go:180
Method
DownloadFile
GetFile 获取文件信息
api_file_download.go:34
Method
DownloadFileStream
DownloadFileStream 获取文件流
api_file_download.go:77
Method
Get
(ctx context.Context, key string)
store.go:41
Method
GetFileDownloadURL
GetFile 获取文件信息
api_file_get_download_url.go:25
Method
GetFilePath
GetFilePath 重命名
api_file_get_path.go:24
Method
Info
(ctx context.Context, format string, v ...interface{})
internal.go:355
Method
Log
(ctx context.Context, level LogLevel, msg string, args ...interface{})
logger.go:69
Method
Log
(ctx context.Context, level LogLevel, msg string, args ...interface{})
logger.go:89
Method
MoveFile
RenameFile 重命名
api_file_move.go:24
Function
New
(options ...ClientOptionFunc)
aliyundrive.go:22
Function
NewLoggerStdout
()
logger.go:65
Method
RenameFile
RenameFile 重命名
api_file_rename.go:24
Method
SearchFile
GetFile 获取文件信息
api_file_search.go:25
Method
Set
(ctx context.Context, token *Token)
store.go:54
Function
Test_Tool
(t *testing.T)
internal/helper_tool/file_test.go:24
Function
Test_parseReq
(t *testing.T)
internal_test.go:32
Method
UploadFile
(ctx context.Context, request *UploadFileReq)
api_file_upload.go:31
Function
WithLogger
(logger Logger, level LogLevel)
aliyundrive.go:28
Function
WithStore
(store Store)
aliyundrive.go:45
Function
WithWorkDir
(dir string)
aliyundrive.go:35
Function
init
()
internal/helper_config/config.go:34
Function
main
()
_examples/all.go:11
Function
main
()
_examples/get-share/main.go:27
Function
main
()
_examples/list-files/main.go:25
Function
main
扫码登录
_examples/login-by-qrcode/main.go:27