Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for PrintEndpoints (0.12 sec)

  1. istioctl/pkg/writer/envoy/clusters/clusters.go

    	}
    
    	return w.Flush()
    }
    
    // PrintEndpoints prints the endpoints config to the ConfigWriter stdout
    func (c *ConfigWriter) PrintEndpoints(filter EndpointFilter, outputFormat string) error {
    	if c.clusters == nil {
    		return fmt.Errorf("config writer has not been primed")
    	}
    
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Thu Nov 03 08:41:32 UTC 2022
    - 5.8K bytes
    - Viewed (0)
  2. istioctl/pkg/writer/envoy/configdump/endpoint_test.go

    		t.Run(tt.name, func(t *testing.T) {
    			gotOut := &bytes.Buffer{}
    			cw := &ConfigWriter{Stdout: gotOut}
    			cd, _ := os.ReadFile("testdata/endpoint/configdump.json")
    			cw.Prime(cd)
    			err := cw.PrintEndpoints(tt.filter, tt.outputFormat)
    			assert.NoError(t, err)
    
    			wantOutputFile := path.Join("testdata/endpoint", fmt.Sprintf("%s_output.%s", tt.name, tt.outputFormat))
    			util.CompareContent(t, gotOut.Bytes(), wantOutputFile)
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Tue Jul 12 02:25:59 UTC 2022
    - 2.4K bytes
    - Viewed (0)
  3. istioctl/pkg/writer/envoy/configdump/endpoint.go

    				continue
    			}
    		}
    		result = append(result, "unknown")
    	}
    
    	return result
    }
    
    func (c *ConfigWriter) PrintEndpoints(filter EndpointFilter, outputFormat string) error {
    	if c.configDump == nil {
    		return fmt.Errorf("config writer has not been primed")
    	}
    	dump, err := c.retrieveSortedEndpointsSlice(filter)
    	if err != nil {
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Mon Jul 22 09:57:29 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  4. istioctl/pkg/proxyconfig/proxyconfig.go

    				Status:  status,
    			}
    
    			switch outputFormat {
    			case summaryOutput:
    				return configWriter.PrintEndpointsSummary(filter)
    			case jsonOutput, yamlOutput:
    				return configWriter.PrintEndpoints(filter, outputFormat)
    			default:
    				return fmt.Errorf("output format %q not supported", outputFormat)
    			}
    		},
    		ValidArgsFunction: completion.ValidPodsNameArgs(ctx),
    	}
    
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Thu Oct 24 15:53:49 UTC 2024
    - 50.6K bytes
    - Viewed (0)
Back to top