Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var AvailableFormats = []Format{ JSONFormat, TableFormat, }
AvailableFormats is a list of presenter format options available to users.
Functions ¶
func GetPresenter ¶ added in v0.9.0
func GetPresenter(format Format, pb models.PresenterConfig) presenter.Presenter
GetPresenter retrieves a Presenter that matches a CLI option
Types ¶
type Format ¶ added in v0.9.0
type Format string
Format is a dedicated type to represent a specific kind of presenter output format.
type ScanResultWriter ¶ added in v0.9.0
type ScanResultWriter interface {
Write(result models.PresenterConfig) error
}
func MakeScanResultWriter ¶ added in v0.9.0
func MakeScanResultWriter(outputs []string, defaultFile string) (ScanResultWriter, error)
MakeScanResultWriter creates a ScanResultWriter for output or returns an error. this will either return a valid writer or an error but neither both and if there is no error, ScanResultWriter.Close() should be called
func MakeScanResultWriterForFormat ¶ added in v0.9.0
func MakeScanResultWriterForFormat(f string, path string) (ScanResultWriter, error)
MakeScanResultWriterForFormat creates a ScanResultWriter for the given format or returns an error.
Click to show internal directories.
Click to hide internal directories.