Documentation ¶
Index ¶
- func AppendIngress(inf *ingressnodefwv1alpha1.IngressNodeFirewall, sourceCIDR string, ...)
- func CreateIngressNodeFirewall(client *testclient.ClientSet, inf *ingressnodefwv1alpha1.IngressNodeFirewall, ...) error
- func DefineWithInterface(inf *ingressnodefwv1alpha1.IngressNodeFirewall, interfaceName string)
- func DefineWithInterfaces(inf *ingressnodefwv1alpha1.IngressNodeFirewall, interfaces []string)
- func DefineWithWorkerNodeSelector(inf *ingressnodefwv1alpha1.IngressNodeFirewall)
- func DeleteIngressNodeFirewall(client *testclient.ClientSet, inf *ingressnodefwv1alpha1.IngressNodeFirewall, ...) error
- func DeleteIngressNodeFirewallConfig(client *testclient.ClientSet, ...)
- func DeleteIngressNodeFirewallsWithLabels(client *testclient.ClientSet, namespace, label string, timeout time.Duration) error
- func EnsureIngressNodeFirewallConfigExists(client *testclient.ClientSet, ...) error
- func GetICMPBlockRule(proto ingressnodefwv1alpha1.IngressNodeFirewallRuleProtocolType, order uint32, ...) ingressnodefwv1alpha1.IngressNodeFirewallProtocolRule
- func GetICMPV4Rule(order uint32, icmpType, icmpCode uint8, ...) ingressnodefwv1alpha1.IngressNodeFirewallProtocolRule
- func GetIngressNodeFirewallConfigs(client *testclient.ClientSet, timeout time.Duration) ([]ingressnodefwv1alpha1.IngressNodeFirewallConfig, error)
- func GetIngressNodeFirewallObj(client *testclient.ClientSet, name string, ...) error
- func GetSCTPRule(order uint32, port string, ...) ingressnodefwv1alpha1.IngressNodeFirewallProtocolRule
- func GetTCPRule(order uint32, port string, ...) ingressnodefwv1alpha1.IngressNodeFirewallProtocolRule
- func GetTransportProtocolBlockPortRule(proto ingressnodefwv1alpha1.IngressNodeFirewallRuleProtocolType, order uint32, ...) ingressnodefwv1alpha1.IngressNodeFirewallProtocolRule
- func GetUDPRule(order uint32, port string, ...) ingressnodefwv1alpha1.IngressNodeFirewallProtocolRule
- func IsICMPProtocol(protocol ingressnodefwv1alpha1.IngressNodeFirewallRuleProtocolType) bool
- func IsTransportProtocol(protocol ingressnodefwv1alpha1.IngressNodeFirewallRuleProtocolType) bool
- func LoadIngressNodeFirewallConfigFromFile(config *ingressnodefwv1alpha1.IngressNodeFirewallConfig, fileName string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AppendIngress ¶
func AppendIngress(inf *ingressnodefwv1alpha1.IngressNodeFirewall, sourceCIDR string, rules ...ingressnodefwv1alpha1.IngressNodeFirewallProtocolRule)
func CreateIngressNodeFirewall ¶
func CreateIngressNodeFirewall(client *testclient.ClientSet, inf *ingressnodefwv1alpha1.IngressNodeFirewall, timeout time.Duration) error
func DefineWithInterface ¶
func DefineWithInterface(inf *ingressnodefwv1alpha1.IngressNodeFirewall, interfaceName string)
func DefineWithInterfaces ¶
func DefineWithInterfaces(inf *ingressnodefwv1alpha1.IngressNodeFirewall, interfaces []string)
func DefineWithWorkerNodeSelector ¶
func DefineWithWorkerNodeSelector(inf *ingressnodefwv1alpha1.IngressNodeFirewall)
func DeleteIngressNodeFirewall ¶
func DeleteIngressNodeFirewall(client *testclient.ClientSet, inf *ingressnodefwv1alpha1.IngressNodeFirewall, timeout time.Duration) error
func DeleteIngressNodeFirewallConfig ¶
func DeleteIngressNodeFirewallConfig(client *testclient.ClientSet, config *ingressnodefwv1alpha1.IngressNodeFirewallConfig, interval, timeout time.Duration)
DeleteIngressNodeFirewallConfig and check the IngressNodeFirewallConfig custom resource is deleted to avoid status leak in between tests.
func EnsureIngressNodeFirewallConfigExists ¶
func EnsureIngressNodeFirewallConfigExists(client *testclient.ClientSet, config *ingressnodefwv1alpha1.IngressNodeFirewallConfig, timeout time.Duration) error
func GetICMPBlockRule ¶
func GetICMPBlockRule(proto ingressnodefwv1alpha1.IngressNodeFirewallRuleProtocolType, order uint32, icmpType, icmpCode uint8) ingressnodefwv1alpha1.IngressNodeFirewallProtocolRule
func GetICMPV4Rule ¶
func GetICMPV4Rule(order uint32, icmpType, icmpCode uint8, action ingressnodefwv1alpha1.IngressNodeFirewallActionType) ingressnodefwv1alpha1.IngressNodeFirewallProtocolRule
func GetIngressNodeFirewallConfigs ¶
func GetIngressNodeFirewallConfigs(client *testclient.ClientSet, timeout time.Duration) ([]ingressnodefwv1alpha1.IngressNodeFirewallConfig, error)
func GetIngressNodeFirewallObj ¶
func GetIngressNodeFirewallObj(client *testclient.ClientSet, name string, inf *ingressnodefwv1alpha1.IngressNodeFirewall, timeout time.Duration) error
func GetSCTPRule ¶
func GetSCTPRule(order uint32, port string, action ingressnodefwv1alpha1.IngressNodeFirewallActionType) ingressnodefwv1alpha1.IngressNodeFirewallProtocolRule
func GetTCPRule ¶
func GetTCPRule(order uint32, port string, action ingressnodefwv1alpha1.IngressNodeFirewallActionType) ingressnodefwv1alpha1.IngressNodeFirewallProtocolRule
func GetTransportProtocolBlockPortRule ¶
func GetTransportProtocolBlockPortRule(proto ingressnodefwv1alpha1.IngressNodeFirewallRuleProtocolType, order uint32, port string) ingressnodefwv1alpha1.IngressNodeFirewallProtocolRule
func GetUDPRule ¶
func GetUDPRule(order uint32, port string, action ingressnodefwv1alpha1.IngressNodeFirewallActionType) ingressnodefwv1alpha1.IngressNodeFirewallProtocolRule
func IsICMPProtocol ¶
func IsICMPProtocol(protocol ingressnodefwv1alpha1.IngressNodeFirewallRuleProtocolType) bool
func IsTransportProtocol ¶
func IsTransportProtocol(protocol ingressnodefwv1alpha1.IngressNodeFirewallRuleProtocolType) bool
func LoadIngressNodeFirewallConfigFromFile ¶
func LoadIngressNodeFirewallConfigFromFile(config *ingressnodefwv1alpha1.IngressNodeFirewallConfig, fileName string) error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.