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

[coreapi] [feature] Add repository initialization support #4887

Open
schomatis opened this issue Mar 28, 2018 · 1 comment
Open

[coreapi] [feature] Add repository initialization support #4887

schomatis opened this issue Mar 28, 2018 · 1 comment
Labels
topic/core-api Topic core-api

Comments

@schomatis
Copy link
Contributor

The doInit function (used by ipfs init) is not exported and right now the closest functionality to that is the exported fsrepo.Init but that requires taking care of the config.Config structure (and other maintenance issues taken care of by doInit).

My use case is doing benchmark tests between flatfs and badger datastores where I create a repo from scratch to measure put/get times. For me the easiest procedure at the moment is calling the ipfs init shell command directly (with exec.Command) instead of using the internal API.

@schomatis
Copy link
Contributor Author

cc @magik6k

@magik6k magik6k self-assigned this Mar 29, 2018
@magik6k magik6k added the topic/core-api Topic core-api label Mar 29, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic/core-api Topic core-api
Projects
None yet
Development

No branches or pull requests

2 participants