mirror of
https://github.com/anchore/syft.git
synced 2025-11-17 08:23:15 +01:00
23 lines
397 B
Go
23 lines
397 B
Go
package presenter
|
|
|
|
import (
|
|
"io"
|
|
|
|
"github.com/anchore/imgbom/imgbom/pkg"
|
|
"github.com/anchore/imgbom/imgbom/presenter/json"
|
|
"github.com/anchore/stereoscope/pkg/image"
|
|
)
|
|
|
|
type Presenter interface {
|
|
Present(io.Writer, *image.Image, *pkg.Catalog) error
|
|
}
|
|
|
|
func GetPresenter(option Option) Presenter {
|
|
switch option {
|
|
case JSONPresenter:
|
|
return json.NewPresenter()
|
|
default:
|
|
return nil
|
|
}
|
|
}
|