Versions in this module Expand all Collapse all v0 v0.2.0 Jan 17, 2017 Changes in this version + func DBError(err error) error + func EntryIDFromKey(key string) uuid.UUID + func ShareIDFromKey(key string) uuid.UUID + func TeamIDFromKey(key string) uuid.UUID type Entry + func (e *Entry) HasSecret(secretID string) bool + func (e *Entry) RemoveSecret(secretID string) bool type Share + ToUser string type ShareResult + ToUser string + type StringSlice []string + func (s StringSlice) Add(str string) ([]string, bool) + func (s StringSlice) Has(str string) bool + func (s StringSlice) Remove(str string) ([]string, bool) type Team + IsFrozen bool + func (t *Team) AddMember(userID string) bool + func (t *Team) HasMember(userID string) bool + func (t *Team) RemoveMember(userID string) bool type TeamResult + IsFrozen bool v0.1.0 Jan 14, 2017 Changes in this version + var DB *buntdb.DB + var DBSalt = make([]byte, 64) + func EntryKey(id string) string + func InitIndex() + func Open(path string) (err error) + func SecretKey(id string) string + func ShareKey(id string) string + func TeamKey(id string) string + func UserKey(name string) string + type Entry struct + Category string + Created time.Time + ID uuid.UUID + IsDeleted bool + Name string + OwnerID string + OwnerType string + Priority int + Secrets []uuid.UUID + Shares []uuid.UUID + Updated time.Time + func EntryFrom(str string) (*Entry, error) + func (e *Entry) Result(secrets []*SecretResult, shares []*ShareResult) *EntryResult + func (e *Entry) String() string + func (e *Entry) Summary() *EntrySum + type EntryResult struct + Category string + Created time.Time + ID uuid.UUID + Name string + OwnerID string + OwnerType string + Priority int + Secrets []*SecretResult + Shares []*ShareResult + Updated time.Time + func (e *EntryResult) String() string + type EntrySum struct + Category string + Created time.Time + ID uuid.UUID + Name string + Priority int + Updated time.Time + func (e *EntrySum) String() string + type Secret struct + Created time.Time + Name string + Note string + Pass string + URL string + Updated time.Time + func SecretFrom(str string) (*Secret, error) + func (s *Secret) Result(id uuid.UUID) *SecretResult + func (s *Secret) String() string + type SecretResult struct + Created time.Time + ID uuid.UUID + Name string + Note string + Pass string + URL string + Updated time.Time + func (s *SecretResult) String() string + type Share struct + Created time.Time + Expire time.Time + ID uuid.UUID + Members []string + Name string + Salt string + TTL int + Updated time.Time + func ShareFrom(str string) (*Share, error) + func (s *Share) Result() *ShareResult + func (s *Share) String() string + type ShareResult struct + Created time.Time + Expire time.Time + ID uuid.UUID + Members []string + Name string + TTL int + Updated time.Time + type Team struct + Created time.Time + Entries []uuid.UUID + ID uuid.UUID + IsBlocked bool + IsDeleted bool + Members []string + Name string + OwnerID uuid.UUID + Pass string + Updated time.Time + func TeamFrom(str string) (*Team, error) + func (t *Team) Result() *TeamResult + func (t *Team) String() string + type TeamResult struct + Created time.Time + ID uuid.UUID + Members []string + Name string + OwnerID uuid.UUID + Updated time.Time + func (t *TeamResult) String() string + type User struct + Attempt int + Created time.Time + Entries []uuid.UUID + ID string + IsBlocked bool + Pass string + Updated time.Time + func UserFrom(str string) (*User, error) + func (u *User) Result() *UserResult + func (u *User) String() string + type UserResult struct + Created time.Time + ID string + Updated time.Time + func (u *UserResult) String() string