Skip to content
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

Fetching files from IPFS-cluster using CID #1923

Open
trinayanbhatt opened this issue May 2, 2023 · 2 comments
Open

Fetching files from IPFS-cluster using CID #1923

trinayanbhatt opened this issue May 2, 2023 · 2 comments
Labels
effort/days Estimated to take multiple days, but less than a week exp/intermediate Prior experience is likely helpful kind/enhancement A net-new feature or improvement to an existing feature P2 Medium: Good to have, but can wait until someone steps up

Comments

@trinayanbhatt
Copy link

Hi Team,

I'm working with a private IPFS cluster and want to fetch files using CIDs.

Like IPFS nodes provides cat and get functionality, we are not able to get similar commands or API while using IPFS cluster client.

So, can someone please help how can we use cluster client for fetching data from IPFS cluster nodes using CID.

@trinayanbhatt trinayanbhatt added the need/triage Needs initial labeling and prioritization label May 2, 2023
@hsanjuan hsanjuan added kind/enhancement A net-new feature or improvement to an existing feature exp/intermediate Prior experience is likely helpful P2 Medium: Good to have, but can wait until someone steps up effort/days Estimated to take multiple days, but less than a week and removed need/triage Needs initial labeling and prioritization labels May 11, 2023
@hsanjuan
Copy link
Collaborator

Cluster daemon only orchestrates pinning and adding. Retrieval is supposed to be done over the IPFS protocol or the IPFS gateway, which both are things provided by the IPFS daemon itself, thus not provided by cluster.

This is a common ask though. I will leave it open for future work with the following thoughts:

  • REST-API could offer a GET endpoint to fetch content
  • Equivalent to IPFS cat, except:
    • Only works for content pinned in the cluster
    • Chooses one of the allocations of the pin and essentially proxies to IPFS cat
  • Cat is a unixfs command and therefore limited to unixfs content types. Approach could be extended to dag/get for general IPLD fetching. (or block/get and let users parse ipld themselves)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
effort/days Estimated to take multiple days, but less than a week exp/intermediate Prior experience is likely helpful kind/enhancement A net-new feature or improvement to an existing feature P2 Medium: Good to have, but can wait until someone steps up
Projects
None yet
Development

No branches or pull requests

3 participants
@hsanjuan @trinayanbhatt and others