export

package
v5.3.4 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2023 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertHitsToCSV

func ConvertHitsToCSV(hits []reader.Hit, columns []string, columnsLabel []string, formatColumnsData map[string]string, separator rune) ([]byte, error)

func CreatePasswordProtectedZipFile added in v5.0.6

func CreatePasswordProtectedZipFile(zipFileName string, contents []byte) ([]byte, error)

func ExportFactHits

func ExportFactHits(ti time.Time, f engine.Fact, placeholders map[string]string, nhit int, offset int) ([]reader.Hit, error)

func ExportFactHitsFull

func ExportFactHitsFull(f engine.Fact) ([]reader.Hit, error)

func ExportFactHitsFullV6 added in v5.2.2

func ExportFactHitsFullV6(f engine.Fact) ([]reader.Hit, error)

func ExportFactHitsFullV8 added in v5.2.2

func ExportFactHitsFullV8(f engine.Fact) ([]reader.Hit, error)

func ExportFactHitsV6 added in v5.2.2

func ExportFactHitsV6(ti time.Time, f engine.Fact, placeholders map[string]string, nhit int, offset int) ([]reader.Hit, error)

func ExportFactHitsV8 added in v5.2.2

func ExportFactHitsV8(ti time.Time, f engine.Fact, placeholders map[string]string, nhit int, offset int) ([]reader.Hit, error)

Types

type StreamedExport added in v5.2.10

type StreamedExport struct {
	Data chan []reader.Hit
}

func NewStreamedExport added in v5.2.10

func NewStreamedExport() *StreamedExport

NewStreamedExport returns a pointer to a new StreamedExport instance One instance per StreamedExport since the channel Data will be closed after export is finished

func (StreamedExport) DrainChannel added in v5.2.10

func (export StreamedExport) DrainChannel()

DrainChannel Drains the Data channel without processing the remaining values

func (StreamedExport) StreamedExportFactHitsFull added in v5.2.10

func (export StreamedExport) StreamedExportFactHitsFull(ctx context.Context, f engine.Fact, limit int64) error

func (StreamedExport) StreamedExportFactHitsFullV8 added in v5.2.10

func (export StreamedExport) StreamedExportFactHitsFullV8(ctx context.Context, f engine.Fact, limit int64) error

StreamedExportFactHitsFullV8 export data from ElasticSearch to a channel Please note that the channel is not closed when this function is executed

Jump to

Keyboard shortcuts

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