schema

package
v1.66.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 13, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

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

type Archive struct {
	ent.Schema
}

Archive is a pack archive with its state and owning session: a pending archive is visible only to its session and goes with it.

func (Archive) Edges

func (Archive) Edges() []ent.Edge

Edges of Archive.

func (Archive) Fields

func (Archive) Fields() []ent.Field

Fields of Archive.

func (Archive) Indexes

func (Archive) Indexes() []ent.Index

Indexes of Archive.

type CommitRow

type CommitRow struct {
	ent.Schema
}

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.

func (CommitRow) Edges

func (CommitRow) Edges() []ent.Edge

Edges of CommitRow.

func (CommitRow) Fields

func (CommitRow) Fields() []ent.Field

Fields of CommitRow.

func (CommitRow) Indexes

func (CommitRow) Indexes() []ent.Index

Indexes of CommitRow.

type DamagedPath

type DamagedPath struct {
	ent.Schema
}

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.

func (DamagedPath) Edges

func (DamagedPath) Edges() []ent.Edge

Edges of DamagedPath.

func (DamagedPath) Fields

func (DamagedPath) Fields() []ent.Field

Fields of DamagedPath.

func (DamagedPath) Indexes

func (DamagedPath) Indexes() []ent.Index

Indexes of DamagedPath.

type DeletedRef

type DeletedRef struct {
	ent.Schema
}

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.

func (DeletedRef) Fields

func (DeletedRef) Fields() []ent.Field

Fields of DeletedRef.

func (DeletedRef) Indexes

func (DeletedRef) Indexes() []ent.Index

Indexes of DeletedRef.

type File

type File struct {
	ent.Schema
}

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.

func (File) Annotations

func (File) Annotations() []schema.Annotation

Annotations of File.

func (File) Edges

func (File) Edges() []ent.Edge

Edges of File.

func (File) Fields

func (File) Fields() []ent.Field

Fields of File.

func (File) Indexes

func (File) Indexes() []ent.Index

Indexes of File.

type Object

type Object struct {
	ent.Schema
}

Object locates one object within an archive.

func (Object) Annotations

func (Object) Annotations() []schema.Annotation

Annotations of Object.

func (Object) Edges

func (Object) Edges() []ent.Edge

Edges of Object.

func (Object) Fields

func (Object) Fields() []ent.Field

Fields of Object.

func (Object) Indexes

func (Object) Indexes() []ent.Index

Indexes of Object.

type Pin

type Pin struct {
	ent.Schema
}

Pin caches a PIN object: the commit it keeps and when it was dropped.

func (Pin) Annotations

func (Pin) Annotations() []schema.Annotation

Annotations of Pin.

func (Pin) Fields

func (Pin) Fields() []ent.Field

Fields of Pin.

func (Pin) Indexes

func (Pin) Indexes() []ent.Index

Indexes of Pin.

type Reindex

type Reindex struct {
	ent.Schema
}

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.

func (Reindex) Fields

func (Reindex) Fields() []ent.Field

Fields of Reindex.

type Session

type Session struct {
	ent.Schema
}

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.

func (Session) Edges

func (Session) Edges() []ent.Edge

Edges of Session.

func (Session) Fields

func (Session) Fields() []ent.Field

Fields of Session.

type Set

type Set struct {
	ent.Schema
}

Set is a backup set, with its retention policy and lifecycle state.

func (Set) Edges

func (Set) Edges() []ent.Edge

Edges of Set.

func (Set) Fields

func (Set) Fields() []ent.Field

Fields of Set.

func (Set) Indexes

func (Set) Indexes() []ent.Index

Indexes of Set.

type SetRef

type SetRef struct {
	ent.Schema
}

SetRef records that a set references a commit, tree or file object, which is what makes the object readable.

func (SetRef) Annotations

func (SetRef) Annotations() []schema.Annotation

Annotations of SetRef.

func (SetRef) Edges

func (SetRef) Edges() []ent.Edge

Edges of SetRef.

func (SetRef) Fields

func (SetRef) Fields() []ent.Field

Fields of SetRef.

func (SetRef) Indexes

func (SetRef) Indexes() []ent.Index

Indexes of SetRef.

type Settings

type Settings struct {
	ent.Schema
}

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.

func (Settings) Fields

func (Settings) Fields() []ent.Field

Fields of Settings.

type Tree

type Tree struct {
	ent.Schema
}

Tree is one version of a directory in a set, valid like a File.

func (Tree) Annotations

func (Tree) Annotations() []schema.Annotation

Annotations of Tree.

func (Tree) Edges

func (Tree) Edges() []ent.Edge

Edges of Tree.

func (Tree) Fields

func (Tree) Fields() []ent.Field

Fields of Tree.

func (Tree) Indexes

func (Tree) Indexes() []ent.Index

Indexes of Tree.

type WalkedArchive

type WalkedArchive struct {
	ent.Schema
}

WalkedArchive names a finished archive whose pins the index holds.

func (WalkedArchive) Fields

func (WalkedArchive) Fields() []ent.Field

Fields of WalkedArchive.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL