firewallStatusEmoji returns the status emoji for a domain status
(status string)
| 801 | |
| 802 | // firewallStatusEmoji returns the status emoji for a domain status |
| 803 | func 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 |
| 817 | func isEmptyFirewallDiff(diff *FirewallDiff) bool { |
no outgoing calls