Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 18 for addReport (0.18 sec)

  1. src/cmd/gofmt/gofmt.go

    			r.Report(err)
    		}
    		next <- r.getState() // Release the next task.
    		s.sem.Release(weight)
    	}()
    }
    
    // AddReport prints an error to s after the output of any previously-added
    // tasks, causing the final exit code to be nonzero.
    func (s *sequencer) AddReport(err error) {
    	s.Add(0, func(*reporter) error { return err })
    }
    
    // GetExitCode waits for all previously-added tasks to complete, then returns an
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 19:41:17 UTC 2024
    - 15.1K bytes
    - Viewed (0)
  2. src/net/netip/inlining_test.go

    		"Addr.IsValid",
    		"Addr.IsUnspecified",
    		"Addr.Less",
    		"Addr.Unmap",
    		"Addr.Zone",
    		"Addr.v4",
    		"Addr.v6",
    		"Addr.v6u16",
    		"Addr.withoutZone",
    		"AddrPortFrom",
    		"AddrPort.Addr",
    		"AddrPort.Port",
    		"AddrPort.IsValid",
    		"Prefix.IsSingleIP",
    		"Prefix.Masked",
    		"Prefix.IsValid",
    		"PrefixFrom",
    		"Prefix.Addr",
    		"Prefix.Bits",
    		"AddrFrom4",
    		"IPv6LinkLocalAllNodes",
    		"IPv6Unspecified",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 17:10:01 UTC 2024
    - 2K bytes
    - Viewed (0)
  3. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/catalog/LibrariesSourceGenerator.java

        private void addImports() throws IOException {
            addImport(NonNullApi.class);
            addImport(MinimalExternalModuleDependency.class);
            addImport(PluginDependency.class);
            addImport(ExternalModuleDependencyBundle.class);
            addImport(MutableVersionConstraint.class);
            addImport(Provider.class);
            addImport(ObjectFactory.class);
            addImport(ProviderFactory.class);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Mar 06 13:35:05 UTC 2024
    - 36K bytes
    - Viewed (0)
  4. pkg/test/framework/components/istio/ingress.go

    func (c *ingressImpl) DiscoveryAddresses() []netip.AddrPort {
    	hosts, ports := c.AddressesForPort(discoveryPort)
    	var addrs []netip.AddrPort
    	if hosts == nil {
    		return []netip.AddrPort{{}}
    	}
    	for i, host := range hosts {
    		ip, err := netip.ParseAddr(host)
    		if err != nil {
    			return []netip.AddrPort{}
    		}
    		addrs = append(addrs, netip.AddrPortFrom(ip, uint16(ports[i])))
    	}
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Feb 29 17:13:34 UTC 2024
    - 8K bytes
    - Viewed (0)
  5. src/net/netip/netip.go

    }
    
    // AddrPort is an IP and a port number.
    type AddrPort struct {
    	ip   Addr
    	port uint16
    }
    
    // AddrPortFrom returns an [AddrPort] with the provided IP and port.
    // It does not allocate.
    func AddrPortFrom(ip Addr, port uint16) AddrPort { return AddrPort{ip: ip, port: port} }
    
    // Addr returns p's IP address.
    func (p AddrPort) Addr() Addr { return p.ip }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 17:10:01 UTC 2024
    - 43.2K bytes
    - Viewed (0)
  6. src/net/udpsock_posix.go

    		}
    	}
    	if err != nil {
    		// No sockaddr, so don't return UDPAddr.
    		addr = nil
    	}
    	return n, addr, err
    }
    
    func (c *UDPConn) readFromAddrPort(b []byte) (n int, addr netip.AddrPort, err error) {
    	var ip netip.Addr
    	var port int
    	switch c.fd.family {
    	case syscall.AF_INET:
    		var from syscall.SockaddrInet4
    		n, err = c.fd.readFromInet4(b, &from)
    		if err == nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 16:54:32 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  7. src/net/netip/netip_test.go

    	if got != want {
    		t.Errorf("unexpected sort\n got: %s\nwant: %s\n", got, want)
    	}
    }
    
    func TestAddrPortCompare(t *testing.T) {
    	tests := []struct {
    		a, b AddrPort
    		want int
    	}{
    		{AddrPort{}, AddrPort{}, 0},
    		{AddrPort{}, mustIPPort("1.2.3.4:80"), -1},
    
    		{mustIPPort("1.2.3.4:80"), mustIPPort("1.2.3.4:80"), 0},
    		{mustIPPort("[::1]:80"), mustIPPort("[::1]:80"), 0},
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 17:10:01 UTC 2024
    - 54.3K bytes
    - Viewed (0)
  8. src/net/tcpsock.go

    	IP   IP
    	Port int
    	Zone string // IPv6 scoped addressing zone
    }
    
    // AddrPort returns the [TCPAddr] a as a [netip.AddrPort].
    //
    // If a.Port does not fit in a uint16, it's silently truncated.
    //
    // If a is nil, a zero value is returned.
    func (a *TCPAddr) AddrPort() netip.AddrPort {
    	if a == nil {
    		return netip.AddrPort{}
    	}
    	na, _ := netip.AddrFromSlice(a.IP)
    	na = na.WithZone(a.Zone)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 15 03:10:07 UTC 2024
    - 13.7K bytes
    - Viewed (0)
  9. pkg/test/framework/components/istio/ingress/interface.go

    	// DiscoveryAddresses returns the external XDS (15012) address on the ingress gateway (or the NodePort address,
    	// when in an environment that doesn't support LoadBalancer).
    	DiscoveryAddresses() []netip.AddrPort
    	// AddressesForPort returns the external address of the ingress gateway (or the NodePort address,
    	// when in an environment that doesn't support LoadBalancer) for the given port.
    	AddressesForPort(port int) ([]string, []int)
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Feb 29 17:13:34 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  10. pkg/test/framework/components/istio/kube.go

    		if err != nil {
    			return netip.AddrPort{}, err
    		}
    		addr = address.(netip.AddrPort)
    	} else {
    		name := types.NamespacedName{Name: eastWestIngressServiceName, Namespace: i.cfg.SystemNamespace}
    		addr = i.CustomIngressFor(primary, name, eastWestIngressIstioLabel).DiscoveryAddresses()[0]
    	}
    	if !addr.IsValid() {
    		return netip.AddrPort{}, fmt.Errorf("failed to get ingress IP for %s", primary.Name())
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 22:12:34 UTC 2024
    - 31.1K bytes
    - Viewed (0)
Back to top