reviewpkg

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2026 License: MIT Imports: 22 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const ArtificialPhotosynthesisQuestion = "Do artificial photosynthesis catalysts improve solar fuel generation outcomes?"

Variables

This section is empty.

Functions

func Archive

func Archive(packagePath, archivePath string) error

func ArtificialPhotosynthesisAcquisitionFixturePaths added in v0.1.18

func ArtificialPhotosynthesisAcquisitionFixturePaths() []string

ArtificialPhotosynthesisAcquisitionFixturePaths returns every project-relative artifact written by the acquisition fixture.

func ArtificialPhotosynthesisFixtureProjectPaths added in v0.1.18

func ArtificialPhotosynthesisFixtureProjectPaths() []string

ArtificialPhotosynthesisFixtureProjectPaths returns every project-relative artifact written by the complete fixture.

func ArtificialPhotosynthesisFixtureSourceImportPaths added in v0.1.18

func ArtificialPhotosynthesisFixtureSourceImportPaths() []string

ArtificialPhotosynthesisFixtureSourceImportPaths returns every project-relative artifact written by the source-import fixture.

func ArtificialPhotosynthesisReferenceManagerFixturePaths added in v0.1.18

func ArtificialPhotosynthesisReferenceManagerFixturePaths() []string

ArtificialPhotosynthesisReferenceManagerFixturePaths returns every project-relative artifact written by the reference-manager fixture.

func Restore

func Restore(archivePath, destination string) error

func ValidatePackageOutputPath added in v0.1.18

func ValidatePackageOutputPath(projectPath, packagePath string) error

ValidatePackageOutputPath rejects package destinations that could overwrite the project, working directory, or filesystem root.

func WriteArtificialPhotosynthesisAcquisitionFixture added in v0.1.5

func WriteArtificialPhotosynthesisAcquisitionFixture(projectPath string) error

func WriteArtificialPhotosynthesisFixtureProject added in v0.1.5

func WriteArtificialPhotosynthesisFixtureProject(projectPath string) error

func WriteArtificialPhotosynthesisFixtureSourceImport added in v0.1.5

func WriteArtificialPhotosynthesisFixtureSourceImport(projectPath string) error

func WriteArtificialPhotosynthesisReferenceManagerFixture added in v0.1.5

func WriteArtificialPhotosynthesisReferenceManagerFixture(projectPath string) error

Types

type AuditCheck

type AuditCheck struct {
	Code    string `json:"code"`
	OK      bool   `json:"ok"`
	Message string `json:"message"`
}

type AuditReport

type AuditReport struct {
	ProvenanceLevel provenance.Level `json:"provenance_level"`
	SchemaVersion   string           `json:"schemaVersion"`
	OK              bool             `json:"ok"`
	Checks          []AuditCheck     `json:"checks"`
}

func Audit

func Audit(packagePath string) (AuditReport, error)

func Replay

func Replay(packagePath string) (AuditReport, error)

type Manifest

type Manifest struct {
	ProvenanceLevel            provenance.Level `json:"provenance_level"`
	SchemaVersion              string           `json:"schemaVersion"`
	PackageID                  string           `json:"packageId"`
	CreatedAt                  string           `json:"createdAt"`
	CreatedBy                  string           `json:"createdBy"`
	ResearchForgeVersion       string           `json:"researchForgeVersion"`
	ProjectTitle               string           `json:"projectTitle,omitempty"`
	Question                   string           `json:"question,omitempty"`
	MetaAnalysisSpineVersion   string           `json:"metaAnalysisSpineVersion"`
	PackageRole                string           `json:"packageRole"`
	ProjectManifestRef         string           `json:"projectManifestRef"`
	SourcePlanRefs             []string         `json:"sourcePlanRefs,omitempty"`
	LockfileRef                string           `json:"lockfileRef"`
	LockfileRefs               []string         `json:"lockfileRefs,omitempty"`
	ProvenanceRef              string           `json:"provenanceRef,omitempty"`
	DedupeDecisionRef          string           `json:"dedupeDecisionRef,omitempty"`
	SourceRecordRefs           []string         `json:"sourceRecordRefs,omitempty"`
	ImportReceiptRefs          []string         `json:"importReceiptRefs,omitempty"`
	ReferenceManagerReportRefs []string         `json:"referenceManagerReportRefs,omitempty"`
	LegalAcquisitionRef        string           `json:"legalAcquisitionRef,omitempty"`
	DocumentAssetRefs          []string         `json:"documentAssetRefs,omitempty"`
	ScreeningAuditRef          string           `json:"screeningAuditRef,omitempty"`
	ExtractionSchemaRef        string           `json:"extractionSchemaRef,omitempty"`
	AcceptedEvidenceRef        string           `json:"acceptedEvidenceRef,omitempty"`
	ParserManifestRefs         []string         `json:"parserManifestRefs,omitempty"`
	AnalysisArtifactRefs       []string         `json:"analysisArtifactRefs,omitempty"`
	ReportRefs                 []string         `json:"reportRefs,omitempty"`
	RedactionReportRef         string           `json:"redactionReportRef"`
	ChecksumManifestRef        string           `json:"checksumManifestRef"`
	ReplayCommand              string           `json:"replayCommand"`
	AuditCommand               string           `json:"auditCommand"`
	Warnings                   []string         `json:"warnings,omitempty"`
}

type Options

type Options struct {
	CreatedBy string
	Question  string
	Clock     func() time.Time
}

type Package

type Package struct {
	Manifest        Manifest        `json:"manifest"`
	RedactionReport RedactionReport `json:"redactionReport"`
}

func Create

func Create(projectPath, packagePath string, opts Options) (Package, error)

func CreateArtificialPhotosynthesisFixturePackage added in v0.1.5

func CreateArtificialPhotosynthesisFixturePackage(packagePath string, opts Options) (Package, error)

CreateArtificialPhotosynthesisFixturePackage writes an offline, deterministic Reproducible review package using fake-backed Meta-analysis spine artifacts.

type RedactionItem

type RedactionItem struct {
	Path   string `json:"path"`
	Action string `json:"action"`
	Reason string `json:"reason"`
}

type RedactionReport

type RedactionReport struct {
	SchemaVersion string          `json:"schemaVersion"`
	Policy        string          `json:"policy"`
	Items         []RedactionItem `json:"items"`
}

Jump to

Keyboard shortcuts

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