outputs

package
v0.0.0-...-bea810b Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Outputs = map[string]OutputFactory{}

Functions

func BuildConfigurationOptions

func BuildConfigurationOptions() (map[string]config.Configuration, error)

func GetOutputNames

func GetOutputNames() []string

func Register

func Register(name string, output OutputFactory)

Register can be called from init() on an output in this package It will automatically be added to the Outputs map to be called externally

Types

type Output

type Output interface {
	Write(id string, bundles map[string]*data.DiagnosticBundle, config config.Configuration) (data.FrameErrors, error)
	Configuration() config.Configuration
	Description() string
}

func GetOutputByName

func GetOutputByName(name string) (Output, error)

type OutputFactory

type OutputFactory func() (Output, error)

OutputFactory lets us use a closure to get instances of the output struct

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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