status

package
v1.11.1 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

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

Constants

This section is empty.

Variables

This section is empty.

Functions

func LogEvent

func LogEvent(theme styles.Theme, s domain.LogEventStatus, showLabel bool) string

LogEvent renders a colored status badge for a log event status.

func LogEventDot

func LogEventDot(theme styles.Theme, s domain.LogEventStatus) string

LogEventDot renders just the colored dot for a log event status.

func Policy

func Policy(theme styles.Theme, s domain.PolicyLogStatus, showLabel bool) string

Policy renders a colored status badge for a policy status.

func PolicyDot

func PolicyDot(theme styles.Theme, s domain.PolicyLogStatus) string

PolicyDot renders just the colored dot for a policy status.

func Risk

func Risk(theme styles.Theme, r domain.RiskLevel, showLabel bool) string

Risk renders a colored status badge for a risk level.

func Service

func Service(theme styles.Theme, s domain.ServiceLogStatus, showLabel bool) string

Service renders a colored status badge for a service status.

func ServiceDot

func ServiceDot(theme styles.Theme, s domain.ServiceLogStatus) string

ServiceDot renders just the colored dot for a service status.

func Waste

func Waste(theme styles.Theme, pct int) string

Waste renders a colored dot with a waste percentage. Returns empty string if pct is 0.

func WasteShort

func WasteShort(theme styles.Theme, pct int) string

WasteShort renders a colored dot with just the percentage (no "waste" label). Useful for table cells.

Types

This section is empty.

Jump to

Keyboard shortcuts

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