Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Acronymbase ¶
Acronymbase is a database connection for the acronym operations
type Contentbase ¶
type Contentbase interface { Database Insert(...types.ContentLine) error Len(id types.StoreID) (int64, error) Slice(id types.StoreID, start int, end int) ([]types.ContentLine, error) RegexSearchFile(regex string, file types.StoreID, start int, end int) ([]types.ContentLine, error) }
Contentbase is a database connection for the content operations
type Database ¶
type Database interface { Init(context.Context, bool) error Owner() Ownerbase File() Filebase Store() Storebase Content() Contentbase Tag() Tagbase Acronym() Acronymbase View() Viewbase Connect(context.Context) (Database, error) Close(context.Context) error GetContext() context.Context }
Database is the root Database interface
type Filebase ¶
type Filebase interface { Database Reserve(id types.FileID) (types.FileID, error) Insert(r types.FileI) error Get(fid types.FileID) (types.FileI, error) GetAll(fids ...types.FileID) ([]types.FileI, error) Update(r types.FileI) error Remove(r types.FileID) error GetOwned(uid types.OwnerID) ([]types.FileI, error) GetPermKey(uid types.OwnerID, pkey string) ([]types.FileI, error) // does not include owned records Count(uid types.OwnerID, pkeys ...string) (int64, error) MatchStore(types.OwnerID, []types.StoreID, ...string) ([]types.FileI, error) }
Filebase is a database connection for file operations
type Ownerbase ¶
type Ownerbase interface { Database Reserve(id types.OwnerID, name string) (types.OwnerID, error) Insert(u types.Owner) error Get(id types.OwnerID) (types.Owner, error) FindUserName(name string) (types.UserI, error) FindGroupName(name string) (types.GroupI, error) GetGroups(id types.OwnerID) (owned []types.GroupI, member []types.GroupI, err error) Update(u types.Owner) error GetSpace(o types.OwnerID) (int64, error) GetTotalSpace(o types.OwnerID) (int64, error) GetResetKey(id types.OwnerID) (key string, err error) CheckResetKey(key string) (id types.OwnerID, err error) DeleteResetKey(id types.OwnerID) error }
Ownerbase is a database connection for owner related actions
type Storebase ¶
type Storebase interface { Database Reserve(id types.StoreID) (types.StoreID, error) Insert(fs *types.FileStore) error Get(id types.StoreID) (*types.FileStore, error) MatchHash(h uint32) ([]*types.FileStore, error) UpdateMeta(fs *types.FileStore) error }
Storebase is a database connection for file store operations
type Tagbase ¶
type Tagbase interface { Database Upsert(...tag.FileTag) error Remove(...tag.FileTag) error Get(types.FileID, types.OwnerID) ([]tag.FileTag, error) GetType(types.FileID, types.OwnerID, tag.Type) ([]tag.FileTag, error) GetAll(tag.Type, types.OwnerID) ([]tag.FileTag, error) SearchOwned(types.OwnerID, ...tag.FileTag) ([]types.FileID, error) SearchAccess(types.OwnerID, string, ...tag.FileTag) ([]types.FileID, error) SearchFiles([]types.FileID, ...tag.FileTag) ([]types.FileID, error) }
Tagbase is a database connection for the tag operations
Click to show internal directories.
Click to hide internal directories.