Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RepositoryStats ¶
type RepositoryStats struct {
TotalAssets int `json:"total_assets"`
AssetsByType map[string]int `json:"assets_by_type"`
TotalThreats int `json:"total_threats"`
ThreatsBySeverity map[string]int `json:"threats_by_severity"`
TotalFlows int `json:"total_flows"`
SensitiveFlows int `json:"sensitive_flows"`
AverageRisk float64 `json:"average_risk"`
}
type RepositorySummary ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server serves the threat intelligence dashboard
func (*Server) AddRepository ¶
func (s *Server) AddRepository(repo *scanner.Repository, threats []mapper.MappedThreat)
AddRepository adds a scanned repository to the dashboard
Click to show internal directories.
Click to hide internal directories.