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

package fsrepo

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

Index

Package Files

serialize.go

Variables

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 13 packages. Updated 2019-10-19. Refresh now. Tools for package owners.