mirror of
https://github.com/anchore/syft.git
synced 2025-11-17 16:33:21 +01:00
13 lines
271 B
Go
13 lines
271 B
Go
package format
|
|
|
|
import (
|
|
"io"
|
|
|
|
"github.com/anchore/syft/syft/sbom"
|
|
)
|
|
|
|
// Encoder is a function that can transform Syft native objects from an SBOM document of a specific format written to the given writer.
|
|
type Encoder interface {
|
|
Encode(io.Writer, sbom.SBOM) error
|
|
}
|