Documentation ¶
Index ¶
- func PrintBanner(colors *common.ColorStruct)
- type Report
- type ReportService
- func (r *ReportService) Changed() bool
- func (r *ReportService) CreateReport() *Report
- func (r *ReportService) GetReport() *Report
- func (r *ReportService) PrintJSONToFile(file string)
- func (r *ReportService) PrintJSONToStdout()
- func (r *ReportService) PrintTagGroupTags(tagsByGroup map[string][]tags.ITag)
- func (r *ReportService) PrintToStdout(colors *common.ColorStruct)
- type ReportSummary
- type TagChangeAccumulator
- type TagRecord
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PrintBanner ¶
func PrintBanner(colors *common.ColorStruct)
Types ¶
type Report ¶
type Report struct { Summary ReportSummary `json:"summary"` NewResourceTags []TagRecord `json:"newResourceTags"` UpdatedResourceTags []TagRecord `json:"updatedResourceTags"` }
func (*Report) AsJSONBytes ¶
type ReportService ¶
type ReportService struct {
// contains filtered or unexported fields
}
var ReportServiceInst *ReportService
func (*ReportService) Changed ¶
func (r *ReportService) Changed() bool
func (*ReportService) CreateReport ¶
func (r *ReportService) CreateReport() *Report
func (*ReportService) GetReport ¶
func (r *ReportService) GetReport() *Report
func (*ReportService) PrintJSONToFile ¶
func (r *ReportService) PrintJSONToFile(file string)
func (*ReportService) PrintJSONToStdout ¶
func (r *ReportService) PrintJSONToStdout()
func (*ReportService) PrintTagGroupTags ¶
func (r *ReportService) PrintTagGroupTags(tagsByGroup map[string][]tags.ITag)
func (*ReportService) PrintToStdout ¶
func (r *ReportService) PrintToStdout(colors *common.ColorStruct)
PrintToStdout prints the Report to the normal std::out. The structure: <Banner> Scanned Resources: <int> New Resources Traced: <int> Updated Resources: <int> <New Resources Table> as generated by printNewResourcesToStdout, if not empty <Updated Resources Table> as generated by printUpdatedResourcesToStdout, if not empty
type ReportSummary ¶
type TagChangeAccumulator ¶
type TagChangeAccumulator struct { ScannedBlocks []structure.IBlock NewBlockTraces []structure.IBlock UpdatedBlockTraces []structure.IBlock }
var TagChangeAccumulatorInstance *TagChangeAccumulator
func (*TagChangeAccumulator) AccumulateChanges ¶
func (a *TagChangeAccumulator) AccumulateChanges(block structure.IBlock)
AccumulateChanges saves the results of the scan of each block. If a block has no changes, it will be saved only to ScannedBlocks Otherwise it will be saved to NewBlockTraces if it is new or to UpdatedBlockTraces otherwise
func (*TagChangeAccumulator) GetBlockChanges ¶
func (a *TagChangeAccumulator) GetBlockChanges() ([]structure.IBlock, []structure.IBlock)
GetBlockChanges returns both the NewBlockTraces and the UpdatedBlockTraces that were found by the parsers
func (*TagChangeAccumulator) GetScannedBlocks ¶
func (a *TagChangeAccumulator) GetScannedBlocks() []structure.IBlock