Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Now = time.Now
Now returns the current time
Functions ¶
Types ¶
type JSONWriter ¶ added in v0.13.0
JSONWriter implements result Writer
func (JSONWriter) Write ¶ added in v0.13.0
func (jw JSONWriter) Write(results Results) error
Write writes the results in JSON format
type Result ¶
type Result struct { Target string `json:"Target"` Type string `json:"Type,omitempty"` Packages []ftypes.Package `json:"Packages,omitempty"` Vulnerabilities []types.DetectedVulnerability `json:"Vulnerabilities"` }
Result to hold image scan results
type TableWriter ¶
TableWriter implements Writer and output in tabular form
func (TableWriter) Write ¶
func (tw TableWriter) Write(results Results) error
Write writes the result on standard output
type TemplateWriter ¶ added in v0.2.0
TemplateWriter write result in custom format defined by user's template
func NewTemplateWriter ¶ added in v0.11.0
func NewTemplateWriter(output io.Writer, outputTemplate string) (*TemplateWriter, error)
NewTemplateWriter is the factory method to return TemplateWriter object
func (TemplateWriter) Write ¶ added in v0.2.0
func (tw TemplateWriter) Write(results Results) error
Write writes result
Click to show internal directories.
Click to hide internal directories.