Documentation ¶
Overview ¶
Package fstree provides a dead simple file-based database storage backend. It is primarily meant for easy testing or storing big files that can easily be accesses directly, without datastore.
Index ¶
- func NewFSTree(name, location string) (storage.Interface, error)
- type FSTree
- func (fst *FSTree) Delete(key string) error
- func (fst *FSTree) Get(key string) (record.Record, error)
- func (fst *FSTree) GetMeta(key string) (*record.Meta, error)
- func (fst *FSTree) Injected() bool
- func (fst *FSTree) MaintainRecordStates(ctx context.Context, purgeDeletedBefore time.Time, shadowDelete bool) error
- func (fst *FSTree) Put(r record.Record) (record.Record, error)
- func (fst *FSTree) Query(q *query.Query, local, internal bool) (*iterator.Iterator, error)
- func (fst *FSTree) ReadOnly() bool
- func (fst *FSTree) Shutdown() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type FSTree ¶
type FSTree struct {
// contains filtered or unexported fields
}
FSTree database storage.
func (*FSTree) MaintainRecordStates ¶
func (fst *FSTree) MaintainRecordStates(ctx context.Context, purgeDeletedBefore time.Time, shadowDelete bool) error
MaintainRecordStates maintains records states in the database.
Click to show internal directories.
Click to hide internal directories.