Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for ParseRule (0.22 sec)

  1. pkg/util/iptables/testing/parse.go

    // Used by ParseRule
    var boolPtrType = reflect.PointerTo(reflect.TypeOf(true))
    var ipTablesValuePtrType = reflect.TypeOf((*IPTablesValue)(nil))
    
    // ParseRule parses rule. If strict is false, it will parse the recognized
    // parameters and ignore unrecognized ones. If it is true, parsing will fail if there are
    // unrecognized parameters.
    func ParseRule(rule string, strict bool) (*Rule, error) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Dec 19 01:20:51 UTC 2023
    - 11.6K bytes
    - Viewed (0)
  2. pkg/util/iptables/testing/parse_test.go

    			},
    		},
    		{
    			name: "addRuleToChainRegex requires an actual rule, not just a chain name",
    			rule: `-A KUBE-NODEPORTS`,
    			err:  `(no match rules)`,
    		},
    		{
    			name: "ParseRule only parses adds",
    			rule: `-D KUBE-NODEPORTS -m comment --comment "ns2/svc2:p80 health check node port" -m tcp -p tcp --dport 30000 -j ACCEPT`,
    			err:  `(does not start with "-A CHAIN")`,
    		},
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Dec 19 01:20:51 UTC 2023
    - 26K bytes
    - Viewed (0)
Back to top