Skip to content

feat(ipfs): better ipfs support #8225

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 27, 2025
Merged

feat(ipfs): better ipfs support #8225

merged 2 commits into from
Mar 27, 2025

Conversation

jerry-harm
Copy link
Contributor

@jerry-harm jerry-harm commented Mar 25, 2025

cn

更好的ipfs支持
分别提供ipfs,ipns,mfs模式. 配置中直接输入cid或者ipns的名字即可使用,mfs可以挂载本地mfs目录
ifps和ipns下只读,mfs模式可以通过endpoint进行读写操作

en

Better IPFS support
Added IPFS,IPNS,MFS mode. In config, use the cid or ipns to use it, mfs mode can be used to mount local mfs dir
Readonly in IPFS and IPNS mode, writeable in MFS mode through endpoint

fixed mfs crud, added ipns support
Copy link

Walkthrough

This PR enhances IPFS support by introducing IPFS, IPNS, and MFS modes. It allows users to configure using CID or IPNS names directly, with MFS mode enabling local MFS directory mounting. The IPFS and IPNS modes are read-only, while MFS mode supports read-write operations through an endpoint.

Changes

File Summary
drivers/ipfs_api/driver.go Added support for IPFS, IPNS, and MFS modes, including logic for handling different modes and ensuring write operations are only allowed in MFS mode.
drivers/ipfs_api/meta.go Updated configuration to include mode selection and changed default gateway URL.

@jerry-harm jerry-harm changed the title feat: better ipfs support feat(ipfs): better ipfs support Mar 26, 2025
@xhofe xhofe merged commit 0cde4e7 into AlistGo:main Mar 27, 2025
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants