fsrepo

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2021 License: MIT Imports: 8 Imported by: 29

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