setup

package
v0.4.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 30, 2019 License: AGPL-3.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAPIAddrForPath

func GetAPIAddrForPath(baseDir string) (string, error)

GetAPIAddrForPath returns the API addr of the IPFS repo at `baseDir`.

func IPFS

func IPFS(out io.Writer, doSetup, setDefaultConfig, setExtraConfig bool, ipfsPath string) (string, error)

IPFS setups a IPFS repo at the standard place. If there is already a repository and the daemon is running, it will do nothing. Otherwise it will install IPFS (if it needs to), init a repo, set config and bring up the daemon in a fashion that should work for most cases. It will output log messages to `out`.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL