Documentation
¶
Index ¶
- type Vault
- type VaultEntry
- func (entry VaultEntry) DisplayName() string
- func (entry VaultEntry) IsCounterBased() bool
- func (entry VaultEntry) IsTimeBased() bool
- func (entry VaultEntry) MarshalJSON() ([]byte, error)
- func (entry VaultEntry) Matches(query string, groupsByID map[string]VaultGroup) bool
- func (entry *VaultEntry) UnmarshalJSON(data []byte) error
- type VaultGroup
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Vault ¶
type Vault struct {
Version int `json:"version"`
Entries []VaultEntry `json:"entries"`
Groups []VaultGroup `json:"groups"`
}
func EmptyVault ¶
func EmptyVault() Vault
func (Vault) FilteredEntries ¶
func (vault Vault) FilteredEntries(query string) []VaultEntry
func (Vault) GroupsByID ¶
func (vault Vault) GroupsByID() map[string]VaultGroup
func (Vault) MarshalJSON ¶
func (*Vault) UnmarshalJSON ¶
type VaultEntry ¶
type VaultEntry struct {
Type string
UUID string
Name string
Issuer string
Secret string
Algo string
Digits int
Period *int
Counter *int
Note string
Favorite bool
Icon any
IconMime any
IconHash any
Groups []string
Pin *string
}
func (VaultEntry) DisplayName ¶
func (entry VaultEntry) DisplayName() string
func (VaultEntry) IsCounterBased ¶
func (entry VaultEntry) IsCounterBased() bool
func (VaultEntry) IsTimeBased ¶
func (entry VaultEntry) IsTimeBased() bool
func (VaultEntry) MarshalJSON ¶
func (entry VaultEntry) MarshalJSON() ([]byte, error)
func (VaultEntry) Matches ¶
func (entry VaultEntry) Matches(query string, groupsByID map[string]VaultGroup) bool
func (*VaultEntry) UnmarshalJSON ¶
func (entry *VaultEntry) UnmarshalJSON(data []byte) error
type VaultGroup ¶
Click to show internal directories.
Click to hide internal directories.