- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for GetChain (0.11 sec)
-
pkg/util/iptables/testing/fake.go
if err != nil { return false, err } if c, _ := f.Dump.GetChain(table, chain); c != nil { return true, nil } t.Chains = append(t.Chains, Chain{Name: chain}) return false, nil } // FlushChain is part of iptables.Interface func (f *FakeIPTables) FlushChain(table iptables.Table, chain iptables.Chain) error { if c, _ := f.Dump.GetChain(table, chain); c != nil { c.Rules = nil } return nil }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Dec 19 01:20:51 UTC 2023 - 8.5K bytes - Viewed (0) -
pkg/util/iptables/testing/parse.go
Bytes: bytes, }, ) case parseChains: if match := addRuleRegex.FindStringSubmatch(line); match != nil { chain := iptables.Chain(match[1]) c, err := dump.GetChain(t.Name, chain) if err != nil { return nil, fmt.Errorf("error parsing rule %q: %v", line, err) } if c.Deleted { return nil, fmt.Errorf("cannot add rules to deleted chain %q", chain) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Dec 19 01:20:51 UTC 2023 - 11.6K bytes - Viewed (0) -
pkg/proxy/iptables/proxier_test.go
} }) } // Sort KUBE-NODEPORTS chains by service name chain, _ := dump.GetChain(utiliptables.TableFilter, kubeNodePortsChain) if chain != nil { sort.SliceStable(chain.Rules, func(i, j int) bool { return orderByCommentServiceName(chain.Rules[i], chain.Rules[j]) }) } chain, _ = dump.GetChain(utiliptables.TableNAT, kubeNodePortsChain) if chain != nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 21 14:39:54 UTC 2024 - 249.9K bytes - Viewed (0)