Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var AllSbom []MsecSbom
View Source
var App *cli.App
View Source
var BenchmarkCommand *cli.Command
View Source
var DetectCommand *cli.Command
View Source
var SbomCommand *cli.Command
Functions ¶
func RegisterDetectSubcommands ¶
func RegisterDetectSubcommands(d DetectPlugin)
RegisterDetectSubcommands 注册detect子命令
func ResultFunc ¶
func ResultFunc(resCheck []sbom.ResultComponent)
Types ¶
type BaseOption ¶
type DetectPlugin ¶
type DetectPlugin interface { InitCommand() []*cli.Command Action(c *cli.Context) error }
type MsecSbom ¶
type MsecSbom interface { AddFile(use sbom.FileInfoUse) Language() string FileCheck(FileName string) bool MsecSbom(ctx context.Context) []sbom.ResultComponent }
type SbomOptions ¶
type SbomOptions struct { // 项目目录 ProjectPath string // 具体文件所在位置 FileFullPath string // 用户输入的语言类型 LanguageType string // 转换后的语言类型 //ConvertLanguageType common.LanguageType // 输出目录 OutPath string // 输出文件类型 OutType string // cdx 转换后的 输出文件类型 OutC cdx.BOMFileFormat }
var SbomOption SbomOptions
func NewSbomOptions ¶
func NewSbomOptions() SbomOptions
func (SbomOptions) ParseSbomOption ¶
func (sbom SbomOptions) ParseSbomOption(flag bool)
Click to show internal directories.
Click to hide internal directories.