Versions in this module Expand all Collapse all v0 v0.5.0 Feb 21, 2017 Changes in this version + type Entry struct + func NewEntry(db *service.DB) *Entry + func (o *Entry) Create(userID string, entry *schema.Entry) (entrySum *schema.EntrySum, err error) + func (o *Entry) Find(EntryID util.OID, IsDeleted bool) (entry *schema.Entry, err error) + func (o *Entry) FindByTeam(TeamID util.OID, userID string, IsDeleted bool) (entries []*schema.EntrySum, err error) + func (o *Entry) Update(userID string, EntryID util.OID, changes map[string]interface{}) (entrySum *schema.EntrySum, err error) + func (o *Entry) UpdateDeleted(userID string, EntryID util.OID, isDeleted bool) (entrySum *schema.EntrySum, err error) + type File struct + func NewFile(db *service.DB) *File + func (o *File) Create(userID, name, key string, data []byte) (fileResult *schema.FileResult, err error) + func (o *File) Delete(FileID util.OID) error + func (o *File) FindFile(FileID util.OID, key string) (file *schema.File, fileBlob schema.FileBlob, err error) + func (o *File) FindFiles(key string, ids ...string) (files []*schema.FileResult, err error) + type Secret struct + func NewSecret(db *service.DB) *Secret + func (o *Secret) Create(EntryID util.OID, userID, key string, secret *schema.Secret) (secretResult *schema.SecretResult, err error) + func (o *Secret) Delete(EntryID, SecretID util.OID, userID string) error + func (o *Secret) FindSecrets(key string, ids ...string) (secrets []*schema.SecretResult, err error) + func (o *Secret) Update(EntryID, SecretID util.OID, userID, key string, changes map[string]interface{}) (secretResult *schema.SecretResult, err error) + type Share struct + func NewShare(db *service.DB) *Share + func (o *Share) Create(EntryID util.OID, key, pass string, expire time.Duration, share *schema.Share) (shareResult *schema.ShareResult, err error) + func (o *Share) Delete(ShareID util.OID, userID string) error + func (o *Share) Find(ShareID util.OID) (share *schema.Share, err error) + func (o *Share) FindByEntryID(EntryID util.OID) (shares []*schema.ShareResult, err error) + func (o *Share) FindByTeamID(TeamID util.OID) (shares []*schema.ShareResult, err error) + func (o *Share) FindByUserID(userID string) (shares []*schema.ShareResult, err error) + type Team struct + func NewTeam(db *service.DB) *Team + func (o *Team) CheckToken(TeamID util.OID, userID, pass string) (team *schema.Team, err error) + func (o *Team) CheckUser(TeamID util.OID, userID string) error + func (o *Team) Create(userID, pass string, team *schema.Team) (teamResult *schema.TeamResult, err error) + func (o *Team) Find(TeamID util.OID, IsDeleted bool) (team *schema.Team, err error) + func (o *Team) FindByMemberID(memberID string) (teams []*schema.TeamResult, err error) + func (o *Team) FindByUserID(userID string, IsDeleted bool) (teams []*schema.TeamResult, err error) + func (o *Team) Update(TeamID util.OID, team *schema.Team) (teamResult *schema.TeamResult, err error) + func (o *Team) UpdateMembers(userID string, TeamID util.OID, pull, push []string) (teamResult *schema.TeamResult, err error) + type User struct + func NewUser(db *service.DB) *User + func (o *User) CheckID(id string) error + func (o *User) CheckLogin(id, pass string) (user *schema.User, err error) + func (o *User) Create(userID, pass string) (user *schema.User, err error) + func (o *User) Find(id string) (user *schema.User, err error) + func (o *User) Update(user *schema.User) error