exporters

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: May 28, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatFromPath

func FormatFromPath(path string) string

func StripANSI

func StripANSI(value string) string

func Supported

func Supported(format string) bool

Types

type AppendExporter

type AppendExporter interface {
	ExportAppend(report *core.InvestigationReport, w io.Writer, appendMode bool) error
}

type CSVExporter

type CSVExporter struct {
	WriteHeader bool
}

func NewCSVExporter

func NewCSVExporter() CSVExporter

func (CSVExporter) Export

func (e CSVExporter) Export(report *core.InvestigationReport, w io.Writer) error

func (CSVExporter) ExportAppend

func (e CSVExporter) ExportAppend(report *core.InvestigationReport, w io.Writer, appendMode bool) error

func (CSVExporter) Format

func (CSVExporter) Format() string

type Exporter

type Exporter interface {
	Format() string
	Export(report *core.InvestigationReport, w io.Writer) error
}

func New

func New(format string) (Exporter, error)

type GEXFExporter

type GEXFExporter struct{}

func (GEXFExporter) Export

func (GEXFExporter) Export(report *core.InvestigationReport, w io.Writer) error

func (GEXFExporter) Format

func (GEXFExporter) Format() string

type JSONExporter

type JSONExporter struct{}

func (JSONExporter) Export

func (JSONExporter) Export(report *core.InvestigationReport, w io.Writer) error

func (JSONExporter) Format

func (JSONExporter) Format() string

type JSONLDExporter

type JSONLDExporter struct{}

func (JSONLDExporter) Export

func (JSONLDExporter) Format

func (JSONLDExporter) Format() string

type PDFExporter

type PDFExporter struct{}

func (PDFExporter) Export

func (PDFExporter) Export(report *core.InvestigationReport, w io.Writer) error

func (PDFExporter) Format

func (PDFExporter) Format() string

type TextExporter

type TextExporter struct {
	Render func(*core.InvestigationReport) string
}

func NewTextExporter

func NewTextExporter(render func(*core.InvestigationReport) string) TextExporter

func (TextExporter) Export

func (e TextExporter) Export(report *core.InvestigationReport, w io.Writer) error

func (TextExporter) Format

func (TextExporter) Format() string

Jump to

Keyboard shortcuts

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