report

package
v0.1.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 24, 2016 License: GPL-3.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunTui

func RunTui(historyID string) subcommands.ExitStatus

RunTui execute main logic

func ToPlainTextSummary

func ToPlainTextSummary(r models.ScanResult) string

ToPlainTextSummary format summary for plain text.

Types

type JSONWriter

type JSONWriter struct{}

JSONWriter writes report as JSON format

func (JSONWriter) Write

func (w JSONWriter) Write(scanResults []models.ScanResult) (err error)

type LogrusWriter

type LogrusWriter struct {
}

LogrusWriter write to logfile

func (LogrusWriter) Write

func (w LogrusWriter) Write(scanResults []models.ScanResult) error

type MailWriter

type MailWriter struct{}

MailWriter send mail

func (MailWriter) Write

func (w MailWriter) Write(scanResults []models.ScanResult) (err error)

type ResultWriter

type ResultWriter interface {
	Write([]models.ScanResult) error
}

ResultWriter Interface

type SlackWriter

type SlackWriter struct{}

SlackWriter send report to slack

func (SlackWriter) Write

func (w SlackWriter) Write(scanResults []models.ScanResult) error

type TextWriter

type TextWriter struct{}

TextWriter write to stdout

func (TextWriter) Write

func (w TextWriter) Write(scanResults []models.ScanResult) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL