renderers

package
v0.0.0-...-3686f94 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAllRecommendations

func GetAllRecommendations(md bool) string

func MaskSubscriptionID

func MaskSubscriptionID(subscriptionID string, mask bool) string

func MaskSubscriptionIDInResourceID

func MaskSubscriptionIDInResourceID(resourceID string, mask bool) string

Types

type PluginResult

type PluginResult struct {
	PluginName  string     // Name of the plugin
	SheetName   string     // Name for Excel sheet
	Description string     // Description of the data
	Table       [][]string // Table data (first row is headers)
}

PluginResult represents data from an external plugin

type ReportData

type ReportData struct {
	OutputFileName          string
	Mask                    bool
	Graph                   []*models.GraphResult                             `json:"graph,omitempty"`
	Defender                []*models.DefenderResult                          `json:"defender,omitempty"`
	DefenderRecommendations []*models.DefenderRecommendation                  `json:"defenderRecommendations,omitempty"`
	Advisor                 []*models.AdvisorResult                           `json:"advisor,omitempty"`
	AzurePolicy             []*models.AzurePolicyResult                       `json:"azurePolicy,omitempty"`
	ArcSQL                  []*models.ArcSQLResult                            `json:"arcSQL,omitempty"`
	Cost                    []*models.CostResult                              `json:"cost,omitempty"`
	Recommendations         map[string]map[string]*models.GraphRecommendation `json:"-"`
	Resources               []*models.Resource                                `json:"resources,omitempty"`
	ExludedResources        []*models.Resource                                `json:"-"`
	ResourceTypeCount       []*models.ResourceTypeCount                       `json:"resourceTypeCount,omitempty"`
	PluginResults           []*PluginResult                                   `json:"pluginResults,omitempty"`
	Stages                  *models.StageConfigs                              `json:"-"`
	// contains filtered or unexported fields
}

func NewReportData

func NewReportData(outputFile string, mask bool, stages *models.StageConfigs) ReportData

func (*ReportData) AdvisorTable

func (rd *ReportData) AdvisorTable() [][]string

func (*ReportData) ArcSQLTable

func (rd *ReportData) ArcSQLTable() [][]string

ArcSQLTable returns Arc-enabled SQL Server data formatted as a table with headers and rows for reporting.

func (*ReportData) AzurePolicyTable

func (rd *ReportData) AzurePolicyTable() [][]string

AzurePolicyTable returns Azure Policy data formatted as a table with headers and rows for reporting.

func (*ReportData) ClearTableCache

func (rd *ReportData) ClearTableCache()

ClearTableCache clears all cached table data, forcing regeneration on next call. Useful if underlying data changes after initial table generation.

func (*ReportData) CostTable

func (rd *ReportData) CostTable() [][]string

func (*ReportData) DefenderRecommendationsTable

func (rd *ReportData) DefenderRecommendationsTable() [][]string

func (*ReportData) DefenderTable

func (rd *ReportData) DefenderTable() [][]string

func (*ReportData) ExcludedResourcesTable

func (rd *ReportData) ExcludedResourcesTable() [][]string

func (*ReportData) ImpactedTable

func (rd *ReportData) ImpactedTable() [][]string

func (*ReportData) RecommendationsTable

func (rd *ReportData) RecommendationsTable() [][]string

func (*ReportData) ResourceTypesTable

func (rd *ReportData) ResourceTypesTable() [][]string

func (*ReportData) ResourcesTable

func (rd *ReportData) ResourcesTable() [][]string

type ResourceTypeCountResults

type ResourceTypeCountResults struct {
	ResourceType []models.ResourceTypeCount `json:"ResourceType"`
}

type SupportedTypes

type SupportedTypes struct{}

func (SupportedTypes) GetAll

func (t SupportedTypes) GetAll() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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