github.com/keltia/go-ipfs@v0.3.8-0.20150909044612-210793031c63/repo/config/datastore.go (about) 1 package config 2 3 // DefaultDataStoreDirectory is the directory to store all the local IPFS data. 4 const DefaultDataStoreDirectory = "datastore" 5 6 // Datastore tracks the configuration of the datastore. 7 type Datastore struct { 8 Type string 9 Path string 10 } 11 12 // DataStorePath returns the default data store path given a configuration root 13 // (set an empty string to have the default configuration root) 14 func DataStorePath(configroot string) (string, error) { 15 return Path(configroot, DefaultDataStoreDirectory) 16 }