- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 29 for parseCert (0.17 sec)
-
pilot/pkg/model/context_test.go
t.Errorf("ParsePort(127.0.0.1) => Got %d, want 0", port) } if port := model.ParsePort("[::1]:3000"); port != 3000 { t.Errorf("ParsePort([::1]:3000) => Got %d, want 3000", port) } if port := model.ParsePort("::1"); port != 0 { t.Errorf("ParsePort(::1) => Got %d, want 0", port) } if port := model.ParsePort("[2001:4860:0:2001::68]:3000"); port != 3000 {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri Apr 05 23:51:52 UTC 2024 - 11.2K bytes - Viewed (0) -
src/regexp/syntax/parse_test.go
// license that can be found in the LICENSE file. package syntax import ( "fmt" "strings" "testing" "unicode" ) type parseTest struct { Regexp string Dump string } var parseTests = []parseTest{ // Base cases {`a`, `lit{a}`}, {`a.`, `cat{lit{a}dot{}}`}, {`a.b`, `cat{lit{a}dot{}lit{b}}`}, {`ab`, `str{ab}`}, {`a.b.c`, `cat{lit{a}dot{}lit{b}dot{}lit{c}}`},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Aug 16 16:02:30 UTC 2023 - 16.2K bytes - Viewed (0) -
pilot/pkg/security/authz/builder/extauthz.go
} func buildExtAuthzHTTP(push *model.PushContext, config *meshconfig.MeshConfig_ExtensionProvider_EnvoyExternalAuthorizationHttpProvider, ) (*builtExtAuthz, error) { var errs error port, err := parsePort(config.Port) if err != nil { errs = multierror.Append(errs, err) } hostname, cluster, err := model.LookupCluster(push, config.Service, port) if err != nil { model.IncLookupClusterFailures("authz")
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Apr 17 20:06:41 UTC 2024 - 12.7K bytes - Viewed (0) -
subprojects/core/src/test/groovy/org/gradle/internal/xml/XmlTransformerTest.groovy
def "can transform Node to a Writer"() { Action<XmlProvider> action = Mock() transformer.addAction(action) StringWriter writer = new StringWriter() Node node = new XmlParser().parseText('<root/>') when: transformer.transform(node, writer) then: action.execute(_) >> { XmlProvider provider -> provider.asNode().appendNode('child1') }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 15 08:16:06 UTC 2023 - 12.7K bytes - Viewed (0) -
tools/istio-iptables/pkg/dependencies/implementation_linux.go
var parseErr error // we found the binary - extract the version, then try to detect if rules already exist for that variant parsedVer, parseErr = parseIptablesVer(verStdOut.String()) if parseErr != nil { return IptablesVersion{}, fmt.Errorf("iptables version %q is not a valid version string: %v", verStdOut.Bytes(), parseErr) }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Mar 12 20:49:10 UTC 2024 - 12K bytes - Viewed (0) -
src/net/conf.go
goDebug := netdns.Value() parsePart := func(s string) { if s == "" { return } if '0' <= s[0] && s[0] <= '9' { debugLevel, _, _ = dtoi(s) } else { dnsMode = s } } if i := bytealg.IndexByteString(goDebug, '+'); i != -1 { parsePart(goDebug[:i]) parsePart(goDebug[i+1:]) return } parsePart(goDebug) return }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat May 18 03:13:26 UTC 2024 - 15.5K bytes - Viewed (0) -
cni/pkg/plugin/sidecar_redirect.go
dedup := make(map[string]bool) keys := []string{} for _, port := range ports { if !dedup[port] { dedup[port] = true keys = append(keys, port) } } return keys } func parsePort(portStr string) (uint16, error) { port, err := strconv.ParseUint(strings.TrimSpace(portStr), 10, 16) if err != nil { return 0, fmt.Errorf("failed parsing port %q: %v", portStr, err) } return uint16(port), nil
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri Jan 26 20:34:28 UTC 2024 - 10.6K bytes - Viewed (0) -
src/go/build/read.go
if r.err != nil { return r.err } if info.fset == nil { return nil } // Parse file header & record imports. info.parsed, info.parseErr = parser.ParseFile(info.fset, info.name, info.header, parser.ImportsOnly|parser.ParseComments) if info.parseErr != nil { return nil } hasEmbed := false for _, decl := range info.parsed.Decls { d, ok := decl.(*ast.GenDecl) if !ok { continue
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 16:25:21 UTC 2024 - 14.1K bytes - Viewed (0) -
src/go/doc/comment/parse.go
} if i >= 0 { before = text[:i] } return before, name, true } // parseText parses s as text and returns the result of appending // those parsed Text elements to out. // parseText does not handle explicit links like [math.Sin] or [Go home page]: // those are handled by parseLinkedText. // If autoLink is true, then parseText recognizes URLs and words from d.Words // and converts those to links as appropriate.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 12:02:03 UTC 2023 - 33.5K bytes - Viewed (0) -
src/cmd/go/internal/modindex/build_read.go
if r.err != nil { return r.err } if info.fset == nil { return nil } // Parse file header & record imports. info.parsed, info.parseErr = parser.ParseFile(info.fset, info.name, info.header, parser.ImportsOnly|parser.ParseComments) if info.parseErr != nil { return nil } hasEmbed := false for _, decl := range info.parsed.Decls { d, ok := decl.(*ast.GenDecl) if !ok { continue
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Feb 23 10:10:21 UTC 2023 - 13K bytes - Viewed (0)