MCPcopy Create free account
hub / github.com/github/gh-aw / firewallStatusEmoji

Function firewallStatusEmoji

pkg/cli/audit_diff_render.go:803–814  ·  view source on GitHub ↗

firewallStatusEmoji returns the status emoji for a domain status

(status string)

Source from the content-addressed store, hash-verified

801
802// firewallStatusEmoji returns the status emoji for a domain status
803func firewallStatusEmoji(status string) string {
804 switch status {
805 case "allowed":
806 return "✅"
807 case "denied":
808 return "❌"
809 case "mixed":
810 return "⚠️"
811 default:
812 return "❓"
813 }
814}
815
816// isEmptyFirewallDiff returns true if the firewall diff contains no changes
817func isEmptyFirewallDiff(diff *FirewallDiff) bool {

Calls

no outgoing calls

Tested by 1

TestStatusEmojiFunction · 0.68