Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 105 for ifaceeq (0.1 sec)

  1. staging/src/k8s.io/apimachinery/pkg/runtime/serializer/cbor/internal/modes/roundtrip_test.go

    					var iface2 interface{}
    					if err := modePair.dec.Unmarshal(cborFromIface, &iface2); err != nil {
    						t.Fatalf("unexpected error from Unmarshal into %T: %v", &iface2, err)
    					}
    					if diff := cmp.Diff(iface, iface2); diff != "" {
    						t.Errorf("unexpected difference on roundtrip from interface{} to interface{}:\n%s", diff)
    					}
    				}
    
    				{
    					// original to original
    					final := reflect.New(reflect.TypeOf(original))
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 21:48:12 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  2. test/codegen/ifaces.go

    Keith Randall <******@****.***> 1695069109 -0700
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 06 17:02:53 UTC 2023
    - 621 bytes
    - Viewed (0)
  3. pilot/pkg/util/network/ip.go

    func GetPrivateIPsIfAvailable() ([]string, bool) {
    	ok := true
    	ipAddresses := make([]string, 0)
    
    	ifaces, _ := net.Interfaces()
    
    	for _, iface := range ifaces {
    		if iface.Flags&net.FlagUp == 0 {
    			continue // interface down
    		}
    		if iface.Flags&net.FlagLoopback != 0 {
    			continue // loopback interface
    		}
    		addrs, _ := iface.Addrs()
    
    		for _, addr := range addrs {
    			var ip net.IP
    			switch v := addr.(type) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Dec 21 21:27:21 UTC 2023
    - 6.3K bytes
    - Viewed (0)
  4. pkg/proxy/ipvs/netlink_linux.go

    func (h *netlinkHandle) GetAllLocalAddressesExcept(dev string) (sets.Set[string], error) {
    	ifaces, err := net.Interfaces()
    	if err != nil {
    		return nil, err
    	}
    	var addr []net.Addr
    	for _, iface := range ifaces {
    		if iface.Name == dev {
    			continue
    		}
    		ifadr, err := iface.Addrs()
    		if err != nil {
    			// This may happen if the interface was deleted. Ignore
    			// but log the error.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 30 16:18:49 UTC 2023
    - 5.8K bytes
    - Viewed (0)
  5. pkg/kubelet/network/dns/dns_windows.go

    	if err != nil {
    		return nil, err
    	}
    	defer regKey.Close()
    
    	ifaces, err := regKey.ReadSubKeyNames(0)
    	if err != nil {
    		return nil, err
    	}
    	for _, iface := range ifaces {
    		suffixes, err := getRegistryStringValue(fmt.Sprintf("%s\\%s", netIfacesRegistry, iface), "SearchList")
    		if err != nil {
    			return nil, err
    		}
    		if suffixes == "" {
    			continue
    		}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 21 22:21:57 UTC 2023
    - 6.3K bytes
    - Viewed (0)
  6. src/cmd/cgo/internal/testplugin/plugin_test.go

    	globalSkip(t)
    	run(t, "./host.exe")
    }
    
    func TestUniqueTypesAndItabs(t *testing.T) {
    	globalSkip(t)
    	goCmd(t, "build", "-buildmode=plugin", "./iface_a")
    	goCmd(t, "build", "-buildmode=plugin", "./iface_b")
    	goCmd(t, "build", "-o", "iface.exe", "./iface")
    	run(t, "./iface.exe")
    }
    
    func TestIssue18676(t *testing.T) {
    	// make sure we don't add the same itab twice.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 15:32:53 UTC 2024
    - 12.3K bytes
    - Viewed (0)
  7. src/internal/abi/iface.go

    Michael Anthony Knyszek <******@****.***> 1711143722 +0000
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 17 21:09:59 UTC 2024
    - 895 bytes
    - Viewed (0)
  8. src/cmd/cgo/internal/testplugin/testdata/iface_a/a.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package main
    
    import "testplugin/iface_i"
    
    //go:noinline
    func F() interface{} {
    	return (*iface_i.T)(nil)
    }
    
    //go:noinline
    func G() iface_i.I {
    	return (*iface_i.T)(nil)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 332 bytes
    - Viewed (0)
  9. src/cmd/cgo/internal/testplugin/testdata/iface_b/b.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package main
    
    import "testplugin/iface_i"
    
    //go:noinline
    func F() interface{} {
    	return (*iface_i.T)(nil)
    }
    
    //go:noinline
    func G() iface_i.I {
    	return (*iface_i.T)(nil)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 332 bytes
    - Viewed (0)
  10. src/runtime/hash_test.go

    }
    func (k *EfaceKey) name() string {
    	return "Eface"
    }
    
    type IfaceKey struct {
    	i interface {
    		F()
    	}
    }
    type fInter uint64
    
    func (x fInter) F() {
    }
    
    func (k *IfaceKey) clear() {
    	k.i = nil
    }
    func (k *IfaceKey) random(r *rand.Rand) {
    	k.i = fInter(r.Int63())
    }
    func (k *IfaceKey) bits() int {
    	// use 64 bits. This tests inlined interfaces
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 06 17:50:18 UTC 2024
    - 18.4K bytes
    - Viewed (0)
Back to top