python

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2024 License: GPL-3.0 Imports: 15 Imported by: 0

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) Action

func (conda *Conda) Action(c *cli.Context) error

func (*Conda) InitCommand

func (conda *Conda) InitCommand() *cli.Command

func (*Conda) Parse

func (conda *Conda) Parse(input string)

type Library

type Library struct {
	Name            string
	Constraint      string
	Version         string
	CompleteVersion string
}

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

type Pip

type Pip struct {
}
var PipSbu *Pip

func NewPluginPip

func NewPluginPip() *Pip

func (*Pip) Action

func (pip *Pip) Action(c *cli.Context) error

func (*Pip) InitCommand

func (pip *Pip) InitCommand() *cli.Command

func (*Pip) Parse

func (pip *Pip) Parse(input string)

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)

func (*Sbom) FileCheck

func (s *Sbom) FileCheck(FileName string) bool

func (*Sbom) Language

func (s *Sbom) Language() string

func (*Sbom) MsecSbom

func (s *Sbom) MsecSbom(ctx context.Context) []sbom.ResultComponent

Jump to

Keyboard shortcuts

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