Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BucketReportPrinter ¶
type BucketReportPrinter interface { // PrintReport receives a report, formats it and prints it to a writer. PrintReport([]audit.BucketReport, io.Writer) error }
BucketReportPrinter is an interface that knows how to print BucketReport objects.
type CSVPrinter ¶
type CSVPrinter struct{}
func (*CSVPrinter) PrintReport ¶
func (r *CSVPrinter) PrintReport(reports []audit.BucketReport, w io.Writer) error
type JSONPrinter ¶
type JSONPrinter struct{}
func (*JSONPrinter) PrintReport ¶
func (r *JSONPrinter) PrintReport(reports []audit.BucketReport, w io.Writer) error
type NooutPrinter ¶
type NooutPrinter struct{}
NooutPrinter that does nothin i.e. swallows all output
func (*NooutPrinter) PrintReport ¶
func (r *NooutPrinter) PrintReport(_ []audit.BucketReport, _ io.Writer) error
type TextPrinter ¶
type TextPrinter struct{}
func (*TextPrinter) PrintReport ¶
func (r *TextPrinter) PrintReport(report []audit.BucketReport, w io.Writer) error
Click to show internal directories.
Click to hide internal directories.