Documentation
¶
Overview ¶
Package schema is the ent schema of the index: store settings, sets with their commits, versions, refs and retention state, pins, tombstoned refs and the archive index, in one database.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Archive ¶
Archive is a pack archive with its state and owning session: a pending archive is visible only to its session and goes with it.
type CommitRow ¶
CommitRow is an indexed commit with its receipt order, presence filter, verified size and retention lifecycle: retire_at and expires_at are set by policy, deleted_at by an operator, tombstoned_at once the tombstone is durable; a live commit has none of them. (Commit is what ent calls ending a transaction.)
func (CommitRow) Annotations ¶
func (CommitRow) Annotations() []schema.Annotation
Annotations of CommitRow.
type DamagedPath ¶
DamagedPath is a path whose stored content the store could not keep, so the next backup of its set reads it again instead of trusting that it is unchanged.
type DeletedRef ¶
DeletedRef is a ref a tombstone names: written before the tombstone is durable, consulted by every commit and pin Put.
func (DeletedRef) Annotations ¶
func (DeletedRef) Annotations() []schema.Annotation
Annotations of DeletedRef.
type File ¶
File is one version of a path in a set, valid over the range of commits that contain it. A symlink has a link target and no ref.
type Reindex ¶
Reindex is a table's statistics counters as they stood when its indexes were last rebuilt.
func (Reindex) Annotations ¶
func (Reindex) Annotations() []schema.Annotation
Annotations of Reindex.
type Session ¶
Session is a live upload or restore session; its pending archives are visible to it alone and a restore's object is kept while it lives.
type SetRef ¶
SetRef records that a set references a commit, tree or file object, which is what makes the object readable.
type Settings ¶
Settings is the one row of store settings: the write policy with its version and key acknowledgement, the retention defaults, and the sequence policy objects are numbered by.
type WalkedArchive ¶
WalkedArchive names a finished archive whose pins the index holds.