syft/syft/format/encoder.go
Alex Goodman 5fb0235cfb
experiment with encoder/decoder for data encapsulation
Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
2021-11-22 16:11:52 -05:00

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
}