Documentation
¶
Overview ¶
Package netports extracts open ports on the system and maps them to running processes when possible.
Index ¶
- Constants
- func New() standalone.Extractor
- type Extractor
- func (Extractor) Ecosystem(p *extractor.Package) string
- func (e Extractor) Extract(ctx context.Context, input *standalone.ScanInput) (inventory.Inventory, error)
- func (e Extractor) Name() string
- func (e Extractor) Requirements() *plugin.Capabilities
- func (e Extractor) ToPURL(p *extractor.Package) *purl.PackageURL
- func (e Extractor) Version() int
- type Metadata
Constants ¶
View Source
const (
// Name is the unique name of this extractor.
Name = "os/netports"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Extractor ¶
type Extractor struct{}
Extractor extracts open ports on the system.
func (Extractor) Ecosystem ¶
Ecosystem returns no Ecosystem since the ecosystem is not known by OSV yet.
func (Extractor) Extract ¶
func (e Extractor) Extract(ctx context.Context, input *standalone.ScanInput) (inventory.Inventory, error)
Extract extracts open ports on the system.
func (Extractor) Requirements ¶
func (e Extractor) Requirements() *plugin.Capabilities
Requirements of the extractor.
Click to show internal directories.
Click to hide internal directories.