Documentation ¶
Index ¶
- func Name() string
- func ParseMetadataContent(reader io.Reader, sourcePath string) ([]model.Package, error)
- func PkgType() model.PkgType
- type Collector
- type PipLockDependency
- type PipLockInfo
- type PipLockParser
- type PipenvGraphParser
- type PkgMetadataParser
- type PoetryLockData
- type PoetryLockParser
- type PythonPkgMetadataInfo
- type RequirementsParser
- type SetUpParser
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseMetadataContent ¶
Types ¶
type Collector ¶
type Collector struct {
collector.BaseCollector
}
func NewCollector ¶
func NewCollector() *Collector
type PipLockDependency ¶
type PipLockDependency struct {
Version string `json:"version"`
}
type PipLockInfo ¶
type PipLockInfo struct {
Default map[string]PipLockDependency `json:"default"`
}
type PipLockParser ¶
type PipLockParser struct{}
PipLockParser is a parser for Pipfile.lock file see: https://pipenv.pypa.io/en/latest/pipfile/
func NewPipLockParser ¶
func NewPipLockParser() *PipLockParser
func (*PipLockParser) Matcher ¶
func (m *PipLockParser) Matcher() collector.FileMatcher
type PipenvGraphParser ¶
type PipenvGraphParser struct{}
PipenvGraphParser is a parser for output of executing 'pipenv graph' command see: https://pypi.org/project/pipenv/#show-a-dependency-graph
func NewPipenvGraphParser ¶
func NewPipenvGraphParser() *PipenvGraphParser
NewPipenvGraphParser returns a new PipenvGraphParser
func (*PipenvGraphParser) Matcher ¶
func (m *PipenvGraphParser) Matcher() collector.FileMatcher
func (*PipenvGraphParser) Parse ¶
func (m *PipenvGraphParser) Parse(filePath string) ([]model.Package, error)
func (*PipenvGraphParser) Type ¶
func (m *PipenvGraphParser) Type() model.PkgType
type PkgMetadataParser ¶
type PkgMetadataParser struct{}
PkgMetadataParser is a parser for python package metadata file
func NewPkgMetadataParser ¶
func NewPkgMetadataParser() *PkgMetadataParser
func (*PkgMetadataParser) Matcher ¶
func (m *PkgMetadataParser) Matcher() collector.FileMatcher
type PoetryLockData ¶
type PoetryLockParser ¶
type PoetryLockParser struct{}
PoetryLockParser is a parser for poetry.lock file see: https://python-poetry.org/docs/basic-usage/#installing-dependencies
func NewPoetryLockParser ¶
func NewPoetryLockParser() *PoetryLockParser
func (*PoetryLockParser) Matcher ¶
func (m *PoetryLockParser) Matcher() collector.FileMatcher
type PythonPkgMetadataInfo ¶
type RequirementsParser ¶
type RequirementsParser struct{}
RequirementsParser is a parser for requirements.txt file see: https://pip.pypa.io/en/stable/reference/requirements-file-format/
func NewRequirementsParser ¶
func NewRequirementsParser() *RequirementsParser
func (*RequirementsParser) Matcher ¶
func (m *RequirementsParser) Matcher() collector.FileMatcher
type SetUpParser ¶
type SetUpParser struct{}
SetUpParser is a parser for setup.py file see: https://docs.python.org/3/distutils/setupscript.html
func NewSetUpParser ¶
func NewSetUpParser() *SetUpParser
func (*SetUpParser) Matcher ¶
func (m *SetUpParser) Matcher() collector.FileMatcher