Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 174 for typeurl (0.1 sec)

  1. pilot/pkg/model/context.go

    	ret := sets.NewWithLength[string](len(node.WatchedResources))
    	for typeURL := range node.WatchedResources {
    		ret.Insert(typeURL)
    	}
    	return ret
    }
    
    func (node *Proxy) GetWatchedResource(typeURL string) *WatchedResource {
    	node.RLock()
    	defer node.RUnlock()
    
    	return node.WatchedResources[typeURL]
    }
    
    func (node *Proxy) NonceSent(typeURL string) string {
    	node.RLock()
    	defer node.RUnlock()
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jun 03 08:29:05 UTC 2024
    - 33.6K bytes
    - Viewed (0)
  2. istioctl/pkg/util/configdump/util.go

    	ecds      configTypeURL = "type.googleapis.com/envoy.admin.v3.EcdsConfigDump"
    )
    
    // getSection takes a TypeURL and returns the types.Any from the config dump corresponding to that URL
    func (w *Wrapper) getSection(sectionTypeURL configTypeURL) (*anypb.Any, error) {
    	var dumpAny *anypb.Any
    	for _, conf := range w.Configs {
    		if conf.TypeUrl == string(sectionTypeURL) {
    			dumpAny = conf
    		}
    	}
    	if dumpAny == nil {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sun Dec 24 08:16:26 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  3. pkg/istio-agent/xds_proxy_test.go

    	}
    	err := downstream.Send(&discovery.DiscoveryRequest{TypeUrl: v3.ClusterType, Node: node})
    	if err != nil {
    		t.Fatal(err)
    	}
    	res, err := downstream.Recv()
    	if err != nil {
    		t.Fatal(err)
    	}
    	if res == nil || res.TypeUrl != v3.ClusterType {
    		t.Fatalf("Expected to get cluster response but got %v", res)
    	}
    	err = downstream.Send(&discovery.DiscoveryRequest{TypeUrl: v3.ListenerType, Node: node})
    	if err != nil {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sat Mar 30 04:48:02 UTC 2024
    - 18.6K bytes
    - Viewed (0)
  4. pkg/istio-agent/xds_proxy_delta_test.go

    	}
    	err := downstream.Send(&discovery.DeltaDiscoveryRequest{TypeUrl: v3.ClusterType, Node: node})
    	if err != nil {
    		t.Fatal(err)
    	}
    	res, err := downstream.Recv()
    	if err != nil {
    		t.Fatal(err)
    	}
    
    	if res == nil || res.TypeUrl != v3.ClusterType {
    		t.Fatalf("Expected to get cluster response but got %v", res)
    	}
    	err = downstream.Send(&discovery.DeltaDiscoveryRequest{TypeUrl: v3.ListenerType, Node: node})
    	if err != nil {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sat Mar 30 04:48:02 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  5. pkg/adsc/adsc_test.go

    		expected := map[string]*discovery.DiscoveryResponse{}
    		for _, request := range desc.initialRequests {
    			if desc.excludedResource != "" && request.TypeUrl == desc.excludedResource {
    				continue
    			}
    			expected[request.TypeUrl] = &discovery.DiscoveryResponse{
    				TypeUrl: request.TypeUrl,
    			}
    		}
    
    		tc := testCase{
    			desc: desc.desc,
    			inAdsc: &ADSC{
    				Received:   make(map[string]*discovery.DiscoveryResponse),
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Dec 19 22:42:42 UTC 2023
    - 15.4K bytes
    - Viewed (0)
  6. pilot/pkg/xds/adstest.go

    	}
    }
    
    func (a *AdsTest) fillInRequestDefaults(req *discovery.DiscoveryRequest) *discovery.DiscoveryRequest {
    	if req == nil {
    		req = &discovery.DiscoveryRequest{}
    	}
    	if req.TypeUrl == "" {
    		req.TypeUrl = a.Type
    	}
    	if req.Node == nil {
    		req.Node = &core.Node{
    			Id:       a.ID,
    			Metadata: a.metadata.ToStruct(),
    		}
    	}
    	return req
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sun Feb 04 03:39:42 UTC 2024
    - 6K bytes
    - Viewed (0)
  7. pkg/test/util/structpath/instance_test.go

    	"istio.io/istio/pkg/test/util/structpath"
    )
    
    func TestContainSubstring(t *testing.T) {
    	testResponse := &discovery.DiscoveryResponse{
    		VersionInfo: "2019-07-16T10:54:41-07:00/1",
    		TypeUrl:     "some.Random.Type.URL",
    	}
    	validator := structpath.ForProto(testResponse)
    
    	tests := []struct {
    		name    string
    		substrs []string
    		err     bool
    	}{
    		{
    			name:    "Substring exist",
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 11 16:19:15 UTC 2021
    - 1.7K bytes
    - Viewed (0)
  8. pkg/wasm/convert_test.go

    	if err != nil {
    		t.Fatal(err)
    	}
    	return st
    }
    
    func messageToAnyWithTypeURL(t *testing.T, msg proto.Message, typeURL string) *anypb.Any {
    	b, err := proto.MarshalOptions{Deterministic: true}.Marshal(msg)
    	if err != nil {
    		t.Fatal(err)
    	}
    	return &anypb.Any{
    		// nolint: staticcheck
    		TypeUrl: typeURL,
    		Value:   b,
    	}
    }
    
    func TestWasmConvertWithWrongMessages(t *testing.T) {
    	cases := []struct {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 17 20:06:41 UTC 2024
    - 13.6K bytes
    - Viewed (0)
  9. istioctl/pkg/writer/compare/comparator.go

    type nonstrictResolver struct{}
    
    var envoyResolver nonstrictResolver
    
    func (m *nonstrictResolver) Resolve(typeURL string) (legacyproto.Message, error) {
    	// See https://github.com/golang/protobuf/issues/747#issuecomment-437463120
    	mname := typeURL
    	if slash := strings.LastIndex(typeURL, "/"); slash >= 0 {
    		mname = mname[slash+1:]
    	}
    	mt, err := protoregistry.GlobalTypes.FindMessageByName(protoreflect.FullName(mname))
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sun Apr 21 17:42:54 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  10. pilot/pkg/xds/xds_cache_test.go

    		retry.UntilOrFail(t, func() bool {
    			val := c.Get(k)
    			return val != nil && val.Resource.TypeUrl == fmt.Sprint(n.Load())
    		})
    		for i := 0; i < 5; i++ {
    			val := c.Get(k)
    			if val == nil {
    				t.Fatalf("no cache found")
    			}
    			if val != nil && val.Resource.TypeUrl != fmt.Sprint(n.Load()) {
    				t.Fatalf("got bad write: %v", val.Resource.TypeUrl)
    			}
    			time.Sleep(time.Millisecond * time.Duration(rand.Intn(20)))
    		}
    	}
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Aug 31 20:43:08 UTC 2023
    - 7.8K bytes
    - Viewed (0)
Back to top