Documentation ¶
Index ¶
- Variables
- type Field
- type FieldDesignation
- type FieldKind
- type FieldType
- type Item
- type ItemCategory
- type ItemDetail
- type Profile
- func (p *Profile) CreatedAt() time.Time
- func (p *Profile) Items() ([]*Item, error)
- func (p *Profile) Iterations() int
- func (p *Profile) Lock()
- func (p *Profile) PasswordHint() string
- func (p *Profile) Profile() string
- func (p *Profile) ProfileName() string
- func (p *Profile) Salt() []byte
- func (p *Profile) UUID() string
- func (p *Profile) Unlock(password string) error
- func (p *Profile) UpdatedAt() time.Time
- type Section
- type SectionField
- type Vault
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidPassword = errors.New("invalid password") ErrInvalidBand = errors.New("invalid band") ErrProfileLocked = errors.New("profile locked") )
Profile errors
View Source
var ( ErrVaultMustBeDir = errors.New("vault must be a directory") ErrInvalidProfile = errors.New("invalid profile") )
Vault Errors
View Source
var (
ErrInvalidItemKey = errors.New("invalid item key")
)
Item errors
View Source
var (
ErrInvalidOpdata = errors.New("invalid opdata")
)
Encryption errors
Functions ¶
This section is empty.
Types ¶
type Field ¶
type Field struct {
// contains filtered or unexported fields
}
func (*Field) Designation ¶
func (f *Field) Designation() FieldDesignation
type FieldDesignation ¶
type FieldDesignation string
const ( NoDesignation FieldDesignation = "" UsernameDesignation FieldDesignation = "username" PasswordDesignation FieldDesignation = "password" )
type FieldKind ¶
type FieldKind string
const ( ConcealedFieldKind FieldKind = "concealed" AddressFieldKind FieldKind = "address" DateFieldKind FieldKind = "date" MonthYearFieldKind FieldKind = "monthYear" StringFieldKind FieldKind = "string" URLFieldKind FieldKind = "URL" CCTypeFieldKind FieldKind = "cctype" PhoneFieldKind FieldKind = "phone" GenderFieldKind FieldKind = "gender" EmailFieldKind FieldKind = "email" MenuFieldKind FieldKind = "menu" )
type Item ¶
type Item struct {
// contains filtered or unexported fields
}
func (*Item) Category ¶
func (i *Item) Category() ItemCategory
func (*Item) Detail ¶
func (i *Item) Detail() (*ItemDetail, error)
type ItemCategory ¶
type ItemCategory string
const ( ItemCategoryLogin ItemCategory = "001" ItemCategoryCreditCard ItemCategory = "002" ItemCategorySecureNote ItemCategory = "003" ItemCategoryIdentity ItemCategory = "004" ItemCategoryPassword ItemCategory = "005" ItemCategoryTombstone ItemCategory = "099" ItemCategorySoftwareLicense ItemCategory = "100" ItemCategoryBankAccount ItemCategory = "101" ItemCategoryDatabase ItemCategory = "102" ItemCategoryDriverLicense ItemCategory = "103" ItemCategoryOutdoorLicense ItemCategory = "104" ItemCategoryMembership ItemCategory = "105" ItemCategoryPassport ItemCategory = "106" ItemCategoryRewards ItemCategory = "107" ItemCategorySSN ItemCategory = "108" ItemCategoryRouter ItemCategory = "109" ItemCategoryServer ItemCategory = "110" ItemCategoryEmail ItemCategory = "111" )
func (ItemCategory) String ¶
func (ic ItemCategory) String() string
type ItemDetail ¶
type ItemDetail struct {
// contains filtered or unexported fields
}
func (*ItemDetail) Fields ¶
func (id *ItemDetail) Fields() []*Field
func (*ItemDetail) Notes ¶
func (id *ItemDetail) Notes() string
func (*ItemDetail) Password ¶
func (id *ItemDetail) Password() string
func (*ItemDetail) Sections ¶
func (id *ItemDetail) Sections() []*Section
type Profile ¶
type Profile struct {
// contains filtered or unexported fields
}
func (*Profile) Iterations ¶
func (*Profile) PasswordHint ¶
func (*Profile) ProfileName ¶
type Section ¶
type Section struct {
// contains filtered or unexported fields
}
func (*Section) Fields ¶
func (s *Section) Fields() []*SectionField
type SectionField ¶
type SectionField struct {
// contains filtered or unexported fields
}
func (*SectionField) Kind ¶
func (f *SectionField) Kind() FieldKind
func (*SectionField) Name ¶
func (f *SectionField) Name() string
func (*SectionField) Title ¶
func (f *SectionField) Title() string
func (*SectionField) Value ¶
func (f *SectionField) Value() string
Click to show internal directories.
Click to hide internal directories.