Versions in this module Expand all Collapse all v0 v0.4.0 Nov 24, 2026 Changes in this version + type Approval struct + At time.Time + By string + Paths []string + Review string type Evidence + Approvals []Approval v0.3.0 Nov 24, 2026 Changes in this version type Evidence + NotVerified []string v0.2.0 Nov 24, 2026 Changes in this version type Changeset + Rebase *Rebase + func (c *Changeset) Rebased() bool + func (c *Changeset) RebasedOnto() string type Check + Notes string + type Rebase struct + At time.Time + Branch string + By string + From hash.Hash + Onto hash.Hash + OntoGitSHA string + ResolvedBy string v0.1.0 Nov 24, 2026 Changes in this version + const CurrentVersion + var ErrBadPath = errors.New("invalid path") + func ApplyChanges(ctx context.Context, s blob.Store, root hash.Hash, changes []Change) (hash.Hash, error) + func ChangeIDFrom(b []byte) string + func ChangedDirs(changes []Change) []string + func EmptyTree(ctx context.Context, s blob.Store) (hash.Hash, error) + func HasPrefixPath(path, dir string) bool + func NewChangeID() string + func NewObjects(ctx context.Context, s blob.Store, a, b hash.Hash) (trees, blobs []hash.Hash, err error) + func PutTree(ctx context.Context, s blob.Store, t *Tree) (hash.Hash, error) + func SplitPath(p string) ([]string, error) + func ValidChangeID(s string) bool + func ValidName(name string) error + func WriteManifest(ctx context.Context, s blob.Store, m Manifest) (hash.Hash, error) + type Author struct + Email string + Model string + Name string + OnBehalfOf string + Principal string + Session string + type Change struct + New File + Old File + Op Op + Path string + func DiffManifests(a, b Manifest) []Change + func DiffTrees(ctx context.Context, s blob.Store, a, b hash.Hash) ([]Change, error) + type Changeset struct + Author Author + ChangeID string + CreatedAt time.Time + DependsOn []string + Evidence *Evidence + GitSHA string + Intent string + Origin Origin + Parents []hash.Hash + SnapshotTree hash.Hash + Tree hash.Hash + Version int + func DecodeChangeset(data []byte) (*Changeset, error) + func (c *Changeset) Encode() ([]byte, error) + func (c *Changeset) FirstParent() hash.Hash + func (c *Changeset) Hash() (hash.Hash, error) + func (c *Changeset) Merged() bool + func (c *Changeset) Normalize() + func (c *Changeset) Title() string + func (c *Changeset) Validate() error + type Check struct + DurationMs int64 + Failed int + Name string + Passed int + RanByVX bool + Result string + type Entry struct + Hash hash.Hash + Mode Mode + Name string + func Lookup(ctx context.Context, s blob.Store, root hash.Hash, path string) (Entry, bool, error) + type Evidence struct + Checks []Check + NewTests []string + func (e Evidence) IsEmpty() bool + type File struct + Hash hash.Hash + Mode Mode + type Manifest map[string]File + func ReadManifest(ctx context.Context, s blob.Store, root hash.Hash) (Manifest, error) + func (m Manifest) Apply(changes []Change) Manifest + func (m Manifest) Clone() Manifest + func (m Manifest) Paths() []string + type Mode byte + const ModeDir + const ModeExec + const ModeFile + const ModeSymlink + func ParseMode(s string) (Mode, error) + func (m Mode) String() string + type Op string + const OpAdd + const OpDelete + const OpModify + type Origin string + const OriginUpstream + const OriginVX + type Tree struct + Entries []Entry + func DecodeTree(data []byte) (*Tree, error) + func GetTree(ctx context.Context, s blob.Store, h hash.Hash) (*Tree, error) + func (t *Tree) Encode() ([]byte, error) + func (t *Tree) Find(name string) (Entry, bool)