Documentation ¶
Index ¶
- func WrapEntry(entry *g.Entry, db t.Database) t.Entry
- func WrapGroup(g *gokeepasslib.Group, db t.Database) t.Group
- type Database
- type Entry
- func (e *Entry) CreationTime() time.Time
- func (e *Entry) ExpiredTime() time.Time
- func (e Entry) Get(field string) (t.Value, bool)
- func (e *Entry) LastAccessTime() time.Time
- func (e *Entry) LastModificationTime() time.Time
- func (e *Entry) Password() string
- func (e *Entry) Raw() interface{}
- func (e *Entry) Set(value t.Value) bool
- func (e *Entry) SetCreationTime(t time.Time)
- func (e *Entry) SetExpiredTime(t time.Time)
- func (e *Entry) SetLastAccessTime(t time.Time)
- func (e *Entry) SetLastModificationTime(t time.Time)
- func (e *Entry) SetPassword(password string)
- func (e *Entry) SetTitle(title string)
- func (e *Entry) SetUsername(name string)
- func (e *Entry) Title() string
- func (e *Entry) UUIDString() (string, error)
- func (e *Entry) Username() string
- func (e *Entry) Values() (values []t.Value, err error)
- type Group
- func (g *Group) AddEntry(e t.Entry) error
- func (g *Group) AddSubgroup(subgroup t.Group) error
- func (g *Group) Entries() (rv []t.Entry)
- func (g *Group) Groups() (rv []t.Group)
- func (g *Group) IsRoot() bool
- func (g *Group) Name() string
- func (g *Group) NewEntry(name string) (t.Entry, error)
- func (g *Group) NewSubgroup(name string) (t.Group, error)
- func (g *Group) Parent() t.Group
- func (g *Group) Raw() interface{}
- func (g *Group) RemoveEntry(entry t.Entry) error
- func (g *Group) RemoveSubgroup(subgroup t.Group) error
- func (g *Group) SetName(name string)
- func (g *Group) SetParent(parent t.Group) error
- func (g *Group) UUIDString() (string, error)
- type RootGroup
- func (r *RootGroup) AddEntry(e t.Entry) error
- func (r *RootGroup) AddSubgroup(subgroup t.Group) error
- func (r *RootGroup) Entries() (rv []t.Entry)
- func (r *RootGroup) Groups() (rv []t.Group)
- func (r *RootGroup) IsRoot() bool
- func (r *RootGroup) Name() string
- func (r *RootGroup) NewEntry(name string) (t.Entry, error)
- func (r *RootGroup) NewSubgroup(name string) (t.Group, error)
- func (r *RootGroup) Parent() t.Group
- func (r *RootGroup) Path() (string, error)
- func (r *RootGroup) Raw() interface{}
- func (r *RootGroup) RemoveEntry(entry t.Entry) error
- func (r *RootGroup) RemoveSubgroup(subgroup t.Group) error
- func (r *RootGroup) Search(term *regexp.Regexp) (paths []string, err error)
- func (r *RootGroup) SetName(name string)
- func (r *RootGroup) SetParent(parent t.Group) error
- func (r *RootGroup) UUIDString() (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Database ¶
func (*Database) Binary ¶
Binary returns a Value in an OptionalWrapper representing a binary because v2 stores half the metadata in the entry and half in the database, this function takes a 'Name' parameter so it can properly create the values Returns an empty Value (not even with a Name) if the binary doesn't exit, Returns a full Value if it does
type Entry ¶
func (*Entry) CreationTime ¶
func (*Entry) ExpiredTime ¶
func (*Entry) LastAccessTime ¶
func (*Entry) LastModificationTime ¶
func (*Entry) SetCreationTime ¶
func (*Entry) SetExpiredTime ¶
func (*Entry) SetLastAccessTime ¶
func (*Entry) SetLastModificationTime ¶
func (*Entry) SetPassword ¶
func (*Entry) SetUsername ¶
func (*Entry) UUIDString ¶
returns the fully qualified path to the entry, if there's no parent, only the name is returned
type Group ¶
func (*Group) NewSubgroup ¶
Creates a new subgroup with a given name under this group
func (*Group) RemoveSubgroup ¶
RemoveSubgroup will remove a group from a parent group If this function returns an error, that means that either the UUIDs on the parent or child were corrupted or the group didn't actually exist in the parent
func (*Group) UUIDString ¶
type RootGroup ¶
type RootGroup struct {
// contains filtered or unexported fields
}
func (*RootGroup) Entries ¶
technically, this could return all the entries in the database, but since that's inconsistent with other groups, leaving it this way for now
func (*RootGroup) NewSubgroup ¶
Creates a new subgroup with a given name under this group