Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for AppendServiceHandler (0.4 sec)

  1. pilot/pkg/model/controller.go

    	// Note: AppendXXXHandler is used to register high level handlers.
    	// For per cluster handlers, they should be registered by the `AppendXXXHandlerForCluster` interface.
    
    	// AppendServiceHandler notifies about changes to the service catalog.
    	AppendServiceHandler(f ServiceHandler)
    
    	// AppendWorkloadHandler notifies about changes to workloads. This differs from InstanceHandler,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 25 06:54:32 UTC 2023
    - 4.7K bytes
    - Viewed (0)
  2. pilot/pkg/serviceregistry/aggregate/controller.go

    	}
    
    	// Observe the registry for events.
    	registry.AppendNetworkGatewayHandler(c.NotifyGatewayHandlers)
    	registry.AppendServiceHandler(c.handlers.NotifyServiceHandlers)
    	registry.AppendServiceHandler(func(prev, curr *model.Service, event model.Event) {
    		for _, handlers := range c.getClusterHandlers() {
    			handlers.NotifyServiceHandlers(prev, curr, event)
    		}
    	})
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 15 06:28:11 UTC 2024
    - 13.5K bytes
    - Viewed (0)
  3. pilot/pkg/serviceregistry/memory/discovery.go

    func (sd *ServiceDiscovery) AppendWorkloadHandler(func(*model.WorkloadInstance, model.Event)) {}
    
    // AppendServiceHandler appends a service handler to the controller
    func (sd *ServiceDiscovery) AppendServiceHandler(f model.ServiceHandler) {
    	sd.handlers.AppendServiceHandler(f)
    }
    
    // Run will run the controller
    func (sd *ServiceDiscovery) Run(<-chan struct{}) {}
    
    // HasSynced always returns true
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Mar 28 23:10:01 UTC 2024
    - 12.4K bytes
    - Viewed (0)
  4. pilot/pkg/serviceregistry/kube/controller/fake.go

    		SystemNamespace:       opts.SystemNamespace,
    	}
    	c := NewController(opts.Client, options)
    	meshServiceController.AddRegistry(c)
    
    	if opts.ServiceHandler != nil {
    		c.AppendServiceHandler(opts.ServiceHandler)
    	}
    
    	t.Cleanup(func() {
    		c.client.Shutdown()
    	})
    	if !opts.SkipRun {
    		t.Cleanup(func() {
    			assert.NoError(t, queue.WaitForClose(c.queue, time.Second*5))
    		})
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 21:07:03 UTC 2024
    - 4K bytes
    - Viewed (0)
  5. pilot/pkg/serviceregistry/kube/controller/controller.go

    		}
    		return labelutil.AugmentLabels(pod.Labels, c.clusterID, locality, nodeName, c.network)
    	}
    	return nil
    }
    
    // AppendServiceHandler implements a service catalog operation
    func (c *Controller) AppendServiceHandler(f model.ServiceHandler) {
    	c.handlers.AppendServiceHandler(f)
    }
    
    // AppendWorkloadHandler implements a service catalog operation
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 21:07:03 UTC 2024
    - 41.2K bytes
    - Viewed (0)
  6. pilot/pkg/serviceregistry/serviceentry/controller.go

    	return provider.External
    }
    
    func (s *Controller) Cluster() cluster.ID {
    	return s.clusterID
    }
    
    // AppendServiceHandler adds service resource event handler. Service Entries does not use these handlers.
    func (s *Controller) AppendServiceHandler(_ model.ServiceHandler) {}
    
    // AppendWorkloadHandler adds instance event handler. Service Entries does not use these handlers.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 29 15:31:09 UTC 2024
    - 36.8K bytes
    - Viewed (0)
  7. pilot/test/xds/fake.go

    			})
    			gwc = g
    			return gwc
    		},
    		SkipRun:   true,
    		ClusterID: opts.DefaultClusterName,
    		Services:  opts.Services,
    		Gateways:  opts.Gateways,
    	})
    	cg.Registry.AppendServiceHandler(serviceHandler)
    	s.Env = cg.Env()
    	s.Env.GatewayAPIController = gwc
    	if err := s.Env.InitNetworksManager(s); err != nil {
    		t.Fatal(err)
    	}
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jun 10 16:08:52 UTC 2024
    - 18.4K bytes
    - Viewed (0)
  8. pilot/pkg/bootstrap/server.go

    			Reason:         model.NewReasonStats(model.ServiceUpdate),
    		}
    		s.XDSServer.ConfigUpdate(pushReq)
    	}
    	s.ServiceController().AppendServiceHandler(serviceHandler)
    
    	if s.configController != nil {
    		configHandler := func(prev config.Config, curr config.Config, event model.Event) {
    			if s.statusReporter != nil {
    				defer func() {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 17:48:28 UTC 2024
    - 46.3K bytes
    - Viewed (0)
Back to top