提交 ecd6f3b0 作者: Peter Borzov 提交者: Juan Batiz-Benet

Add Updates.Check field to Config

上级 555bc871
cpu.prof # ipfs can generate profiling dump files
*.swp
.ipfsconfig
*.out
......
......@@ -67,7 +67,8 @@ var log = u.Logger("cmd/ipfs")
func init() {
config, err := config.PathRoot()
if err != nil {
config = ""
u.POut("Failure initializing the default Config Directory: ", err)
os.Exit(1)
}
CmdIpfs.Flag.String("c", config, "specify config directory")
}
......
......@@ -45,12 +45,18 @@ func (bp *BootstrapPeer) String() string {
return bp.Address + "/" + bp.PeerID
}
// Updates regulates checking and downloading for application's most recent version
type Updates struct {
Check string // "ignore" for do not check, "warn" and "error" for reacting when obsolete
}
// Config is used to load IPFS config files.
type Config struct {
Identity Identity // local node's peer identity
Datastore Datastore // local node's storage
Addresses Addresses // local node's addresses
Mounts Mounts // local node's mount points
Updates Updates // local node's version management
Bootstrap []*BootstrapPeer // local nodes's bootstrap peers
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论