Documentation ¶
Index ¶
- Constants
- func VerificationReports(reports []VerificationReport, reporting Reporting, ...)
- type Info
- type Reporting
- type ReportingModule
- func (r *ReportingModule) AppendSpecialCharater(symbol int, str string) string
- func (r *ReportingModule) ChangeColour(fgColor int, msg string) string
- func (r *ReportingModule) GenerateTableOutputAndPrint(tb *Table)
- func (r *ReportingModule) GetAllTableKeys() []string
- func (r *ReportingModule) GetAllTables() map[string]*Table
- func (r *ReportingModule) GetTable(key string) *Table
- func (r *ReportingModule) SetTable(key string, table *Table)
- type StatusMessage
- type SummaryInfo
- type Table
- type VerificationReport
Constants ¶
View Source
const ( Red = iota Green Yellow Grey )
View Source
const ( Failed = iota Success Warning SquareBracket Skipped )
Variables ¶
This section is empty.
Functions ¶
func VerificationReports ¶
func VerificationReports(reports []VerificationReport, reporting Reporting, nodeInfoMap map[string][]Info)
Types ¶
type Info ¶
type Info struct { Hostip string `json:"hostip,omitempty"` Parameter string `json:"parameter,omitempty"` Status string `json:"status,omitempty"` StatusMessage *StatusMessage `json:"statusMessage,omitempty"` SummaryInfo *SummaryInfo `json:"summaryInfo,omitempty"` }
type Reporting ¶
type ReportingModule ¶
type ReportingModule struct {
// contains filtered or unexported fields
}
func (*ReportingModule) AppendSpecialCharater ¶
func (r *ReportingModule) AppendSpecialCharater(symbol int, str string) string
AppendSpecialCharater returns a string. Function appends a special char at the start of the str provided in arguments and returns that string
func (*ReportingModule) ChangeColour ¶
func (r *ReportingModule) ChangeColour(fgColor int, msg string) string
ChangeColour returns a string. Function changes the color of the msg provided in arguments to the color given
func (*ReportingModule) GenerateTableOutputAndPrint ¶
func (r *ReportingModule) GenerateTableOutputAndPrint(tb *Table)
GenerateTableOutputAndPrint prints table provided as argument
func (*ReportingModule) GetAllTableKeys ¶
func (r *ReportingModule) GetAllTableKeys() []string
GetAllTableKeys returns all keys present in tables map
func (*ReportingModule) GetAllTables ¶
func (r *ReportingModule) GetAllTables() map[string]*Table
GetAllTables returns tables map
func (*ReportingModule) GetTable ¶
func (r *ReportingModule) GetTable(key string) *Table
GetTable returns table present in tables map for given key.
func (*ReportingModule) SetTable ¶
func (r *ReportingModule) SetTable(key string, table *Table)
SetTable sets the value of tables[key] in tables map to table provided in argument
type StatusMessage ¶
type SummaryInfo ¶
type VerificationReport ¶
Click to show internal directories.
Click to hide internal directories.