summaryrefslogtreecommitdiff
path: root/internal/configfile/config_file.go
diff options
context:
space:
mode:
authorJakob Unterwurzacher2018-06-25 22:02:05 +0200
committerJakob Unterwurzacher2018-07-01 20:56:22 +0200
commit91de77943fba3cb993aad4e9756e159c4514764a (patch)
tree7cc07a23ec031e93b0c896b4541a94beaed46aee /internal/configfile/config_file.go
parent8e5ca7299a3292cae64418aaf875819c2cca01f5 (diff)
configfile: reduce function name stutter
configfile.LoadConfFile() -> configfile.Load() configfile.CreateConfFile() -> configfile.Create()
Diffstat (limited to 'internal/configfile/config_file.go')
-rw-r--r--internal/configfile/config_file.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/internal/configfile/config_file.go b/internal/configfile/config_file.go
index da6c4da..a70a511 100644
--- a/internal/configfile/config_file.go
+++ b/internal/configfile/config_file.go
@@ -64,10 +64,10 @@ func randBytesDevRandom(n int) []byte {
return b
}
-// CreateConfFile - create a new config with a random key encrypted with
+// Create - create a new config with a random key encrypted with
// "password" and write it to "filename".
// Uses scrypt with cost parameter logN.
-func CreateConfFile(filename string, password []byte, plaintextNames bool,
+func Create(filename string, password []byte, plaintextNames bool,
logN int, creator string, aessiv bool, devrandom bool, trezor bool) error {
var cf ConfFile
cf.filename = filename
@@ -112,13 +112,13 @@ func CreateConfFile(filename string, password []byte, plaintextNames bool,
return cf.WriteFile()
}
-// LoadConfFile - read config file from disk and decrypt the
+// Load - read config file from disk and decrypt the
// contained key using "password".
// Returns the decrypted key and the ConfFile object
//
// If "password" is empty, the config file is read
// but the key is not decrypted (returns nil in its place).
-func LoadConfFile(filename string, password []byte) ([]byte, *ConfFile, error) {
+func Load(filename string, password []byte) ([]byte, *ConfFile, error) {
var cf ConfFile
cf.filename = filename