repofs

package
v0.50.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OpenRepoFSCursor

func OpenRepoFSCursor(
	ctx context.Context,
	ws world.WorldState,
	objectKey string,
	write bool,
) (unixfs.FSCursor, error)

OpenRepoFSCursor opens a repo filesystem cursor for a git/repo object.

Types

type Engine

type Engine struct {
	// contains filtered or unexported fields
}

Engine builds repo transactions against one world object.

func NewEngine

func NewEngine(ctx context.Context, ws world.WorldState, obj world.ObjectState) *Engine

NewEngine constructs a repo filesystem engine.

func (*Engine) AddDotGitChangeCb

func (e *Engine) AddDotGitChangeCb(cb func()) func()

AddDotGitChangeCb registers a repo-level change callback.

func (*Engine) Close

func (e *Engine) Close()

Close releases the repo filesystem engine lifecycle.

func (*Engine) NewTransaction

func (e *Engine) NewTransaction(ctx context.Context, write bool) (hydra_git.Tx, error)

NewTransaction opens a repo transaction.

Jump to

Keyboard shortcuts

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