Add support for multiple output files in different formats (#732)

This commit is contained in:
Keith Zantow
2022-01-06 17:52:20 -05:00
committed by GitHub
parent 38c4b17847
commit 5e5312c72d
51 changed files with 642 additions and 243 deletions
+13
View File
@@ -0,0 +1,13 @@
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
}