Documentation
¶
Overview ¶
Package project places bundle content at harness load points. The harness names and paths come from the layouts table, so this package holds none.
Index ¶
Constants ¶
const ( ScopeRepo = "repo" ScopeHome = "home" )
Variables ¶
This section is empty.
Functions ¶
func Registries ¶
Registries splits the layouts table into its repo- and home-scoped views.
Types ¶
type LoadPoints ¶
type LoadPoints = layouts.LoadPoints
type Projection ¶
type Projection struct {
Layout string `json:"layout"`
Bundle string `json:"bundle"`
Files []string `json:"files"`
}
Projection records the immutable bundle and files owned at one target.
func FindProjection ¶
func FindProjection(start string) (Projection, string)
FindProjection walks from start toward the filesystem root and returns the nearest recorded projection plus the target directory that owns it.
func ReadProjection ¶
func ReadProjection(targetDir string) Projection
ReadProjection loads the ownership sidecar at targetDir. An absent or malformed sidecar returns an empty projection for existing callers.
type Result ¶
func ApplyOwned ¶
ApplyOwned writes a file set under target with the projection ownership rules: sidecar-tracked, never clobbering foreign files, replacing stale.
func ProjectScoped ¶
ProjectScoped selects repo-relative or home-relative load points; home scope treats targetDir as the home root.