Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var AllPluginPython []PluginPython
View Source
var FileParse []string
Functions ¶
func RegisterPluginPython ¶
func RegisterPluginPython(python PluginPython)
Types ¶
type Conda ¶
type Conda struct {
}
var CondaSbu *Conda
func NewPluginConda ¶
func NewPluginConda() *Conda
func (*Conda) InitCommand ¶
type ParseRequirements ¶
type ParseRequirements struct {
FileName string
CheckFile []sbom.FileInfoUse
}
func NewParseRequirements ¶
func NewParseRequirements() *ParseRequirements
func (*ParseRequirements) FileCheck ¶
func (python *ParseRequirements) FileCheck(fileName string) bool
func (*ParseRequirements) GetCheckFile ¶
func (python *ParseRequirements) GetCheckFile() string
func (*ParseRequirements) Parse ¶
func (python *ParseRequirements) Parse(_ context.Context, file sbom.FileInfoUse) (sbom.ResultComponent, error)
type Pip ¶
type Pip struct {
}
var PipSbu *Pip
func NewPluginPip ¶
func NewPluginPip() *Pip
func (*Pip) InitCommand ¶
type PluginPython ¶
type PluginPython interface {
Parse(context.Context, sbom.FileInfoUse) (sbom.ResultComponent, error)
FileCheck(string) bool
GetCheckFile() string
}
PluginPython python检测插件
type Sbom ¶
type Sbom struct {
UseCheckFiles []sbom.FileInfoUse
}
func NewPythonSbom ¶
func NewPythonSbom() *Sbom
func (*Sbom) AddFile ¶
func (s *Sbom) AddFile(file sbom.FileInfoUse)
Click to show internal directories.
Click to hide internal directories.