output

package
v1.22.1 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2021 License: GPL-3.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Nl2Br

func Nl2Br(str string) template.HTML

Nl2Br is breakstr inserted before looks like space (CRLF , LFCR, SPACE, NL)

func ParseDate

func ParseDate(d string) string

Since -

func ParseDuration

func ParseDuration(n int) gotime.Duration

ParseDuration -

func ParseTime

func ParseTime(d string) string

func Percentage

func Percentage(a int, b int) string

func Since

func Since(n gotime.Time) gotime.Duration

Since -

func ToTable

func ToTable(out io.Writer, report *reporting.Report)

Types

type DocumentStore

type DocumentStore struct {
	Pipeline DocumentStorePipeline
	Job      DocumentStoreJob
	Stage    DocumentStoreStage
	Metrics  DocumentStoreStageMetrics
	Date     string `json:"timestamp"`
}

type DocumentStoreJob

type DocumentStoreJob struct {
	ID, Name string
	Context  pipelines.JobContextDefinition
}

type DocumentStorePipeline

type DocumentStorePipeline struct {
	Name, Team, File string
}

type DocumentStoreStage

type DocumentStoreStage struct {
	URL, Name, Vendor, Version string
}

type DocumentStoreStageMetricValue

type DocumentStoreStageMetricValue struct {
	ValueStr, ValueDisplay, Unit string
	Value                        int
}

type DocumentStoreStageMetrics

type DocumentStoreStageMetrics struct {
	Status, Reason, Link string
	Timeline             utils.ExecutionTimeline
	Value                DocumentStoreStageMetricValue
}

type ReportHTML

type ReportHTML struct {
	TemplatePath  string
	ShowWorkLinks bool
	Report        *reporting.Report
}

func NewReportHTML

func NewReportHTML(templatePath string, report *reporting.Report) *ReportHTML

func (*ReportHTML) LinkTo

func (rHTML *ReportHTML) LinkTo(k string, v string) string

func (*ReportHTML) ToHTML

func (rHTML *ReportHTML) ToHTML(out io.Writer)

type SaveStore

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

func NewStore

func NewStore() *SaveStore

func (*SaveStore) SaveReport

func (thisRepo *SaveStore) SaveReport(report *reporting.Report)

Jump to

Keyboard shortcuts

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