Documentation
¶
Overview ¶
Package worksource qualifies the read-only source shared by the work observer and the repository-owned producer. It does not authorize execution.
Index ¶
- func PlatformPath() (string, error)
- func ResolveRoot(ctx context.Context, directory string) (string, error)
- func ResolveRootWithScratch(ctx context.Context, directory, scratch string) (string, error)
- func ValidateScratchLocation(ctx context.Context, directory, scratch string) error
- type Entry
- type Source
- func (source *Source) Close() error
- func (source *Source) ExportObjects(ctx context.Context, destinationGitDir string) error
- func (source *Source) Git(ctx context.Context, limit int, arguments ...string) ([]byte, error)
- func (source *Source) Object(ctx context.Context, oid string) (string, []byte, error)
- func (source *Source) VerifyMaterialization(ctx context.Context, directory string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PlatformPath ¶
PlatformPath is the fixed VPO-V0-022 executable search path.
func ResolveRoot ¶
ResolveRoot resolves an ordinary repository using the same closed Git boundary.
func ResolveRootWithScratch ¶
ResolveRootWithScratch uses an explicitly owned scratch parent; it never reads ambient TMPDIR. The caller retains cleanup ownership of that parent.
func ValidateScratchLocation ¶
ValidateScratchLocation resolves only the ordinary on-disk .git/commondir layout, without launching Git or creating scratch. Marker text is not authority to write in caller metadata, including an external linked-worktree common dir.
Types ¶
type Source ¶
type Source struct {
Identity workqueue.RepositorySource
Root, GitDir, CommonDir, GitPath string
GitEnvironment []string
Entries []Entry
// contains filtered or unexported fields
}
Source owns only its private Git execution environment; Close must be called. Identity and Entries describe immutable content, not a write-prevention claim.
func AcquireWithScratch ¶
AcquireWithScratch nests all acquisition storage beneath an explicitly owned private parent. It is an internal producer/observer seam, not an environment override: ordinary Acquire never uses ambient TMPDIR.
func (*Source) ExportObjects ¶
ExportObjects writes standalone loose objects to private destination metadata. It exports the exact target closure, not parent history or caller configuration.
func (*Source) Git ¶
Git runs fixed, caller-owned arguments with bounded output and pipe ownership. Callers must not pass a mutating operation against the qualified source.