reviewpkg

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2026 License: MIT Imports: 14 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

This section is empty.

Variables

This section is empty.

Functions

func Archive

func Archive(packagePath, archivePath string) error

func Restore

func Restore(archivePath, destination 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 {
	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 {
	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"`
	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
}

type Package

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

func Create

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

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