Documentation ¶
Index ¶
- Constants
- func Open(path, name string) (safe.Service, error)
- type Safe
- func (s *Safe) Close() error
- func (s *Safe) CreateOwner(p *safe.Passphrase) error
- func (s *Safe) CreateTag(t *safe.Tag) error
- func (s *Safe) CreateVault(e *safe.Vault) error
- func (s *Safe) DeleteTag(key string) error
- func (s *Safe) DeleteVault(key string) error
- func (s *Safe) HasOwner() bool
- func (s *Safe) IsOwner(p *safe.Passphrase) bool
- func (s *Safe) Tags() ([]*safe.Tag, error)
- func (s *Safe) UpdateVault(e *safe.Vault) error
- func (s *Safe) Vault(hash crypto.Hash, key string) (*safe.Vault, error)
- func (s *Safe) Vaults(hash crypto.Hash, tag *safe.Tag, prefix string) ([]*safe.Vault, error)
Constants ¶
View Source
const ( // OwnerTable is the name of the table where store the information's owner. OwnerTable = "owner" // VaultTable is the name of the table to store the vaults. VaultTable = "vault" // TagTable is the table's name to store tags. TagTable = "tag" )
Lists of data tables.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Safe ¶
type Safe struct {
// contains filtered or unexported fields
}
Safe is the BoldDB database.
func (*Safe) Close ¶
Close closes the connection to database. It implements the io.Closer interface.
func (*Safe) CreateOwner ¶
func (s *Safe) CreateOwner(p *safe.Passphrase) error
CreateOwner implements the safe.OwnerService.
func (*Safe) CreateVault ¶
CreateVault implements the VaultService interface.
func (*Safe) DeleteVault ¶
DeleteVault implements the VaultService interface.
func (*Safe) IsOwner ¶
func (s *Safe) IsOwner(p *safe.Passphrase) bool
IsOwner implements the safe.OwnerService.
func (*Safe) UpdateVault ¶
UpdateVault implements the VaultService interface.
Click to show internal directories.
Click to hide internal directories.