jsonexporter

package
v3.3.2 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Exporter

type Exporter struct {
	// contains filtered or unexported fields
}

func New

func New(options *Options) (*Exporter, error)

New creates a new JSON exporter integration client based on options.

func (*Exporter) Close

func (exporter *Exporter) Close() error

Close writes the in-memory data to the JSON file specified by options.JSONExport and closes the exporter after operation

func (*Exporter) Export

func (exporter *Exporter) Export(event *output.ResultEvent) error

Export appends the passed result event to the list of objects to be exported to the resulting JSON file

type Options

type Options struct {
	// File is the file to export found JSON result to
	File    string `yaml:"file"`
	OmitRaw bool   `yaml:"omit-raw"`
}

Options contains the configuration options for JSON exporter client

Jump to

Keyboard shortcuts

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