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

Add support for datastore plugins #5187

Merged
merged 1 commit into from
Oct 5, 2018
Merged

Conversation

whyrusleeping
Copy link
Member

This will make it a little bit easier to write your own datastores for ipfs (at least on platforms that go supports plugins >.>).

The next step is making it easier to initialize ipfs with a given datastore config

Copy link
Member

@magik6k magik6k left a comment

Choose a reason for hiding this comment

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

I'm not exactly sure and can't check easily right now - are plugin loaded before we open datastore (both for daemon/offline commands)? I remember there being something weird about that.

There is a PR open which changes the flow and it looks like with it is the case - #4806

Code LGTM, but it needs a test or two.

License: MIT
Signed-off-by: Jeromy <[email protected]>
@magik6k
Copy link
Member

magik6k commented Sep 24, 2018

(did a rebase)

@Stebalien
Copy link
Member

@magik6k have you tested this and does it work? If so, we can go ahead and merge it.

@magik6k
Copy link
Member

magik6k commented Sep 24, 2018

Yup, with #5516, both offline and with daemon.

@Stebalien
Copy link
Member

Nice!

@Stebalien
Copy link
Member

Actually, do you think we should add tests here or just add in a datastore-as-a-plugin and test it with that?

@magik6k
Copy link
Member

magik6k commented Sep 24, 2018

I'd just test this with an actual datastore plugin, like we do with the git plugin

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.

3 participants