Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 55 of 55 for parseCert (0.21 sec)

  1. src/net/url/url_test.go

    	}
    	v.Del("bar")
    	if g, e := v.Get("bar"), ""; g != e {
    		t.Errorf("second Get(bar) = %q, want %q", g, e)
    	}
    }
    
    type parseTest struct {
    	query string
    	out   Values
    	ok    bool
    }
    
    var parseTests = []parseTest{
    	{
    		query: "a=1",
    		out:   Values{"a": []string{"1"}},
    		ok:    true,
    	},
    	{
    		query: "a=1&b=2",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 22:52:38 UTC 2024
    - 52.1K bytes
    - Viewed (0)
  2. src/cmd/go/internal/modindex/build.go

    // fileInfo records information learned about a file included in a build.
    type fileInfo struct {
    	name       string // full name including dir
    	header     []byte
    	fset       *token.FileSet
    	parsed     *ast.File
    	parseErr   error
    	imports    []fileImport
    	embeds     []fileEmbed
    	directives []build.Directive
    
    	// Additional fields added to go/build's fileinfo for the purposes of the modindex package.
    	binaryOnly           bool
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Aug 25 17:39:23 UTC 2023
    - 26.8K bytes
    - Viewed (0)
  3. cmd/kubeadm/app/apis/kubeadm/validation/validation.go

    	}
    	return allErrs
    }
    
    // ValidatePort validates port numbers
    func ValidatePort(port int32, fldPath *field.Path) field.ErrorList {
    	allErrs := field.ErrorList{}
    	if _, err := kubeadmutil.ParsePort(strconv.Itoa(int(port))); err != nil {
    		allErrs = append(allErrs, field.Invalid(fldPath, port, "port number is not valid"))
    	}
    	return allErrs
    }
    
    // ValidateHostPort validates host[:port] endpoints
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 01 16:01:49 UTC 2024
    - 33.4K bytes
    - Viewed (0)
  4. src/net/lookup.go

    //
    // The network must be one of "tcp", "tcp4", "tcp6", "udp", "udp4", "udp6" or "ip".
    func (r *Resolver) LookupPort(ctx context.Context, network, service string) (port int, err error) {
    	port, needsLookup := parsePort(service)
    	if needsLookup {
    		switch network {
    		case "tcp", "tcp4", "tcp6", "udp", "udp4", "udp6", "ip":
    		case "": // a hint wildcard for Go 1.0 undocumented behavior
    			network = "ip"
    		default:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Apr 14 18:23:45 UTC 2024
    - 28.6K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/server/config.go

    	addr := s.Listener.Addr().String()
    	host, portStr, err := net.SplitHostPort(addr)
    	if err != nil {
    		return "", 0, fmt.Errorf("failed to get port from listener address %q: %v", addr, err)
    	}
    	port, err := utilsnet.ParsePort(portStr, true)
    	if err != nil {
    		return "", 0, fmt.Errorf("invalid non-numeric port %q", portStr)
    	}
    	return host, port, nil
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 28 08:48:22 UTC 2024
    - 47.7K bytes
    - Viewed (0)
Back to top