mirror of
https://github.com/anchore/syft.git
synced 2025-11-21 02:13:17 +01:00
* set package ID in catalogers and improve hashing performance Signed-off-by: Alex Goodman <alex.goodman@anchore.com> * update setting ID + tests Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
12 lines
391 B
Go
12 lines
391 B
Go
package common
|
|
|
|
import (
|
|
"io"
|
|
|
|
"github.com/anchore/syft/syft/artifact"
|
|
"github.com/anchore/syft/syft/pkg"
|
|
)
|
|
|
|
// ParserFn standardizes a function signature for parser functions that accept the virtual file path (not usable for file reads) and contents and return any discovered packages from that file
|
|
type ParserFn func(string, io.Reader) ([]*pkg.Package, []artifact.Relationship, error)
|