Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 147 for onetmp (0.12 sec)

  1. platforms/core-runtime/concurrent/src/main/java/org/gradle/internal/concurrent/ExecutorPolicy.java

         *
         * This is called after the underlying Executor has been stopped.
         */
        void onStop();
    
        /**
         * Runs the Runnable, catches all Throwables and logs them.
         *
         * The first exception caught during onExecute(), will be rethrown in onStop().
         */
        class CatchAndRecordFailures implements ExecutorPolicy {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 11 19:07:35 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  2. src/net/udpsock_plan9.go

    	n := copy(b, buf)
    	ip, _ := netip.AddrFromSlice(h.raddr)
    	addr := netip.AddrPortFrom(ip, h.rport)
    	return n, addr, nil
    }
    
    func (c *UDPConn) readMsg(b, oob []byte) (n, oobn, flags int, addr netip.AddrPort, err error) {
    	return 0, 0, 0, netip.AddrPort{}, syscall.EPLAN9
    }
    
    func (c *UDPConn) writeTo(b []byte, addr *UDPAddr) (int, error) {
    	if addr == nil {
    		return 0, errMissingAddress
    	}
    	h := new(udpHeader)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 02 18:35:35 UTC 2021
    - 4.6K bytes
    - Viewed (0)
  3. operator/pkg/validate/validate_values_test.go

    `,
    			wantErrs: makeErrors([]string{
    				`global.proxy.excludeIPRanges netip.ParsePrefix("3.3.0.0/33"): prefix length out of range`,
    				`global.proxy.excludeIPRanges netip.ParsePrefix("4.4.0.0/34"): prefix length out of range`,
    				`global.proxy.includeIPRanges netip.ParsePrefix("1.1.0.256/16"): ParseAddr("1.1.0.256"): IPv4 field has value >255`,
    				`global.proxy.includeIPRanges netip.ParsePrefix("2.2.0.257/16"): ParseAddr("2.2.0.257"): IPv4 field has value >255`,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 31 13:43:12 UTC 2024
    - 6K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/pkg/cel/library/cidr_test.go

    	} else {
    		t.Fatal("expected result must not be nil")
    	}
    }
    
    func TestCIDR(t *testing.T) {
    	ipv4CIDR, _ := netip.ParsePrefix("192.168.0.0/24")
    	ipv4Addr, _ := netip.ParseAddr("192.168.0.0")
    
    	ipv6CIDR, _ := netip.ParsePrefix("2001:db8::/32")
    	ipv6Addr, _ := netip.ParseAddr("2001:db8::")
    
    	trueVal := types.Bool(true)
    	falseVal := types.Bool(false)
    
    	cases := []struct {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Dec 15 12:03:09 UTC 2023
    - 8.3K bytes
    - Viewed (0)
  5. cni/pkg/ipset/nldeps_mock.go

    	return args.Error(0)
    }
    
    func (m *MockedIpsetDeps) clearEntriesWithIP(name string, ip netip.Addr) error {
    	args := m.Called(name, ip)
    	return args.Error(0)
    }
    
    func (m *MockedIpsetDeps) listEntriesByIP(name string) ([]netip.Addr, error) {
    	args := m.Called(name)
    	return args.Get(0).([]netip.Addr), args.Error(1)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 30 22:24:38 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  6. cni/pkg/ipset/nldeps_linux.go

    	return errors.Join(delErrs...)
    }
    
    func (m *realDeps) listEntriesByIP(name string) ([]netip.Addr, error) {
    	var ipList []netip.Addr
    
    	res, err := netlink.IpsetList(name)
    	if err != nil {
    		return ipList, fmt.Errorf("failed to list ipset %s: %w", name, err)
    	}
    
    	for _, entry := range res.Entries {
    		addr, _ := netip.AddrFromSlice(entry.IP)
    		ipList = append(ipList, addr)
    	}
    
    	return ipList, nil
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 30 18:07:05 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  7. cni/pkg/iptables/iptables_test.go

    		config func(cfg *Config)
    	}{
    		{
    			"default",
    			func(cfg *Config) {
    				cfg.RedirectDNS = true
    			},
    		},
    	}
    	probeSNATipv4 := netip.MustParseAddr("169.254.7.127")
    	probeSNATipv6 := netip.MustParseAddr("e9ac:1e77:90ca:399f:4d6d:ece2:2f9b:3164")
    
    	for _, tt := range cases {
    		for _, ipv6 := range []bool{false, true} {
    			t.Run(tt.name+"_"+ipstr(ipv6), func(t *testing.T) {
    				cfg := constructTestConfig()
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 20:16:04 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  8. pkg/registry/core/service/ipallocator/cidrallocator.go

    	return true
    }
    
    // ipToAddr converts a net.IP to a netip.Addr
    // if the net.IP is not valid it returns an empty netip.Addr{}
    func ipToAddr(ip net.IP) netip.Addr {
    	// https://pkg.go.dev/net/netip#AddrFromSlice can return an IPv4 in IPv6 format
    	// so we have to check the IP family to return exactly the format that we want
    	// address, _ := netip.AddrFromSlice(net.ParseIPSloppy(192.168.0.1)) returns
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 13.2K bytes
    - Viewed (0)
  9. pilot/pkg/serviceregistry/kube/controller/ambient/helpers.go

    func parseCidrOrIP(ip string) (netip.Addr, error) {
    	if strings.Contains(ip, "/") {
    		prefix, err := netip.ParsePrefix(ip)
    		if err != nil {
    			return netip.Addr{}, err
    		}
    		if !prefix.IsSingleIP() {
    			return netip.Addr{}, fmt.Errorf("only single IP CIDR is allowed")
    		}
    		return prefix.Addr(), nil
    	}
    	return netip.ParseAddr(ip)
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Mar 22 20:35:23 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  10. pkg/scheduler/framework/plugins/noderesources/resource_allocation_test.go

    import (
    	"testing"
    
    	v1 "k8s.io/api/core/v1"
    	"k8s.io/apimachinery/pkg/api/resource"
    
    	"k8s.io/kubernetes/pkg/scheduler/util"
    )
    
    func TestResourceAllocationScorerCalculateRequests(t *testing.T) {
    	const oneMi = 1048576
    	tests := []struct {
    		name     string
    		pod      v1.Pod
    		expected map[v1.ResourceName]int64
    	}{
    		{
    			name: "overhead only",
    			pod: v1.Pod{
    				Spec: v1.PodSpec{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 09 23:15:53 UTC 2023
    - 5.9K bytes
    - Viewed (0)
Back to top