engine

package
v2.0.4 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2026 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Overview

Package engine provides the core execution engine for sbomqs operations, including compliance checking, scoring, and report generation functionality.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ComplianceRun

func ComplianceRun(ctx context.Context, ep *Params) error

func DtrackScore

func DtrackScore(ctx context.Context, dtP *DtParams) error

func IsGit

func IsGit(in string) bool

func IsURL

func IsURL(in string) bool

func ListRun

func ListRun(ctx context.Context, ep *Params) error

func ProcessURL

func ProcessURL(url string, file afero.File) (afero.File, error)

func Run

func Run(ctx context.Context, ep *Params) error

func ShareRun

func ShareRun(ctx context.Context, ep *Params) error

Types

type DtParams

type DtParams struct {
	URL        string
	APIKey     string
	ProjectIDs []uuid.UUID

	JSON     bool
	Basic    bool
	Detailed bool

	Legacy  bool
	Profile []string

	TagProjectWithScore bool
	TagProjectWithGrade bool
	Timeout             int // handle cutom timeout
}

type Params

type Params struct {
	Path []string

	Categories []string
	Features   []string

	JSON     bool
	Basic    bool
	Detailed bool
	Pdf      bool

	Spdx bool
	Cdx  bool

	Recursive bool
	Missing   bool

	Debug bool
	Show  bool

	ConfigPath string

	Ntia  bool
	Bsi   bool
	BsiV2 bool
	Oct   bool
	Fsct  bool

	Color bool
	Blob  string

	Legacy   bool
	Profiles []string
}

Jump to

Keyboard shortcuts

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