Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ComponentResult ¶
type DocumentResult ¶
type OptionList ¶
type OptionList func(r *Report)
func WithColor ¶
func WithColor(c bool) OptionList
func WithFormat ¶
func WithFormat(c string) OptionList
func WithValues ¶ added in v1.0.8
func WithValues(s bool) OptionList
type Report ¶
type Report struct {
Ctx context.Context
Results []*Result
Format string
Color bool
Show bool // show values for corresponding features
}
listReport holds the state for reporting the list command results
func NewListReport ¶
func NewListReport(ctx context.Context, results []*Result, opts ...OptionList) *Report
type Result ¶
type Result struct {
FilePath string
Feature string
Missing bool
TotalComponents int
Components []ComponentResult // For component-based features
DocumentProperty DocumentResult // For SBOM-based features
Errors []string
}
Click to show internal directories.
Click to hide internal directories.