printing

package
v0.0.0-...-a93a756 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Dot

func Dot(pbrun *adagio.Run) (fmt.Formatter, error)

Dot takes an adagio Run proto struct and returns a formatter

func Pretty

func Pretty(pbrun *adagio.Run) (fmt.Formatter, error)

Pretty is a formatter which used pretty to format the run

func Spew

func Spew(pbrun *adagio.Run) (fmt.Formatter, error)

Spew is a formatter which uses gospew to format the run

Types

type FormatterFunc

type FormatterFunc func(fmt.State, rune)

FormatterFunc is a function which implements the fmt.Formatter interface

func (FormatterFunc) Format

func (fn FormatterFunc) Format(f fmt.State, c rune)

Format delegates to the underlying FormatterFunc

type Node

type Node struct {
	Name       string
	Runtime    string
	Metadata   map[string][]string
	Status     string
	Attempts   []Result
	StartedAt  time.Time
	FinishedAt time.Time
	Inputs     map[string]string
}

Node is a printing package simplified representation of an adagio node

type Result

type Result struct {
	Conclusion string
	Output     string
}

Result is a printing package simplified representation of an adagio result

type Run

type Run struct {
	ID        string
	CreatedAt time.Time
	Nodes     []Node
}

Run is a printing package simplified representation of an adagio run

func PBRunToRun

func PBRunToRun(pbrun *adagio.Run) (Run, error)

PBRunToRun takes a protobuf run and adapts it to the printer.Run type which is used to produce a friendlier printing output

Jump to

Keyboard shortcuts

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