display

package
v0.0.0-...-03d6fc4 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2019 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

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"`
	Started  time.Time     `json:"started,omitempty"`
	Finished time.Time     `json:"finished,omitempty"`

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

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

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"`
	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