Versions in this module Expand all Collapse all v0 v0.0.1 Nov 29, 2026 Changes in this version + const ExitFailure + const ExitIndeterminate + const ExitOK + const ExitPlanBlocked + const ExitUsage + const PropEnrichedAt + const PropEnrichedBy + const PropEnrichedFrom + const PropOriginalSignature + func AgentHookActive() bool + func CommandAcceptsFlag(path []string, flag string) (bool, error) + func CommandPaths() []string + func Execute() error + func ExitCode(err error) int + func LSPActive() bool + func LoadFromMemory(rootPath string, freshExploits, freshAdvisories, freshVulns bool) error + type AIBOMPassOptions struct + Authoring cdx.AuthoringInputs + CatalogPath string + CommitMax int + Depth int + GitCtx *gitctx.GitContext + Ignore []string + IncludeHome bool + IncludeSystem bool + NoBuiltinCatalog bool + Passes aibomPasses + RespectGitignore bool + RootPath string + SpecVersion string + SystemRoot string + Upload bool + type AIBOMPassResult struct + BOM []byte + Detections cyclonedx.AIDetections + SpecVersion string + Suppressed int + type AttestVerifyOptions struct + ArtifactPath string + CertificatePath string + EnvelopePath string + Identity string + IdentityRegex string + Issuer string + Require []string + SignaturePath string + Strict bool + TrustedRootPath string + type BOMCorpusOptions struct + MaxDepth int + Paths []string + Recursive bool + type BOMCorpusResult struct + Collected *bom.Collected + Index *bom.Index + type BOMEnrichOptions struct + InputPath string + KeepOriginal bool + NoLicenses bool + NoVEX bool + NoVulns bool + OutPath string + Sign bool + VEXPaths []string + type BOMEnrichResult struct + Document *bom.Document + LicensesResolved int + Signature cdxsign.Result + VEX *VEXPassResult + VulnerabilitiesAttached int + Warnings []string + Written []string + type BOMImportOptions struct + Deployment scanopts.DeploymentContext + OutPath string + Path string + Verify *AttestVerifyOptions + type BOMImportResult struct + Document *bom.Document + Verification *attest.Result + Written string + type CBOMPassOptions struct + Authoring cdx.AuthoringInputs + CatalogPath string + Depth int + GitCtx *gitctx.GitContext + Ignore []string + NoBuiltinCatalog bool + Passes cbomPasses + RespectGitignore bool + RootPath string + SpecVersion string + Upload bool + type CBOMPassResult struct + BOM []byte + Detections cyclonedx.CryptoDetections + SpecVersion string + Suppressed int + type CommandManifest struct + Commands map[string]ManifestCommand + func BuildCommandManifest() CommandManifest + type EcoGroups struct + Available []EcoStatus + Configured []EcoStatus + type EcoStatus struct + Ecosystem pfw.Ecosystem + Path string + type ExitCodeError interface + ExitCode func() int + type GateBreach struct + Count int + Gate string + Message string + type JailRunOptions struct + BaseURL string + Branch string + ExemptDeactivate string + ExemptDeactivateReason string + ExemptExpires time.Duration + ExemptReason string + ExemptRuleUuid string + KnownSnapshotUuids []string + MaxLookbackDays int + Mode string + NoFail bool + OnStale string + Output string + Repo string + RootPath string + RuleUuids []string + SarifPath string + StalenessDays int + Stderr io.Writer + Stdout io.Writer + Timeout time.Duration + VexFormat string + VexPath string + WriteSarif bool + WriteVex bool + type JailRunResult struct + Artefacts []string + Exemption *vdb.CliJailExemptResponse + ExitCode int + Response *vdb.CliJailResponse + type JailUsageError struct + func (e *JailUsageError) Error() string + func (e *JailUsageError) ExitCode() int + func (e *JailUsageError) Unwrap() error + type JailVerdictError struct + Code int + Summary vdb.CliJailSummary + Verdict string + func (e *JailVerdictError) Error() string + func (e *JailVerdictError) ExitCode() int + type LicensePolicyFlags struct + AllowCSV string + AllowFile string + ExceptionsFile string + Mode string + PolicyFile string + type LicenseRunOptions struct + AllowCSV string + AllowFile string + ExceptionsFile string + GitCtx *gitctx.GitContext + LicensedPackages []license.PackageLicense + ManifestGroups []scan.ManifestGroup + Memory *memory.Memory + Mode string + Packages []scan.ScopedPackage + PolicyFile string + Project string + RootPath string + SeverityThreshold string + Stderr io.Writer + type LicenseRunResult struct + FindingVulnerabilities []cdx.Vulnerability + LicensedPackages []license.PackageLicense + Result *license.AnalysisResult + StateChanges []memory.StateChange + VEXVulnerabilities []cdx.Vulnerability + func (r *LicenseRunResult) CDXVulnerabilities() []cdx.Vulnerability + func (r *LicenseRunResult) LicenseSpdxIDByPackage() map[string]string + type ManifestCommand struct + Deprecated []string + Flags []string + Short string + Subs []string + type MultiPolicyBreachError struct + Breaches []GateBreach + func (e *MultiPolicyBreachError) Error() string + type PolicyBreachError interface + type SeverityBreachError struct + func (e *SeverityBreachError) Error() string + type VEXPassOptions struct + BOM *cdx.BOM + Console []vex.ConsoleRule + Org []vex.OrgStatement + Paths []string + Repo string + type VEXPassResult struct + ConsoleDuplicates int + ConsoleSkipped int + ConsoleStatements int + Documents int + OrgCheck *vex.OrgCheck + OrgHeld []vex.HeldFinding + Problems map[string][]vex.Problem + Raw []vexRawDocument + Result *vex.Result + Skipped []string + Statements int