Lines Matching defs:Records
93 type Records struct { struct
94 Version int
95 VaultId int
96 HmacKey []byte
97 Passwords map[string]PasswordRecord
99 localPath string // Path of current vault
350 func (records *Records) WriteRecordsToDisk() error {
363 …Records) AddNewRecord(name, password string, admin bool, userType string) (PasswordRecord, error) {
373 …nc (records *Records) ChangePassword(name, password, newPassword, hipchatName string) (err error) {
445 func (records *Records) DeleteRecord(name string) error {
454 func (records *Records) RevokeRecord(name string) error {
464 func (records *Records) MakeAdmin(name string) error {
474 func (records *Records) SetRecord(pr PasswordRecord, name string) {
479 func (records *Records) GetRecord(name string) (PasswordRecord, bool) {
485 func (records *Records) GetVaultID() (id int, err error) {
490 func (records *Records) GetHMACKey() (key []byte, err error) {
495 func (records *Records) NumRecords() int {
500 func (records *Records) GetSummary() (summary map[string]Summary) {
628 func (records *Records) GetAltNameFromName(alt, name string) (altName string, found bool) {
636 func (r *Records) GetAltNamesFromName(alt string, names []string) map[string]string {