report

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2017 License: GPL-3.0 Imports: 28 Imported by: 0

Documentation

Index

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 RunTui

func RunTui(history models.ScanHistory) subcommands.ExitStatus

RunTui execute main logic

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(rs ...models.ScanResult) (err error)

Write results to Azure Blob storage

type EMailWriter added in v0.2.0

type EMailWriter struct{}

EMailWriter send mail

func (EMailWriter) Write added in v0.2.0

func (w EMailWriter) Write(rs ...models.ScanResult) (err error)

type LocalFileWriter added in v0.2.0

type LocalFileWriter struct {
	CurrentDir string
}

LocalFileWriter writes results to a local file.

func (LocalFileWriter) Write added in v0.2.0

func (w LocalFileWriter) Write(rs ...models.ScanResult) (err error)

type ResultWriter

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

ResultWriter Interface

type S3Writer added in v0.1.5

type S3Writer struct{}

S3Writer writes results to S3

func (S3Writer) Write added in v0.1.5

func (w S3Writer) Write(rs ...models.ScanResult) (err error)

Write results to S3 http://docs.aws.amazon.com/sdk-for-go/latest/v1/developerguide/common-examples.title.html

type SlackWriter

type SlackWriter struct{}

SlackWriter send report to slack

func (SlackWriter) Write

func (w SlackWriter) Write(rs ...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(rs ...models.ScanResult) error

func (StdoutWriter) WriteScanSummary added in v0.2.0

func (w StdoutWriter) WriteScanSummary(rs ...models.ScanResult)

WriteScanSummary prints Scan summary at the end of scan

Jump to

Keyboard shortcuts

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