Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for nameTable (0.13 sec)

  1. pkg/dns/proto/nds.pb.go

    	(*NameTable)(nil),          // 0: istio.networking.nds.v1.NameTable
    	(*NameTable_NameInfo)(nil), // 1: istio.networking.nds.v1.NameTable.NameInfo
    	nil,                        // 2: istio.networking.nds.v1.NameTable.TableEntry
    }
    var file_dns_proto_nds_proto_depIdxs = []int32{
    	2, // 0: istio.networking.nds.v1.NameTable.table:type_name -> istio.networking.nds.v1.NameTable.TableEntry
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 31 02:27:10 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  2. pkg/dns/server/name_table_test.go

    		push                       *model.PushContext
    		enableMultiClusterHeadless bool
    		expectedNameTable          *dnsProto.NameTable
    	}{
    		{
    			name:  "headless service pods",
    			proxy: proxy,
    			push:  push,
    			expectedNameTable: &dnsProto.NameTable{
    				Table: map[string]*dnsProto.NameTable_NameInfo{
    					"pod1.headless-svc.testns.svc.cluster.local": {
    						Ips:       []string{"1.2.3.4"},
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jan 25 04:26:03 UTC 2024
    - 16K bytes
    - Viewed (0)
  3. pkg/dns/client/dns.go

    func (h *LocalDNSServer) IsReady() bool {
    	return h.lookupTable.Load() != nil
    }
    
    func (h *LocalDNSServer) NameTable() *dnsProto.NameTable {
    	lt := h.nameTable.Load()
    	if lt == nil {
    		return nil
    	}
    	return lt.(*dnsProto.NameTable)
    }
    
    // Inspired by https://github.com/coredns/coredns/blob/master/plugin/loadbalance/loadbalance.go
    func roundRobinResponse(res *dns.Msg) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Feb 29 16:17:34 UTC 2024
    - 23.9K bytes
    - Viewed (0)
  4. pilot/cmd/pilot-agent/status/server.go

    		http.Error(w, "Only requests from localhost are allowed", http.StatusForbidden)
    		return
    	}
    	nametable := s.fetchDNS()
    	if nametable == nil {
    		// See https://golang.org/doc/faq#nil_error for why writeJSONProto cannot handle this
    		w.WriteHeader(http.StatusNotFound)
    		_, _ = w.Write([]byte(`{}`))
    		return
    	}
    	writeJSONProto(w, nametable)
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 15:07:03 UTC 2024
    - 31.1K bytes
    - Viewed (1)
  5. pkg/dns/client/dns_test.go

    			expected:   sets.New("*.wildcard", "*.wildcard."),
    		},
    		{
    			startsWith: "example.localhost.",
    			expected:   sets.New("example.localhost."),
    		},
    	}
    
    	nt := d.NameTable()
    	nt = proto.Clone(nt).(*dnsProto.NameTable)
    	d.BuildAlternateHosts(nt, func(althosts map[string]struct{}, ipv4 []netip.Addr, ipv6 []netip.Addr, _ []string) {
    		for host := range althosts {
    			if _, exists := nt.Table[host]; !exists {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Feb 29 16:17:34 UTC 2024
    - 20.4K bytes
    - Viewed (0)
  6. pkg/istio-agent/agent.go

    		}
    	}
    	return nil
    }
    
    // GetDNSTable builds DNS table used in debugging interface.
    func (a *Agent) GetDNSTable() *dnsProto.NameTable {
    	if a.localDNSServer != nil && a.localDNSServer.NameTable() != nil {
    		nt := a.localDNSServer.NameTable()
    		nt = proto.Clone(nt).(*dnsProto.NameTable)
    		a.localDNSServer.BuildAlternateHosts(nt, func(althosts map[string]struct{}, ipv4 []netip.Addr, ipv6 []netip.Addr, _ []string) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jun 05 10:02:56 UTC 2024
    - 26.7K bytes
    - Viewed (0)
  7. architecture/networking/pilot.md

    `Generators` get as input the `Proxy` (a representation of the current client), the current `PushContext` snapshot, and a list of config updates that caused the change.
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Feb 07 17:53:24 UTC 2024
    - 19.1K bytes
    - Viewed (0)
  8. pkg/istio-agent/xds_proxy.go

    		ia:                    ia,
    		downstreamGrpcOptions: ia.cfg.DownstreamGrpcOptions,
    	}
    
    	if ia.localDNSServer != nil {
    		proxy.handlers[model.NameTableType] = func(resp *anypb.Any) error {
    			var nt dnsProto.NameTable
    			if err := resp.UnmarshalTo(&nt); err != nil {
    				log.Errorf("failed to unmarshal name table: %v", err)
    				return err
    			}
    			ia.localDNSServer.UpdateLookupTable(&nt)
    			return nil
    		}
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 16 22:12:28 UTC 2024
    - 27.9K bytes
    - Viewed (0)
  9. src/sync/map.go

    func (e *entry) tryCompareAndSwap(old, new any) bool {
    	p := e.p.Load()
    	if p == nil || p == expunged || *p != old {
    		return false
    	}
    
    	// Copy the interface after the first load to make this method more amenable
    	// to escape analysis: if the comparison fails from the start, we shouldn't
    	// bother heap-allocating an interface value to store.
    	nc := new
    	for {
    		if e.p.CompareAndSwap(p, &nc) {
    			return true
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 21:14:51 UTC 2024
    - 15.6K bytes
    - Viewed (0)
Back to top