- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 125 for parseRule (0.23 sec)
-
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) -
platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/ivyservice/ivyresolve/parser/IvyXmlModuleDescriptorParser.java
throws MalformedURLException { state = State.DEP_ARTIFACT; parseRule(tag, attributes); } private void addIncludeRule(String tag, Attributes attributes) throws MalformedURLException { state = State.ARTIFACT_INCLUDE; parseRule(tag, attributes); } private void addExcludeRule(String tag, Attributes attributes)
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Jan 26 14:58:23 UTC 2024 - 65K bytes - Viewed (0) -
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) -
pkg/util/iptables/testing/fake.go
return false, err } rule := "-A " + string(chain) + " " + strings.Join(args, " ") for _, r := range c.Rules { if r.Raw == rule { return true, nil } } parsed, err := ParseRule(rule, false) if err != nil { return false, err } if position == iptables.Append { c.Rules = append(c.Rules, parsed) } else { c.Rules = append([]*Rule{parsed}, c.Rules...) }
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/proxy/ipvs/proxier_test.go
_ = ipt.SaveInto(utiliptables.TableNAT, buf) natRules := strings.Split(buf.String(), "\n") var hasMasqueradeJump, hasMasqRandomFully bool for _, line := range natRules { rule, _ := iptablestest.ParseRule(line, false) if rule != nil && rule.Chain == kubePostroutingChain && rule.Jump != nil && rule.Jump.Value == "MASQUERADE" { hasMasqueradeJump = true if rule.RandomFully != nil { hasMasqRandomFully = true
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Apr 27 01:31:57 UTC 2024 - 186.8K bytes - Viewed (0) -
src/go/printer/printer_test.go
// src is syntactically correct, and returns the resulting src or an error // if any. func format(src []byte, mode checkMode) ([]byte, error) { // parse src f, err := parser.ParseFile(fset, "", src, parser.ParseComments) if err != nil { return nil, fmt.Errorf("parse: %s\n%s", err, src) } // filter exports if necessary if mode&export != 0 { ast.FileExports(f) // ignore result
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jun 03 14:56:25 UTC 2024 - 20.4K bytes - Viewed (0) -
src/go/parser/interface.go
// ParseFile API and return a valid (but) empty // *ast.File f = &ast.File{ Name: new(ast.Ident), Scope: ast.NewScope(nil), } } p.errors.Sort() err = p.errors.Err() }() // parse source p.init(fset, filename, text, mode) f = p.parseFile() return } // ParseDir calls [ParseFile] for all files with names ending in ".go" in the
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 12:02:03 UTC 2023 - 7.5K bytes - Viewed (0) -
src/go/parser/performance_test.go
b.SetBytes(int64(len(src))) for i := 0; i < b.N; i++ { if _, err := ParseFile(token.NewFileSet(), "", src, ParseComments); err != nil { b.Fatalf("benchmark failed due to parse error: %s", err) } } } func BenchmarkParseOnly(b *testing.B) { b.SetBytes(int64(len(src))) for i := 0; i < b.N; i++ { if _, err := ParseFile(token.NewFileSet(), "", src, ParseComments|SkipObjectResolution); err != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Sep 01 22:35:46 UTC 2022 - 1.2K bytes - Viewed (0) -
platforms/ide/ide/src/testFixtures/groovy/org/gradle/plugins/ide/fixtures/IdeaFixtures.groovy
import groovy.xml.XmlSlurper import org.gradle.test.fixtures.file.TestFile class IdeaFixtures { static parseFile(TestFile file) { file.assertIsFile() new XmlSlurper().parse(file) } static IdeaProjectFixture parseIpr(TestFile projectFile) { return new IdeaProjectFixture(projectFile, parseFile(projectFile)) } static IdeaModuleFixture parseIml(TestFile moduleFile) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Sep 26 14:49:12 UTC 2023 - 1.2K bytes - Viewed (0) -
src/go/parser/parser_test.go
} { fset := token.NewFileSet() f, err := ParseFile(fset, "", src, 0) if err == nil { t.Errorf("ParseFile(%s) succeeded unexpectedly", src) continue } const wantErr = "expected selector or type assertion" if !strings.Contains(err.Error(), wantErr) { t.Errorf("ParseFile returned wrong error %q, want %q", err, wantErr) } var sel *ast.SelectorExpr
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jan 31 20:26:14 UTC 2024 - 24.6K bytes - Viewed (0)