Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidatePath ¶
ValidatePath rejects empty paths and parent-directory traversal segments.
Types ¶
type Asset ¶
type Asset struct {
Path string `json:"path"`
Kind string `json:"kind"`
Imported bool `json:"imported"`
}
Asset is a pre-existing local research asset discovered before import.
func DiscoverAssets ¶
DiscoverAssets finds pre-existing local research assets and records discovery Provenance without importing them.
type CreateOptions ¶
CreateOptions configures project creation.
type Event ¶
type Event = provenance.Event
Event is a provenance event recorded in a ResearchForge project.
func ReadEvents ¶
ReadEvents reads provenance events from a ResearchForge project.
type HealthCheck ¶
type HealthCheck struct {
Name string `json:"name"`
OK bool `json:"ok"`
Message string `json:"message"`
Action string `json:"action"`
}
HealthCheck is one actionable Research project health check.
type HealthReport ¶
type HealthReport struct {
Checks []HealthCheck `json:"checks"`
}
HealthReport summarizes Research project health.
func CheckHealth ¶
func CheckHealth(path string) HealthReport
CheckHealth checks Research project invariants without checking the host environment.
type Project ¶
type Project struct {
Path string
Title string
StorageMode string
SchemaVersion string
ManifestPath string
LockfilePath string
ProvenancePath string
StoragePath string
ArchiveMetadataPath string
}
Project is a local ResearchForge workspace.
func Create ¶
func Create(path string, opts CreateOptions) (Project, error)
Create initializes a ResearchForge project workspace.