mirror of
https://github.com/anchore/syft.git
synced 2026-11-03 07:56:36 +01:00
swap format readseekers for readers (#2515)
Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>
This commit is contained in:
+2
-2
@@ -23,9 +23,9 @@ type FormatEncoder interface {
|
||||
type FormatDecoder interface {
|
||||
// Decode will return an SBOM from the given reader. If the bytes are not a valid SBOM for the given format
|
||||
// then an error will be returned.
|
||||
Decode(io.ReadSeeker) (*SBOM, FormatID, string, error)
|
||||
Decode(io.Reader) (*SBOM, FormatID, string, error)
|
||||
|
||||
// Identify will return the format ID and version for the given reader. Note: this does not validate the
|
||||
// full SBOM, only pulls the minimal information necessary to identify the format.
|
||||
Identify(io.ReadSeeker) (FormatID, string)
|
||||
Identify(io.Reader) (FormatID, string)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user