fsrepo

package
v0.19.0 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2022 License: MIT Imports: 8 Imported by: 13 modules, 29 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotInitialized = errors.New("ipfs not initialized, please run 'ipfs init'")

ErrNotInitialized is returned when we fail to read the config because the repo doesn't exist.

Functions

func Load

func Load(filename string) (*config.Config, error)

Load reads given file and returns the read config, or error.

func ReadConfigFile

func ReadConfigFile(filename string, cfg interface{}) error

ReadConfigFile reads the config from `filename` into `cfg`.

func WriteConfigFile

func WriteConfigFile(filename string, cfg interface{}) error

WriteConfigFile writes the config from `cfg` into `filename`.

Types

This section is empty.

Jump to

Keyboard shortcuts

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