go-ipfs-config: github.com/ipfs/go-ipfs-config/serialize Index | Files

package fsrepo

import "github.com/ipfs/go-ipfs-config/serialize"


Package Files



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.

func Load Uses

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

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

func ReadConfigFile Uses

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

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

func WriteConfigFile Uses

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

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

Package fsrepo imports 8 packages (graph) and is imported by 20 packages. Updated 2020-07-07. Refresh now. Tools for package owners.