journal

package
v0.0.0-...-33dfd9e Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildEventFilenameFor

func BuildEventFilenameFor(stamp time.Time) string

func BuildEventFilenamesFor

func BuildEventFilenamesFor(weekcount int) []string

func BuildEventStats

func BuildEventStats(label string)

func CurrentEventFilename

func CurrentEventFilename() string

func ForRun

func ForRun(filename string)

func MakeStatistics

func MakeStatistics(weeks uint, assistants, robots, prepares, variables bool) (int, []byte)

func Post

func Post(event, detail, commentForm string, fields ...interface{}) (err error)

func ShowStatistics

func ShowStatistics(weeks uint, assistants, robots, prepares, variables bool)

func StopRunJournal

func StopRunJournal()

func Unify

func Unify(value string) string

Types

type BuildEvent

type BuildEvent struct {
	Version       string `json:"version"`
	When          int64  `json:"when"`
	What          string `json:"what"`
	Force         bool   `json:"force"`
	Build         bool   `json:"build"`
	Success       bool   `json:"success"`
	Retry         bool   `json:"retry"`
	Run           bool   `json:"run"`
	Controller    string `json:"controller"`
	Space         string `json:"space"`
	BlueprintHash string `json:"blueprint"`

	Started         float64 `json:"started"`
	Prepared        float64 `json:"prepared"`
	MicromambaDone  float64 `json:"micromamba"`
	PipDone         float64 `json:"pip"`
	PostInstallDone float64 `json:"postinstall"`
	RecordDone      float64 `json:"record"`
	RestoreDone     float64 `json:"restore"`
	PreRunDone      float64 `json:"prerun"`
	RobotStart      float64 `json:"robotstart"`
	RobotEnd        float64 `json:"robotend"`
	Finished        float64 `json:"finished"`
	Dirtyness       float64 `json:"dirtyness"`
}

func CurrentBuildEvent

func CurrentBuildEvent() *BuildEvent

func NewBuildEvent

func NewBuildEvent() *BuildEvent

func (*BuildEvent) Blueprint

func (it *BuildEvent) Blueprint(blueprint string)

func (*BuildEvent) Dirty

func (it *BuildEvent) Dirty(dirtyness float64)

func (*BuildEvent) MicromambaComplete

func (it *BuildEvent) MicromambaComplete()

func (*BuildEvent) PipComplete

func (it *BuildEvent) PipComplete()

func (*BuildEvent) PostInstallComplete

func (it *BuildEvent) PostInstallComplete()

func (*BuildEvent) PreRunComplete

func (it *BuildEvent) PreRunComplete()

func (*BuildEvent) PrepareComplete

func (it *BuildEvent) PrepareComplete()

func (*BuildEvent) Rebuild

func (it *BuildEvent) Rebuild()

func (*BuildEvent) RecordComplete

func (it *BuildEvent) RecordComplete()

func (*BuildEvent) RestoreComplete

func (it *BuildEvent) RestoreComplete()

func (*BuildEvent) RobotEnds

func (it *BuildEvent) RobotEnds()

func (*BuildEvent) RobotStarts

func (it *BuildEvent) RobotStarts()

func (*BuildEvent) StartNow

func (it *BuildEvent) StartNow(force bool)

func (*BuildEvent) Successful

func (it *BuildEvent) Successful()

type BuildEvents

type BuildEvents []*BuildEvent

func Stats

func Stats(weeks uint) (result BuildEvents, err error)

func (BuildEvents) Statsline

func (it BuildEvents) Statsline(tabbed *tabwriter.Writer, label string, nice prettify, tool picker)

type Event

type Event struct {
	When       int64  `json:"when"`
	Controller string `json:"controller"`
	Event      string `json:"event"`
	Detail     string `json:"detail"`
	Comment    string `json:"comment,omitempty"`
}

func Events

func Events() (result []Event, err error)

type Numbers

type Numbers []float64

func (Numbers) Statsline

func (it Numbers) Statsline() (average, low, median, high, worst float64)

Jump to

Keyboard shortcuts

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