Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Module ¶
type Module interface {
GetDescription() string
IsEnabled() bool
Run() ([]*ModuleReport, error)
}
type ModuleReport ¶
type ModuleReport struct {
Name string `json:"name"`
Timestamp common.Timestamp `json:"timestamp"`
ExecutedCommand string `json:"command executed,omitempty"`
Alerts []Alert `json:"alerts"`
Warnings []Warning `json:"warnings"`
Message string `json:"message,omitempty"`
Measurements map[string]interface{} `json:"measurements,omitempty"`
}
ModuleReport provides the results of Module run Do not use the struct directly, use NewReport() to initialize it
func (*ModuleReport) AddAlert ¶
func (r *ModuleReport) AddAlert(alert string)
func (*ModuleReport) AddWarning ¶
func (r *ModuleReport) AddWarning(warn string)
Click to show internal directories.
Click to hide internal directories.