Documentation
¶
Overview ¶
Package pip provides the Python/pip ecosystem plugin.
Index ¶
- type Plugin
- func (p *Plugin) Detect(ctx context.Context, path string) bool
- func (p *Plugin) GetFix(ctx context.Context, pkg ecosystem.Package, vuln ecosystem.Vulnerability) (*ecosystem.FixAction, error)
- func (p *Plugin) Info() ecosystem.PluginInfo
- func (p *Plugin) NativeAudit(ctx context.Context, path string) (*ecosystem.ScanResult, error)
- func (p *Plugin) Scan(ctx context.Context, path string) (*ecosystem.ScanResult, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Plugin ¶
type Plugin struct{}
Plugin implements the pip ecosystem.
func (*Plugin) Detect ¶
Detect checks if this is a Python project with scannable requirements files.
func (*Plugin) GetFix ¶
func (p *Plugin) GetFix(ctx context.Context, pkg ecosystem.Package, vuln ecosystem.Vulnerability) (*ecosystem.FixAction, error)
GetFix returns the pip command to fix a vulnerability.
func (*Plugin) NativeAudit ¶
NativeAudit runs pip-audit if available.
Click to show internal directories.
Click to hide internal directories.