Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 947 for asSlice (0.15 sec)

  1. test/named.go

    	asMap(Map{})
    	isMap(Map{})
    
    	asSlice(slice)
    	isSlice(slice)
    	asSlice(make(Slice, 5))
    	isSlice(make(Slice, 5))
    	asSlice([]byte{1, 2, 3})
    	asSlice([]byte{1, 2, 3}[0:2])
    	asSlice(slice[0:4])
    	isSlice(slice[0:4])
    	asSlice(slice[3:8])
    	isSlice(slice[3:8])
    	asSlice(nil)
    	asSlice(Slice(nil))
    	isSlice(Slice(nil))
    	slice = nil
    	asSlice(Slice{1, 2, 3})
    	isSlice(Slice{1, 2, 3})
    	asSlice(Slice{})
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 4.6K bytes
    - Viewed (0)
  2. pilot/pkg/serviceregistry/kube/controller/ambient/workloads_test.go

    			},
    			result: &workloadapi.Workload{
    				Uid:               "cluster0//Pod/ns/name",
    				Name:              "name",
    				Namespace:         "ns",
    				Addresses:         [][]byte{netip.AddrFrom4([4]byte{1, 2, 3, 4}).AsSlice()},
    				Network:           testNW,
    				CanonicalName:     "name",
    				CanonicalRevision: "latest",
    				WorkloadType:      workloadapi.WorkloadType_POD,
    				WorkloadName:      "name",
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 16:51:29 UTC 2024
    - 20.3K bytes
    - Viewed (0)
  3. src/net/netip/inlining_test.go

    		"uint128.not",
    		"uint128.or",
    		"uint128.subOne",
    		"uint128.xor",
    	}
    	switch runtime.GOARCH {
    	case "amd64", "arm64":
    		// These don't inline on 32-bit.
    		wantInlinable = append(wantInlinable,
    			"Addr.AsSlice",
    			"Addr.Next",
    			"Addr.Prev",
    		)
    	}
    
    	for _, want := range wantInlinable {
    		if !got[want] {
    			t.Errorf("%q is no longer inlinable", want)
    			continue
    		}
    		delete(got, want)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 17:10:01 UTC 2024
    - 2K bytes
    - Viewed (0)
  4. pilot/pkg/serviceregistry/kube/controller/ambient/services_test.go

    				{
    					Name:      "name",
    					Namespace: "ns",
    					Hostname:  "a.example.com",
    					Addresses: []*workloadapi.NetworkAddress{{
    						Network: testNW,
    						Address: netip.AddrFrom4([4]byte{1, 2, 3, 4}).AsSlice(),
    					}},
    					Ports: []*workloadapi.Port{{
    						ServicePort: 80,
    						TargetPort:  80,
    					}},
    					SubjectAltNames: []string{"san1"},
    				},
    				{
    					Name:      "name",
    					Namespace: "ns",
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jun 05 12:29:55 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  5. cni/pkg/ipset/nldeps_linux.go

    		Comment:  comment,
    		IP:       net.IP(ip.AsSlice()),
    		Protocol: &ipProto,
    		Replace:  replace,
    	})
    	if err != nil {
    		return fmt.Errorf("failed to add IP %s to ipset %s: %w", ip, name, err)
    	}
    	return nil
    }
    
    func (m *realDeps) deleteIP(name string, ip netip.Addr, ipProto uint8) error {
    	err := netlink.IpsetDel(name, &netlink.IPSetEntry{
    		IP:       net.IP(ip.AsSlice()),
    		Protocol: &ipProto,
    	})
    	if err != 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)
  6. pilot/pkg/serviceregistry/kube/controller/ambient/helpers.go

    		Network: a.Network(vip, make(labels.Instance, 0)).String(),
    		Address: ip.AsSlice(),
    	}, nil
    }
    
    func (a *index) toNetworkAddressFromIP(ip netip.Addr) *workloadapi.NetworkAddress {
    	return &workloadapi.NetworkAddress{
    		Network: a.Network(ip.String(), make(labels.Instance, 0)).String(),
    		Address: ip.AsSlice(),
    	}
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Mar 22 20:35:23 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  7. pkg/util/iptree/iptree.go

    		return 1
    	}
    	return 0
    }
    
    // find the common subnet, aka the one with the common prefix
    func findAncestor(a, b netip.Prefix) netip.Prefix {
    	bytesA := a.Addr().AsSlice()
    	bytesB := b.Addr().AsSlice()
    	bytes := make([]byte, len(bytesA))
    
    	max := a.Bits()
    	if l := b.Bits(); l < max {
    		max = l
    	}
    
    	mask := 0
    	for i := range bytesA {
    		xor := bytesA[i] ^ bytesB[i]
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 31 21:05:04 UTC 2023
    - 17.7K bytes
    - Viewed (0)
  8. pilot/pkg/serviceregistry/kube/controller/ambient/workloads.go

    			TrustDomain:           pickTrustDomain(meshCfg),
    			Locality:              getWorkloadEntryLocality(&wle.Spec),
    		}
    
    		if addr, err := netip.ParseAddr(wle.Spec.Address); err == nil {
    			w.Addresses = [][]byte{addr.AsSlice()}
    		} else {
    			log.Warnf("skipping workload entry %s/%s; DNS Address resolution is not yet implemented", wle.Namespace, wle.Name)
    		}
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 16:51:29 UTC 2024
    - 20.9K bytes
    - Viewed (0)
  9. pilot/pkg/serviceregistry/kube/controller/ambient/ambientindex_test.go

    	assert.Equal(t,
    		s.lookup(s.addrXdsName("127.0.0.3"))[0].Address.GetWorkload().Waypoint.GetAddress().Address,
    		netip.MustParseAddr("10.0.0.2").AsSlice())
    
    	assert.Equal(t,
    		s.lookup(s.addrXdsName("127.0.0.4"))[0].Address.GetWorkload().Waypoint.GetAddress().Address,
    		netip.MustParseAddr("10.0.0.3").AsSlice())
    
    	// Lookup for service VIP should return Workload and Service AddressInfo objects
    	assert.Equal(t,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 08 01:04:50 UTC 2024
    - 70.2K bytes
    - Viewed (0)
  10. pkg/registry/core/service/ipallocator/ipallocator.go

    		// swallow the error and try with the next IP address
    		if err != nil {
    			klog.Infof("can not create IPAddress %s: %v", name, err)
    			continue
    		}
    		return ip.AsSlice(), nil
    	}
    	return net.IP{}, ErrFull
    }
    
    // Release releases the IP back to the pool. Releasing an
    // unallocated IP or an IP out of the range is a no-op and
    // returns no error.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 31 21:05:04 UTC 2023
    - 17K bytes
    - Viewed (0)
Back to top