package
1.2.3
Repository: https://github.com/berty/go-ipfs-repo-afero.git
Documentation: pkg.go.dev

# Functions

No description provided by the author
AferoDatastoreConfig returns an afero DatastoreConfig from a spec.
AnyDatastoreConfig returns a DatastoreConfig from a spec based on the "type" parameter.
CheckIpfsDir gets the ipfs directory and checks that the directory exists.
DefaultDatastoreConfig is an internal function exported to aid in testing.
FileExists check if the file with the given path exits.
GetRepoVersion returns the version of the repo in the ipfs directory.
Init initializes a new FSRepo at the given path with the provided config.
IpfsDir returns the path of the ipfs directory.
IsInitialized returns true if the repo is initialized at provided |path|.
Load reads given file and returns the read config, or error.
LogDatastoreConfig returns a log DatastoreConfig from a spec.
MeasureDatastoreConfig returns a measure DatastoreConfig from a spec.
MountDatastoreConfig returns a mount DatastoreConfig from a spec.
NewAferoKeystore returns a new filesystem-backed keystore.
No description provided by the author
ReadConfigFile reads the config from `filename` into `cfg`.
Writable ensures the directory exists and is writable.
WriteConfigFile writes the config from `cfg` into `filename`.
WriteRepoVersion writes the specified repo version to the repo located in ipfsDir.

# Constants

version number that we are currently expecting to see.

# Variables

No description provided by the author
No description provided by the author
No description provided by the author

# Structs

AferoKeystore is a keystore backed by files in a given directory stored on disk.
No description provided by the author

# Interfaces

DatastoreConfig is an abstraction of a datastore config.

# Type aliases

ConfigFromMap creates a new datastore config from a map.
DiskSpec is a minimal representation of the characteristic values of the datastore.