reports

package
v0.50.1 Latest Latest
Warning

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

Go to latest
Published: May 21, 2023 License: Apache-2.0 Imports: 7 Imported by: 1

Documentation

Index

Constants

View Source
const (
	// CONDITIONREPORTTEMPLATE defines
	CONDITIONREPORTTEMPLATE string = `` /* 190-byte string literal not displayed */

	// TARGETREPORTTEMPLATE ...
	TARGETREPORTTEMPLATE string = `` /* 172-byte string literal not displayed */

	// SOURCEREPORTTEMPLATE ...
	SOURCEREPORTTEMPLATE string = `` /* 169-byte string literal not displayed */

	// REPORTTEMPLATE ...
	REPORTTEMPLATE string = `` /* 755-byte string literal not displayed */

)

Variables

This section is empty.

Functions

func MergeFromString added in v0.49.0

func MergeFromString(old, new string) string

Types

type Action added in v0.49.0

type Action struct {
	ID            string         `xml:"id,attr"`
	Title         string         `xml:"-"`
	PipelineTitle string         `xml:"h3,omitempty"`
	Description   string         `xml:"p,omitempty"`
	Targets       []ActionTarget `xml:"details,omitempty"`
}

func (*Action) Merge added in v0.49.0

func (a *Action) Merge(sourceAction *Action)

func (*Action) String added in v0.49.0

func (a *Action) String() string

String show an action report formatted as a string

func (Action) ToActionsString added in v0.49.0

func (a Action) ToActionsString() string

String show an action report formatted as a string

type ActionTarget added in v0.49.0

type ActionTarget struct {
	ID          string                  `xml:"id,attr"`
	Title       string                  `xml:"summary,omitempty"`
	Description string                  `xml:"p,omitempty"`
	Changelogs  []ActionTargetChangelog `xml:"details,omitempty"`
}

ActionTarget holds target data to describe an action report

func (*ActionTarget) Merge added in v0.49.0

func (a *ActionTarget) Merge(sourceActionTarget *ActionTarget)

type ActionTargetChangelog added in v0.49.0

type ActionTargetChangelog struct {
	Title       string `xml:"summary,omitempty"`
	Description string `xml:"pre,omitempty"`
}

type Actions added in v0.49.0

type Actions struct {
	Actions []Action `xml:"action"`
}

func (*Actions) Merge added in v0.49.0

func (a *Actions) Merge(sourceActions *Actions)

func (*Actions) String added in v0.49.0

func (a *Actions) String() string

String show an action report formatted as a string

type Report

type Report struct {
	Name       string
	Err        string
	Result     string
	Sources    map[string]*result.Source
	Conditions map[string]*result.Condition
	Targets    map[string]*result.Target
}

Report contains a list of Rules

func (*Report) Init

func (r *Report) Init(name string, sourceNbr, conditionNbr, targetNbr int)

Init initializes a new report for a specific configuration

func (*Report) String

func (r *Report) String(mode string) (report string, err error)

String returns a report as a string

type Reports

type Reports []Report

Reports contains a list of report

func (*Reports) Show

func (r *Reports) Show() error

Show return a small reports of what has been changed

func (*Reports) Summary

func (r *Reports) Summary() (successCounter, changedCounter, failedCounter, skippedCounter int)

Summary display a summary of

type Stage

type Stage struct {
	Name   string
	Kind   string
	Result string
}

Stage contains the information if specific stage reported a success, a change, an error

Jump to

Keyboard shortcuts

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