outputs

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Factories = make(map[string]func(cfg *config.Config, outCfg *config.Output) (Output, error))

Factories contains the list of all available outputs. The outputs can each then be created using the function saved in the map.

Functions

func GetFilenameFromPattern

func GetFilenameFromPattern(pattern string, role string, data Data, extra map[string]interface{}) (string, error)

GetFilenameFromPattern get filename from given pattern, data and extra data for templating.

Types

type Column

type Column struct {
	Rows []Row
}

Column Column of the Table data format

type Data

type Data struct {
	TestStartTime  time.Time
	TestTime       time.Time
	Tester         string
	ServerHost     string
	ClientHost     string
	AdditionalInfo string
	Data           DataFormat
}

Data structured parsed data

type DataFormat

type DataFormat interface {
}

DataFormat DataFormat interface that must be implemented by data formats, e.g., Table.

type Output

type Output interface {
	// Do do output related work on the given Data
	Do(data Data) error
	// OutputFiles return a list of output files
	OutputFiles() []string
	// Close run "cleanup" / close tasks, e.g., close file handles and others
	Close() error
}

Output is the interface a output has to implement.

type Row

type Row struct {
	Value interface{}
}

Row Row of the Table data format

type Table

type Table struct {
	DataFormat
	Headers []Column
	Columns []Column
}

Table Data format for data in Table form

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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