Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoConfigFound = errors.New("no config found, run 'init' command")
Functions ¶
This section is empty.
Types ¶
type ConfigManager ¶
type ConfigManager struct {
// contains filtered or unexported fields
}
func NewConfigManager ¶
func NewConfigManager(cfgFile *string) *ConfigManager
func (ConfigManager) DecryptConfig ¶
func (mgr ConfigManager) DecryptConfig() error
func (*ConfigManager) OpenConfig ¶
func (mgr *ConfigManager) OpenConfig() (output string, v *viper.Viper, err error)
func (*ConfigManager) SetMasterpass ¶
func (mgr *ConfigManager) SetMasterpass(masterpass string)
func (ConfigManager) WriteConfig ¶
func (mgr ConfigManager) WriteConfig() (err error)
Click to show internal directories.
Click to hide internal directories.