output

package
v0.6.4-beta003 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

TODO will be moved to testkube lib when completed

Index

Constants

View Source
const TypeError = "error"
View Source
const TypeLogEvent = "event"
View Source
const TypeLogLine = "line"
View Source
const TypeResult = "result"

Variables

This section is empty.

Functions

func PrintError

func PrintError(err error)

func PrintEvent

func PrintEvent(message string, obj ...interface{})

func PrintLog

func PrintLog(message string)

func PrintResult

func PrintResult(result testkube.ExecutionResult)

Types

type JSONWrapWriter

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

func NewJSONWrapWriter

func NewJSONWrapWriter(writer io.Writer) *JSONWrapWriter

func (*JSONWrapWriter) Write

func (w *JSONWrapWriter) Write(p []byte) (int, error)

type Output

type Output struct {
	Type    string      `json:"type,omitempty"`
	Message string      `json:"message,omitempty"`
	Content interface{} `json:"content,omitempty"`
}

func NewOutputError

func NewOutputError(err error) Output

func NewOutputEvent

func NewOutputEvent(message string, content interface{}) Output

func NewOutputLine

func NewOutputLine(content []byte) Output

func NewOutputResult

func NewOutputResult(result testkube.ExecutionResult) Output

Jump to

Keyboard shortcuts

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