Versions in this module Expand all Collapse all v1 v1.0.0 Jul 1, 2020 Changes in this version + var ErrInvalidBand = errors.New("invalid band") + var ErrInvalidItemKey = errors.New("invalid item key") + var ErrInvalidOpdata = errors.New("invalid opdata") + var ErrInvalidPassword = errors.New("invalid password") + var ErrInvalidProfile = errors.New("invalid profile") + var ErrProfileLocked = errors.New("profile locked") + var ErrVaultMustBeDir = errors.New("vault must be a directory") + type Field struct + func (f *Field) Designation() FieldDesignation + func (f *Field) Name() string + func (f *Field) Type() FieldType + func (f *Field) Value() string + type FieldDesignation string + const NoDesignation + const PasswordDesignation + const UsernameDesignation + type FieldKind string + const AddressFieldKind + const CCTypeFieldKind + const ConcealedFieldKind + const DateFieldKind + const EmailFieldKind + const GenderFieldKind + const MenuFieldKind + const MonthYearFieldKind + const PhoneFieldKind + const StringFieldKind + const URLFieldKind + type FieldType string + const CheckboxFieldType + const EmailFieldType + const NumberFieldType + const PasswordFieldType + const RadioFieldType + const TelephoneFieldType + const TextFieldType + const URLFieldType + type Item struct + func (i *Item) Category() ItemCategory + func (i *Item) Detail() (*ItemDetail, error) + func (i *Item) Tags() []string + func (i *Item) Title() string + func (i *Item) Trashed() bool + type ItemCategory string + const ItemCategoryBankAccount + const ItemCategoryCreditCard + const ItemCategoryDatabase + const ItemCategoryDriverLicense + const ItemCategoryEmail + const ItemCategoryIdentity + const ItemCategoryLogin + const ItemCategoryMembership + const ItemCategoryOutdoorLicense + const ItemCategoryPassport + const ItemCategoryPassword + const ItemCategoryRewards + const ItemCategoryRouter + const ItemCategorySSN + const ItemCategorySecureNote + const ItemCategoryServer + const ItemCategorySoftwareLicense + const ItemCategoryTombstone + func (ic ItemCategory) String() string + type ItemDetail struct + func (id *ItemDetail) Fields() []*Field + func (id *ItemDetail) Notes() string + func (id *ItemDetail) Password() string + func (id *ItemDetail) Sections() []*Section + type Profile struct + 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 struct + func (s *Section) Fields() []*SectionField + func (s *Section) Name() string + func (s *Section) Title() string + type SectionField struct + func (f *SectionField) Kind() FieldKind + func (f *SectionField) Name() string + func (f *SectionField) Title() string + func (f *SectionField) Value() string + type Vault struct + func Open(dir string) (*Vault, error) + func (v *Vault) Profile(profile string) (*Profile, error) + func (v *Vault) ProfileNames() ([]string, error)