Documentation ¶
Index ¶
Constants ¶
View Source
const ( DefaultCounter = common.DefaultCounter DefaultPasswordType = common.DefaultPasswordType )
Defaults for new MPConfig structs
Variables ¶
This section is empty.
Functions ¶
Types ¶
type MPConfig ¶
type MPConfig struct { MasterPasswordSeed string `toml:"masterPasswordSeed,omitempty"` PasswordPurpose string `toml:"passwordPurpose,omitempty"` PasswordType string `toml:"passwordType,omitempty"` Fullname string `toml:"fullname,omitempty"` Password string `toml:"password,omitempty"` Site string `toml:"site,omitempty"` ConfigFile string // reordered for struct alignment Counter uint32 `toml:"counter,omitempty"` // Counter >= 1 // contains filtered or unexported fields }
MPConfig is the intermediate struct for toml.Unmarshal
userConfig =unmarshal=> MPConfig =merge=> MasterPW
func NewMPConfig ¶
func NewMPConfig() *MPConfig
NewMPConfig returns a new MPConfig with defaults set
func (*MPConfig) LoadConfig ¶
LoadConfig will load and toml.Unmarshal the given configFile
Click to show internal directories.
Click to hide internal directories.