Documentation
¶
Overview ¶
Package status renders colored status badges for Tero entities.
Each entity type has its own renderer with the correct status-to-color mapping. All renderers produce a colored dot (●) followed by an optional label.
Index ¶
- func LogEvent(theme styles.Theme, s domain.LogEventStatus, showLabel bool) string
- func LogEventDot(theme styles.Theme, s domain.LogEventStatus) string
- func Policy(theme styles.Theme, s domain.PolicyLogStatus, showLabel bool) string
- func PolicyDot(theme styles.Theme, s domain.PolicyLogStatus) string
- func Risk(theme styles.Theme, r domain.RiskLevel, showLabel bool) string
- func Service(theme styles.Theme, s domain.ServiceLogStatus, showLabel bool) string
- func ServiceDot(theme styles.Theme, s domain.ServiceLogStatus) string
- func Waste(theme styles.Theme, pct int) string
- func WasteShort(theme styles.Theme, pct int) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LogEventDot ¶
func LogEventDot(theme styles.Theme, s domain.LogEventStatus) string
LogEventDot renders just the colored dot for a log event status.
func PolicyDot ¶
func PolicyDot(theme styles.Theme, s domain.PolicyLogStatus) string
PolicyDot renders just the colored dot for a policy status.
func ServiceDot ¶
func ServiceDot(theme styles.Theme, s domain.ServiceLogStatus) string
ServiceDot renders just the colored dot for a service status.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.