Major refactor of config encryption strategy

This commit is contained in:
Mitchell 2019-06-04 23:40:06 -07:00
parent e404a7ab31
commit cde1d118fc
10 changed files with 91 additions and 101 deletions

View file

@ -4,6 +4,10 @@ import "github.com/spf13/viper"
type ConfigRepo interface {
OpenConfig() (masterpass string, cfg *viper.Viper, err error)
DecryptConfig()
DecryptConfig() (err error)
SetMasterpass(masterpass string)
WriteConfig() (err error)
}
const KeyPrivateKey = "private_key"
const KeyConnConfig = "connection"