Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for MessageSlice (0.07 sec)

  1. istioctl/pkg/writer/envoy/configdump/endpoint.go

    	if c.configDump == nil {
    		return fmt.Errorf("config writer has not been primed")
    	}
    	dump, err := c.retrieveSortedEndpointsSlice(filter)
    	if err != nil {
    		return err
    	}
    	marshaller := make(proto.MessageSlice, 0, len(dump))
    	for _, eds := range dump {
    		marshaller = append(marshaller, eds)
    	}
    	out, err := json.MarshalIndent(marshaller, "", "    ")
    	if err != nil {
    		return err
    	}
    	if outputFormat == "yaml" {
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Mon Jul 22 09:57:29 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  2. istioctl/pkg/writer/envoy/configdump/route.go

    func (c *ConfigWriter) PrintRouteDump(filter RouteFilter, outputFormat string) error {
    	_, routes, err := c.setupRouteConfigWriter()
    	if err != nil {
    		return err
    	}
    	filteredRoutes := make(proto.MessageSlice, 0, len(routes))
    	for _, route := range routes {
    		if filter.Verify(route) {
    			filteredRoutes = append(filteredRoutes, route)
    		}
    	}
    	out, err := json.MarshalIndent(filteredRoutes, "", "    ")
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Thu Aug 08 20:44:50 UTC 2024
    - 7.2K bytes
    - Viewed (0)
Back to top