mirror of
https://github.com/anchore/syft.git
synced 2025-11-21 18:33:18 +01:00
14 lines
284 B
Go
14 lines
284 B
Go
package sbom
|
|
|
|
import "io"
|
|
|
|
// Writer an interface to write SBOMs
|
|
type Writer interface {
|
|
// Write writes the provided SBOM
|
|
Write(SBOM) error
|
|
|
|
// Closer a resource cleanup hook which will be called after SBOM
|
|
// is written or if an error occurs before Write is called
|
|
io.Closer
|
|
}
|