FirewallRule is a rule of the firewall.
| 20 | |
| 21 | // FirewallRule is a rule of the firewall. |
| 22 | type FirewallRule struct { |
| 23 | // PolicyID is the ID of the policy this rule is derived from |
| 24 | PolicyID string |
| 25 | |
| 26 | // PeerIP of the peer |
| 27 | PeerIP string |
| 28 | |
| 29 | // Direction of the traffic |
| 30 | Direction int |
| 31 | |
| 32 | // Action of the traffic |
| 33 | Action string |
| 34 | |
| 35 | // Protocol of the traffic |
| 36 | Protocol string |
| 37 | |
| 38 | // Port of the traffic |
| 39 | Port string |
| 40 | |
| 41 | // PortRange represents the range of ports for a firewall rule |
| 42 | PortRange RulePortRange |
| 43 | } |
| 44 | |
| 45 | // Equal checks if two firewall rules are equal. |
| 46 | func (r *FirewallRule) Equal(other *FirewallRule) bool { |
nothing calls this directly
no outgoing calls
no test coverage detected