Documentation ¶
Index ¶
- func CheckIfAzureContainerExists() error
- func CheckIfBucketExists() error
- func RunTui(historyID string) subcommands.ExitStatus
- func ToPlainTextSummary(r models.ScanResult) string
- type AzureBlobWriter
- type JSONWriter
- type LogrusWriter
- type MailWriter
- type ResultWriter
- type S3Writer
- type SlackWriter
- type StdoutWriter
- type TextFileWriter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckIfAzureContainerExists ¶ added in v0.1.5
func CheckIfAzureContainerExists() error
CheckIfAzureContainerExists check the existence of Azure storage container
func CheckIfBucketExists ¶ added in v0.1.5
func CheckIfBucketExists() error
CheckIfBucketExists check the existence of S3 bucket
func ToPlainTextSummary ¶
func ToPlainTextSummary(r models.ScanResult) string
ToPlainTextSummary format summary for plain text.
Types ¶
type AzureBlobWriter ¶ added in v0.1.5
type AzureBlobWriter struct{}
AzureBlobWriter writes results to AzureBlob
func (AzureBlobWriter) Write ¶ added in v0.1.5
func (w AzureBlobWriter) Write(scanResults []models.ScanResult) (err error)
Write results to Azure Blob storage
type JSONWriter ¶
type JSONWriter struct{}
JSONWriter writes results to file.
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 StdoutWriter ¶ added in v0.1.5
type StdoutWriter struct{}
StdoutWriter write to stdout
func (StdoutWriter) Write ¶ added in v0.1.5
func (w StdoutWriter) Write(scanResults []models.ScanResult) error
type TextFileWriter ¶ added in v0.1.5
type TextFileWriter struct{}
TextFileWriter writes results to file.
func (TextFileWriter) Write ¶ added in v0.1.5
func (w TextFileWriter) Write(scanResults []models.ScanResult) (err error)
Click to show internal directories.
Click to hide internal directories.