Documentation
¶
Index ¶
- func GetAllRecommendations(md bool) string
- func MaskSubscriptionID(subscriptionID string, mask bool) string
- func MaskSubscriptionIDInResourceID(resourceID string, mask bool) string
- type PluginResult
- type ReportData
- func (rd *ReportData) AdvisorTable() [][]string
- func (rd *ReportData) ArcSQLTable() [][]string
- func (rd *ReportData) AzurePolicyTable() [][]string
- func (rd *ReportData) ClearTableCache()
- func (rd *ReportData) CostTable() [][]string
- func (rd *ReportData) DefenderRecommendationsTable() [][]string
- func (rd *ReportData) DefenderTable() [][]string
- func (rd *ReportData) ExcludedResourcesTable() [][]string
- func (rd *ReportData) ImpactedTable() [][]string
- func (rd *ReportData) RecommendationsTable() [][]string
- func (rd *ReportData) ResourceTypesTable() [][]string
- func (rd *ReportData) ResourcesTable() [][]string
- type ResourceTypeCountResults
- type SupportedTypes
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAllRecommendations ¶
func MaskSubscriptionID ¶
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
Click to show internal directories.
Click to hide internal directories.