mirror of
https://github.com/go-i2p/onramp.git
synced 2025-07-05 06:55:19 -04:00
update index.html
This commit is contained in:
10
common.go
10
common.go
@ -53,6 +53,11 @@ func I2PKeystorePath() (string, error) {
|
||||
return I2P_KEYSTORE_PATH, nil
|
||||
}
|
||||
|
||||
// DeleteI2PKeyStore deletes the I2P Keystore.
|
||||
func DeleteI2PKeyStore() error {
|
||||
return os.RemoveAll(I2P_KEYSTORE_PATH)
|
||||
}
|
||||
|
||||
// TorKeystorePath returns the path to the Onion Keystore. If the
|
||||
// path is not set, it returns the default path. If the path does
|
||||
// not exist, it creates it.
|
||||
@ -65,3 +70,8 @@ func TorKeystorePath() (string, error) {
|
||||
}
|
||||
return ONION_KEYSTORE_PATH, nil
|
||||
}
|
||||
|
||||
// DeleteTorKeyStore deletes the Onion Keystore.
|
||||
func DeleteTorKeyStore() error {
|
||||
return os.RemoveAll(ONION_KEYSTORE_PATH)
|
||||
}
|
||||
|
Reference in New Issue
Block a user