mirror of
https://github.com/ipfs/kubo.git
synced 2025-05-17 23:16:11 +08:00
Add Updates.Check field to Config
This commit is contained in:

committed by
Juan Batiz-Benet

parent
555bc871fc
commit
ecd6f3b00c
2
.gitignore
vendored
2
.gitignore
vendored
@ -1,3 +1,5 @@
|
|||||||
|
cpu.prof # ipfs can generate profiling dump files
|
||||||
|
|
||||||
*.swp
|
*.swp
|
||||||
.ipfsconfig
|
.ipfsconfig
|
||||||
*.out
|
*.out
|
||||||
|
@ -67,7 +67,8 @@ var log = u.Logger("cmd/ipfs")
|
|||||||
func init() {
|
func init() {
|
||||||
config, err := config.PathRoot()
|
config, err := config.PathRoot()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
config = ""
|
u.POut("Failure initializing the default Config Directory: ", err)
|
||||||
|
os.Exit(1)
|
||||||
}
|
}
|
||||||
CmdIpfs.Flag.String("c", config, "specify config directory")
|
CmdIpfs.Flag.String("c", config, "specify config directory")
|
||||||
}
|
}
|
||||||
|
@ -45,12 +45,18 @@ func (bp *BootstrapPeer) String() string {
|
|||||||
return bp.Address + "/" + bp.PeerID
|
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.
|
// Config is used to load IPFS config files.
|
||||||
type Config struct {
|
type Config struct {
|
||||||
Identity Identity // local node's peer identity
|
Identity Identity // local node's peer identity
|
||||||
Datastore Datastore // local node's storage
|
Datastore Datastore // local node's storage
|
||||||
Addresses Addresses // local node's addresses
|
Addresses Addresses // local node's addresses
|
||||||
Mounts Mounts // local node's mount points
|
Mounts Mounts // local node's mount points
|
||||||
|
Updates Updates // local node's version management
|
||||||
Bootstrap []*BootstrapPeer // local nodes's bootstrap peers
|
Bootstrap []*BootstrapPeer // local nodes's bootstrap peers
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user