fsrepo

package
v0.27.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2024 License: Apache-2.0, MIT, Apache-2.0, + 1 more Imports: 8 Imported by: 10

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