Documentation
¶
Overview ¶
Package indexer assembles deterministic repository snapshots without executing repository code.
Index ¶
Constants ¶
View Source
const MaxSourceBytes = 2 * 1024 * 1024
View Source
const MaxSourceFiles = 10000
View Source
const MaxTotalSourceBytes = 64 << 20
Variables ¶
This section is empty.
Functions ¶
func Build ¶
Build parses every supported file a provider exposes. Working-tree and committed snapshots share this loop, limits and diagnostics.
func ExcludedPath ¶
ExcludedPath applies one generated and private directory policy to every source.
Types ¶
type Commit ¶
type Commit struct {
// contains filtered or unexported fields
}
Commit reads an immutable Git commit through a single batch object reader.
type Entry ¶
type Entry struct {
Path string
Size int64
Mode EntryMode
// contains filtered or unexported fields
}
Entry is one repository path offered by a Provider.
type Provider ¶
type Provider interface {
Method() string
Entries(ctx context.Context) ([]Entry, error)
Read(ctx context.Context, e Entry, limit int64) ([]byte, error)
}
Provider supplies repository files from the working tree or a Git commit.
func NewWorktree ¶
NewWorktree supplies non-ignored repository entries without executing source. Consumers must inspect entry modes and enforce bounded reads.
Click to show internal directories.
Click to hide internal directories.