Documentation
¶
Overview ¶
Package utils contains utility functions for firewalls.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FilterRuleWrapper ¶
type FilterRuleWrapper struct {
*firewallv1beta1.FilterRule
}
FilterRuleWrapper is a wrapper for a FilterRule.
func (*FilterRuleWrapper) Equal ¶
func (fr *FilterRuleWrapper) Equal(currentrule *nftables.Rule) bool
Equal checks if the rule is equal to the given one.
func (*FilterRuleWrapper) GetName ¶
func (fr *FilterRuleWrapper) GetName() *string
GetName returns the name of the rule.
func (*FilterRuleWrapper) SetName ¶
func (fr *FilterRuleWrapper) SetName(name string)
SetName sets the name of the rule.
type NatRuleWrapper ¶
type NatRuleWrapper struct {
*firewallv1beta1.NatRule
}
NatRuleWrapper wraps a NatRule.
func (*NatRuleWrapper) Equal ¶
func (nr *NatRuleWrapper) Equal(currentrule *nftables.Rule) bool
Equal checks if the rule is equal to the given one.
func (*NatRuleWrapper) GetName ¶
func (nr *NatRuleWrapper) GetName() *string
GetName returns the name of the rule.
func (*NatRuleWrapper) SetName ¶
func (nr *NatRuleWrapper) SetName(name string)
SetName sets the name of the rule.
type RouteRuleWrapper ¶
type RouteRuleWrapper struct {
*firewallv1beta1.RouteRule
}
RouteRuleWrapper is a wrapper for a RouteRule.
func (*RouteRuleWrapper) Equal ¶
func (rr *RouteRuleWrapper) Equal(_ *nftables.Rule) bool
Equal checks if the rule is equal to the given one.
func (*RouteRuleWrapper) GetName ¶
func (rr *RouteRuleWrapper) GetName() *string
GetName returns the name of the rule.
func (*RouteRuleWrapper) SetName ¶
func (rr *RouteRuleWrapper) SetName(name string)
SetName sets the name of the rule.
Click to show internal directories.
Click to hide internal directories.