Documentation ¶
Index ¶
- Variables
- func DetermineVaultPath(logger *logrus.Logger, vaultPathFlag string) (vaultPath string)
- func InitializeStore(logger *logrus.Logger, vaultPath string, nonInteractive bool) *unlock.SecureStore
- func OpenVault(logger *logrus.Logger, pinEnable bool, nonInteractive bool, vaultPath string, ...) (vault *Vault, credentials *VaultCredentials, err error)
- func QuoteList(items []string) string
- func Version(prefix, suffix, versionFull bool) string
- type Card
- type Keyfile
- type Tabler
- type Vault
- type VaultCredentials
- type VaultInfo
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Major = "0" Minor = "5" Patch = "3" Suffix = "dev" )
Functions ¶
func DetermineVaultPath ¶ added in v0.5.0
DetermineVaultPath : Try to programatically determine the vault path based on the default path value
func InitializeStore ¶ added in v0.4.4
Types ¶
type Card ¶
type Card struct { // plaintext UUID string `json:"uuid,omitempty" yaml:"uuid,omitempty"` CreatedAt int64 `json:"created,omitempty" yaml:"created,omitempty"` Type string `json:"card_type,omitempty" yaml:"card_type,omitempty"` UpdatedAt int64 `json:"updated,omitempty" yaml:"updated,omitempty"` Title string `json:"title,omitempty" yaml:"title,omitempty"` Subtitle string `json:"subtitle,omitempty" yaml:"subtitle,omitempty"` Note string `json:"note,omitempty" yaml:"note,omitempty"` Trashed int64 `json:"trashed,omitempty" yaml:"trashed,omitempty"` Deleted int64 `json:"deleted,omitempty" yaml:"deleted,omitempty"` Category string `json:"category,omitempty" yaml:"category,omitempty"` Label string `json:"label,omitempty" yaml:"label,omitempty"` LastUsed int64 `json:"last_used,omitempty" yaml:"last_used,omitempty"` Sensitive bool `json:"sensitive,omitempty" yaml:"sensitive,omitempty"` Icon string `json:"icon,omitempty" yaml:"icon,omitempty"` DecryptedValue string `json:"decrypted_value,omitempty" yaml:"decrypted_value,omitempty"` // encrypted RawValue string `json:"raw_value,omitempty" yaml:"raw_value,omitempty"` Key []byte `json:"key,omitempty" yaml:"key,omitempty"` }
type Vault ¶
type Vault struct { // settings for filtering entries FilterFields []string FilterAnd bool // contains filtered or unexported fields }
Vault : vault is the container object for vault-related operations
func (*Vault) Close ¶
func (v *Vault) Close()
Close : close the connection to the underlying database. Always call this in the end.
func (*Vault) GetEntries ¶
func (v *Vault) GetEntries(cardType string, recordCategory, recordTitle, recordLogin, recordUuid, recordFieldLabel []string, caseSensitive bool, orderbyFlag []string) ([]Card, error)
GetEntries : return the cardType entries in the Enpass database filtered by option flags.
type VaultCredentials ¶
func AssembleVaultCredentials ¶ added in v0.4.4
func AssembleVaultCredentials(logger *logrus.Logger, vaultPath string, keyFilePath string, nonInteractive bool, store *unlock.SecureStore) *VaultCredentials
func (*VaultCredentials) IsComplete ¶
func (credentials *VaultCredentials) IsComplete() bool
Click to show internal directories.
Click to hide internal directories.