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

WIP Fallback CoreAPI client #6274

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft

WIP Fallback CoreAPI client #6274

wants to merge 1 commit into from

Conversation

magik6k
Copy link
Member

@magik6k magik6k commented Apr 29, 2019

This is part of my plan to revive ipget.

This code is supposed to provide what https://github.com/noffle/fallback-ipfs-shell / https://github.com/whyrusleeping/ipfs-embedded-shell provide, but on CoreAPI level.

(not sure about naming / location / should this be a separate package)

License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
@ghost ghost assigned magik6k Apr 29, 2019
@ghost ghost added the status/in-progress In progress label Apr 29, 2019
@magik6k magik6k changed the title WIP Fallback coreapi client WIP Fallback CoreAPI client Apr 29, 2019
Copy link
Member

@Stebalien Stebalien left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(early review)

}

func (a *ctxApi) Close() error {
a.CancelFunc()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should probably wait for the node to exit here.

}

var tempEmbedded ApiProvider = func() (ManagedApi, error) {
dir, err := ioutil.TempDir("", "ipfs-shell")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ideally, we'd remove this directory (wrap the API so it gets deleted on close?).

@momack2 momack2 added this to In Progress in ipfs/go-ipfs May 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
No open projects
ipfs/go-ipfs
In Progress
Development

Successfully merging this pull request may close these issues.

None yet

2 participants