Documentation ¶
Index ¶
- Constants
- type Config
- func (c *Config) GetMasterKey() ([]byte, error)
- func (c *Config) GetMasterPasswordHash() ([]byte, error)
- func (c *Config) GetToken() (LoginToken, error)
- func (c *Config) GetUserSymmetricKey() ([]byte, error)
- func (c *Config) HasPin() bool
- func (c *Config) IsLocked() bool
- func (c *Config) IsLoggedIn() bool
- func (c *Config) Lock()
- func (c *Config) Purge()
- func (c *Config) SetMasterKey(key []byte) error
- func (c *Config) SetMasterPasswordHash(hash []byte) error
- func (c *Config) SetToken(token LoginToken) error
- func (c *Config) SetUserSymmetricKey(key []byte) error
- func (cfg *Config) TryUnlock(vault *vault.Vault) error
- func (c *Config) Unlock(password string) bool
- func (c *Config) UpdatePin(password string, write bool)
- func (config *Config) WriteConfig() error
- type ConfigFile
- type LoginToken
Constants ¶
View Source
const ( KDFIterations = 2 KDFMemory = 2 * 1024 * 1024 KDFThreads = 8 ConfigPath = "/.config/goldwarden.json" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { ConfigFile ConfigFile // contains filtered or unexported fields }
func DefaultConfig ¶
func DefaultConfig() Config
func ReadConfig ¶
func (*Config) GetMasterKey ¶
func (*Config) GetMasterPasswordHash ¶
func (*Config) GetToken ¶
func (c *Config) GetToken() (LoginToken, error)
func (*Config) GetUserSymmetricKey ¶
func (*Config) IsLoggedIn ¶
func (*Config) SetMasterKey ¶
func (*Config) SetMasterPasswordHash ¶
func (*Config) SetToken ¶
func (c *Config) SetToken(token LoginToken) error
func (*Config) SetUserSymmetricKey ¶
func (*Config) WriteConfig ¶
type ConfigFile ¶
Click to show internal directories.
Click to hide internal directories.