MCPcopy Index your code
hub / github.com/chyroc/go-aliyundrive

github.com/chyroc/go-aliyundrive @v0.10.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v0.10.0 ↗ · + Follow
149 symbols 306 edges 35 files 19 documented · 13%

Browse by type

Functions 78 Types & classes 71
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

go-aliyundrive

阿里云盘 Go SDK

安装

go get github.com/chyroc/go-aliyundrive

使用

初始化 SDK 实例

ins := aliyundrive.New()

// 下面所有提到的 ins 都是指这个实例

登录

具体代码参考这里

user, err := ins.Auth.LoginByQrcode(context.TODO())

读取文件

具体代码参考这里

resp, err := ins.File.GetFileList(context.TODO(), &aliyundrive.GetFileListReq{
    DriveID:      driveID,
    ParentFileID: parentID,
    Marker:       next,
})

获取分享的内容

具体代码参考这里

sharedInfo, err := ins.ShareLink.GetShareByAnonymous(ctx, &aliyundrive.GetShareByAnonymousReq{
    ShareID: shareID,
})

其他

  • 阿里云盘命令行客户端: https://github.com/chyroc/aliyundrive-cli

Extension points exported contracts — how you extend this code

Core symbols most depended-on inside this repo

Shape

Struct 63
Method 49
Function 29
Interface 4
TypeAlias 3
FuncType 1

Languages

Go100%

Modules by API surface

internal.go18 symbols
api_auth_login.go13 symbols
api_file_upload.go12 symbols
logger.go11 symbols
store.go8 symbols
aliyundrive.go8 symbols
api_file_get_file_list.go6 symbols
api_file_download.go6 symbols
api_share_link_get_share_by_anonymous.go4 symbols
api_file_rename.go4 symbols
api_file_move.go4 symbols
api_file_get_path.go4 symbols

For agents

$ claude mcp add go-aliyundrive \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page