report

package
v0.18.7 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2018 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ErrClassDeployment represents an error during deployment
	ErrClassDeployment = "Deployment"
	// ErrClassValidation represents an error during validation (tests)
	ErrClassValidation = "Validation"
	// ErrClassAzcli represents an error with Azure CLI
	ErrClassAzcli = "AzCLI"
	// ErrClassNone represents absence of error
	ErrClassNone = "None"

	// ErrSuccess represents a success, for some reason
	ErrSuccess = "Success"
	// ErrUnknown represents an unknown error
	ErrUnknown = "UnspecifiedError"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ErrorInfo added in v0.4.0

type ErrorInfo struct {
	TestName string
	Step     string
	ErrName  string
	ErrClass string
	Location string
}

ErrorInfo represents the CI error

func NewErrorInfo added in v0.4.0

func NewErrorInfo(testName, step, errName, errClass, location string) *ErrorInfo

NewErrorInfo TBD needs definition

type ErrorStat

type ErrorStat struct {
	Count     int            `json:"count"`
	Locations map[string]int `json:"locations"`
}

ErrorStat represents the aggregate error count and region

type Manager added in v0.5.0

type Manager struct {
	JobName     string    `json:"job"`
	BuildNum    int       `json:"build"`
	Deployments int       `json:"deployments"`
	Errors      int       `json:"errors"`
	StartTime   time.Time `json:"startTime"`
	Duration    string    `json:"duration"`
	// Failure map: key=error, value=locations
	Failures  map[string]*ErrorStat `json:"failures"`
	LogErrors logErrors             `json:"-"`
	// contains filtered or unexported fields
}

Manager represents the details about a build and errors in that build

func New

func New(jobName string, buildNum int, nDeploys int, logErrorsFileName string) *Manager

New creates a new error report

func (*Manager) Copy added in v0.5.0

func (h *Manager) Copy() *Manager

Copy TBD needs definition [ToDo]

func (*Manager) CreateCombinedReport added in v0.5.0

func (h *Manager) CreateCombinedReport(filepath, testReportFname string) error

CreateCombinedReport TBD needs definition

func (*Manager) CreateTestReport added in v0.5.0

func (h *Manager) CreateTestReport(filepath string) error

CreateTestReport TBD needs definition

func (*Manager) Process added in v0.5.0

func (h *Manager) Process(txt, step, testName, location string) *ErrorInfo

Process TBD needs definition

Jump to

Keyboard shortcuts

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