display

package
v0.0.0-...-8aeb11b Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2024 License: BSD-3-Clause Imports: 8 Imported by: 2

Documentation

Index

Constants

View Source
const (
	ELLIPSES        = "..."
	MAX_ERROR_CHARS = 1000
	MAX_ERROR_LINES = 20
)

Variables

This section is empty.

Functions

This section is empty.

Types

type StepDisplay

type StepDisplay struct {
	*td.StepProperties
	Result   td.StepResult `json:"result,omitempty"`
	Errors   []string      `json:"errors,omitempty" go2ts:"ignorenil"`
	Started  time.Time     `json:"started,omitempty"`
	Finished time.Time     `json:"finished,omitempty"`

	Data []*db.StepData `json:"data,omitempty" go2ts:"ignorenil"`

	Steps []*StepDisplay `json:"steps,omitempty" go2ts:"ignorenil"`
}

StepDisplay represents one step in a single run of a Task Driver.

type StepSlice

type StepSlice []*StepDisplay

StepSlice is a helper for sorting.

func (StepSlice) Len

func (s StepSlice) Len() int

func (StepSlice) Less

func (s StepSlice) Less(i, j int) bool

func (StepSlice) Swap

func (s StepSlice) Swap(i, j int)

type TaskDriverRunDisplay

type TaskDriverRunDisplay struct {
	Id         string            `json:"id" go2ts:"ignore"`
	Properties *td.RunProperties `json:"properties"`
	*StepDisplay
}

TaskDriverRunDisplay represents a single run of a Task Driver.

func TaskDriverForDisplay

func TaskDriverForDisplay(t *db.TaskDriverRun) (*TaskDriverRunDisplay, error)

TaskDriverForDisplay converts a db.TaskDriver into a TaskDriver, which is more human-friendly for display purposes.

Jump to

Keyboard shortcuts

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