output

package
v0.4.9 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: Apache-2.0 Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Output

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

Output can be used when showcasing validation results at the end of the execution.

func (*Output) AddDebugLogs

func (o *Output) AddDebugLogs(log string)

func (*Output) AddError

func (o *Output) AddError(err error) *Output

AddError adds error as generic to the list of errors

func (*Output) AddException

func (o *Output) AddException(message error)

AddException adds an exception to the list of exceptions

func (*Output) Format added in v0.2.2

func (o *Output) Format(debug bool) string

Format can be used to retrieve the string for the output structure

func (*Output) GetEgressURLFailures added in v0.2.1

func (o *Output) GetEgressURLFailures() []*handledErrors.GenericError

GetEgressURLFailures returns only errors related to network egress failures. Use the EgressURL() method to obtain the specific url for each error.

func (*Output) IsSuccessful

func (o *Output) IsSuccessful() bool

IsSuccessful checks whether the output contains any item, returns false if there's any

func (*Output) Parse

func (o *Output) Parse() ([]error, []error, []error)

Parse returns the data being stored on output - failures as []error - exceptions as []error - errors as []error

func (*Output) SetEgressFailures

func (o *Output) SetEgressFailures(failures []string)

SetEgressFailures sets egress endpoint failures as a bulk update

func (*Output) Summary

func (o *Output) Summary(debug bool)

Summary can be used for printing out output structure

Jump to

Keyboard shortcuts

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