keepassv1

package
v0.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 22, 2022 License: ISC Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WrapEntry

func WrapEntry(entry *keepass.Entry, db t.Database) t.Entry

func WrapGroup

func WrapGroup(group *keepass.Group, db t.Database) t.Group

Types

type Database

type Database struct {
	c.Database
	// contains filtered or unexported fields
}

func (*Database) Binary

func (d *Database) Binary(id int, name string) (t.OptionalWrapper, error)

Binary returns an OptionalWrapper with Present sent to false as v1 doesn't handle binaries through the database

func (*Database) Init

func (d *Database) Init(options t.Options) error

Init initializes the v1 database based on the provided options

func (*Database) Raw

func (d *Database) Raw() interface{}

func (*Database) Root

func (d *Database) Root() t.Group

Root returns the DB root

func (*Database) Save

func (d *Database) Save() error

Save will backup the DB, save it, then remove the backup is the save was successful

func (*Database) Version

func (d *Database) Version() t.Version

Version returns the t.Version enum representing this DB

type Entry

type Entry struct {
	c.Entry
	// contains filtered or unexported fields
}

func (*Entry) CreationTime

func (e *Entry) CreationTime() time.Time

func (*Entry) ExpiredTime

func (e *Entry) ExpiredTime() time.Time

func (*Entry) Get

func (e *Entry) Get(field string) (rv t.Value)

func (*Entry) LastAccessTime

func (e *Entry) LastAccessTime() time.Time

func (*Entry) LastModificationTime

func (e *Entry) LastModificationTime() time.Time

func (*Entry) Parent

func (e *Entry) Parent() t.Group

func (*Entry) Password

func (e *Entry) Password() string

func (*Entry) Path

func (e *Entry) Path() (string, error)

func (*Entry) Raw

func (e *Entry) Raw() interface{}

func (*Entry) Set

func (e *Entry) Set(value t.Value) (updated bool)

func (*Entry) SetCreationTime

func (e *Entry) SetCreationTime(t time.Time)

func (*Entry) SetExpiredTime

func (e *Entry) SetExpiredTime(t time.Time)

func (*Entry) SetLastAccessTime

func (e *Entry) SetLastAccessTime(t time.Time)

func (*Entry) SetLastModificationTime

func (e *Entry) SetLastModificationTime(t time.Time)

func (*Entry) SetParent

func (e *Entry) SetParent(g t.Group) error

func (*Entry) SetPassword

func (e *Entry) SetPassword(password string)

func (*Entry) SetTitle

func (e *Entry) SetTitle(title string)

func (*Entry) SetUsername

func (e *Entry) SetUsername(name string)

func (*Entry) Title

func (e *Entry) Title() string

func (*Entry) UUIDString

func (e *Entry) UUIDString() (string, error)

func (*Entry) Username

func (e *Entry) Username() string

func (*Entry) Values

func (e *Entry) Values() (vals []t.Value, err error)

type Group

type Group struct {
	c.Group
	// contains filtered or unexported fields
}

func (*Group) AddEntry

func (g *Group) AddEntry(e t.Entry) error

func (*Group) AddSubgroup

func (g *Group) AddSubgroup(subgroup t.Group) error

func (*Group) Entries

func (g *Group) Entries() (rv []t.Entry)

func (*Group) Groups

func (g *Group) Groups() (rv []t.Group)

func (*Group) IsRoot

func (g *Group) IsRoot() bool

func (*Group) Name

func (g *Group) Name() string

func (*Group) NewEntry

func (g *Group) NewEntry(name string) (t.Entry, error)

func (*Group) NewSubgroup

func (g *Group) NewSubgroup(name string) (t.Group, error)

func (*Group) Parent

func (g *Group) Parent() t.Group

func (*Group) Raw

func (g *Group) Raw() interface{}

func (*Group) RemoveEntry

func (g *Group) RemoveEntry(e t.Entry) error

func (*Group) RemoveSubgroup

func (g *Group) RemoveSubgroup(subgroup t.Group) error

func (*Group) SetName

func (g *Group) SetName(name string)

func (*Group) SetParent

func (g *Group) SetParent(parent t.Group) error

func (*Group) UUIDString

func (g *Group) UUIDString() (string, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL