ipfs / ipfs/kubo

[coreapi] [feature] Add repository initialization support

Open
#4,887 1 comment 0 reactions 0 assignees View on GitHub
topic/core-api
Dominant language
Go
Stars
17.1k
Forks
3.2k
Avg merge
3d 18h
Merged PRs (30d)
11

Description

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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.