Documentation ¶
Index ¶
- Constants
- Variables
- type Password
- type PasswordRepresentation
- type PasswordService
- func (p *PasswordService) DeletePassword(name string) error
- func (p *PasswordService) ExportToCsv(filename string)
- func (p *PasswordService) GetPassword(name string) (*PasswordRepresentation, error)
- func (p *PasswordService) ListPasswords() []*PasswordRepresentation
- func (p *PasswordService) StorePassword(representation PasswordRepresentation) (*PasswordRepresentation, error)
- type Storage
Constants ¶
View Source
const DEFAULT_DATABASE_NAME = "harpocrates.db"
View Source
const DEFAULT_SETTINGS_NAME = "harpocrates.ini"
Variables ¶
View Source
var PRIVATE_KEY_LOCATION string
View Source
var PUBLIC_KEY_LOCATION string
Functions ¶
This section is empty.
Types ¶
type PasswordRepresentation ¶
type PasswordService ¶
type PasswordService struct {
// contains filtered or unexported fields
}
func NewPasswordService ¶
func NewPasswordService( cryptoManager core.CryptoManager, privateKey *rsa.PrivateKey, publicKey *rsa.PublicKey, storageService Storage, ) *PasswordService
func (*PasswordService) DeletePassword ¶
func (p *PasswordService) DeletePassword(name string) error
func (*PasswordService) ExportToCsv ¶
func (p *PasswordService) ExportToCsv(filename string)
func (*PasswordService) GetPassword ¶
func (p *PasswordService) GetPassword(name string) (*PasswordRepresentation, error)
func (*PasswordService) ListPasswords ¶
func (p *PasswordService) ListPasswords() []*PasswordRepresentation
func (*PasswordService) StorePassword ¶
func (p *PasswordService) StorePassword(representation PasswordRepresentation) (*PasswordRepresentation, error)
Click to show internal directories.
Click to hide internal directories.