Documentation ¶
Index ¶
- type 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
- 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
- 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
- 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
- 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
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Entry ¶
type Entry struct {
// contains filtered or unexported fields
}
Entry is database access oject for entries
func (*Entry) FindByTeam ¶
func (o *Entry) FindByTeam(TeamID util.OID, userID string, IsDeleted bool) ( entries []*schema.EntrySum, err error)
FindByTeam ...
type File ¶
type File struct {
// contains filtered or unexported fields
}
File is database access oject for files
func (*File) Create ¶
func (o *File) Create(userID, name, key string, data []byte) (fileResult *schema.FileResult, err error)
Create ...
type Secret ¶
type Secret struct {
// contains filtered or unexported fields
}
Secret is database access oject for secrets
func (*Secret) Create ¶
func (o *Secret) Create(EntryID util.OID, userID, key string, secret *schema.Secret) ( secretResult *schema.SecretResult, err error)
Create ...
func (*Secret) FindSecrets ¶
FindSecrets ...
type Share ¶
type Share struct {
// contains filtered or unexported fields
}
Share is database access oject for share
func (*Share) Create ¶
func (o *Share) Create(EntryID util.OID, key, pass string, expire time.Duration, share *schema.Share) ( shareResult *schema.ShareResult, err error)
Create ...
func (*Share) FindByEntryID ¶
FindByEntryID ...
func (*Share) FindByTeamID ¶
FindByTeamID ...
func (*Share) FindByUserID ¶
func (o *Share) FindByUserID(userID string) (shares []*schema.ShareResult, err error)
FindByUserID ...
type Team ¶
type Team struct {
// contains filtered or unexported fields
}
Team is database access oject for teams
func (*Team) CheckToken ¶
CheckToken ...
func (*Team) Create ¶
func (o *Team) Create(userID, pass string, team *schema.Team) (teamResult *schema.TeamResult, err error)
Create ...
func (*Team) FindByMemberID ¶
func (o *Team) FindByMemberID(memberID string) (teams []*schema.TeamResult, err error)
FindByMemberID ...
func (*Team) FindByUserID ¶
FindByUserID ...
func (*Team) Update ¶
func (o *Team) Update(TeamID util.OID, team *schema.Team) (teamResult *schema.TeamResult, err error)
Update ...
func (*Team) UpdateMembers ¶
func (o *Team) UpdateMembers(userID string, TeamID util.OID, pull, push []string) ( teamResult *schema.TeamResult, err error)
UpdateMembers ...
Click to show internal directories.
Click to hide internal directories.