Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 16 of 16 for JSONToYAML (0.09 sec)

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

    			filteredRoutes = append(filteredRoutes, route)
    		}
    	}
    	out, err := json.MarshalIndent(filteredRoutes, "", "    ")
    	if err != nil {
    		return err
    	}
    	if outputFormat == "yaml" {
    		if out, err = yaml.JSONToYAML(out); err != nil {
    			return err
    		}
    	}
    	fmt.Fprintln(c.Stdout, string(out))
    	return nil
    }
    
    func (c *ConfigWriter) setupRouteConfigWriter() (*tabwriter.Writer, []*route.RouteConfiguration, error) {
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Thu Aug 08 20:44:50 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  2. istioctl/pkg/writer/envoy/configdump/cluster.go

    		}
    	}
    	out, err := json.MarshalIndent(filteredClusters, "", "    ")
    	if err != nil {
    		return err
    	}
    	if outputFormat == "yaml" {
    		if out, err = yaml.JSONToYAML(out); err != nil {
    			return err
    		}
    	}
    	_, _ = fmt.Fprintln(c.Stdout, string(out))
    	return nil
    }
    
    func (c *ConfigWriter) setupClusterConfigWriter() (*tabwriter.Writer, []*cluster.Cluster, error) {
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Thu May 11 05:38:17 UTC 2023
    - 5.9K bytes
    - Viewed (0)
  3. istioctl/pkg/admin/istiodconfig.go

    		outputBytes = append(outputBytes, []byte("\n")...)
    		if err != nil {
    			return err
    		}
    		if ga.outputFormat == "yaml" {
    			if outputBytes, err = yaml.JSONToYAML(outputBytes); err != nil {
    				return err
    			}
    		}
    		_, err = out.Write(outputBytes)
    		return err
    	default:
    		return fmt.Errorf("output format %q not supported", ga.outputFormat)
    	}
    }
    
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Sat Apr 13 05:23:38 UTC 2024
    - 13.5K bytes
    - Viewed (0)
  4. istioctl/pkg/writer/envoy/configdump/listener.go

    		}
    	}
    	out, err := json.MarshalIndent(filteredListeners, "", "    ")
    	if err != nil {
    		return fmt.Errorf("failed to marshal listeners: %v", err)
    	}
    	if outputFormat == "yaml" {
    		if out, err = yaml.JSONToYAML(out); err != nil {
    			return err
    		}
    	}
    	fmt.Fprintln(c.Stdout, string(out))
    	return nil
    }
    
    func (c *ConfigWriter) setupListenerConfigWriter() (*tabwriter.Writer, []*listener.Listener, error) {
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Wed Nov 29 12:37:14 UTC 2023
    - 18.1K bytes
    - Viewed (0)
  5. istioctl/pkg/proxyconfig/proxyconfig.go

    	}
    
    	fmt.Fprintf(c.OutOrStdout(), "\nThe result of pod %s:\n\n", podName)
    	switch outputFormat {
    	// convert the json output to yaml
    	case yamlOutput:
    		var out []byte
    		if out, err = yaml.JSONToYAML([]byte(stats)); err != nil {
    			return err
    		}
    		_, _ = fmt.Fprint(c.OutOrStdout(), string(out))
    	case jsonOutput:
    		var prettyJSON bytes.Buffer
    		err := json.Indent(&prettyJSON, []byte(stats), "", "    ")
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Thu Oct 24 15:53:49 UTC 2024
    - 50.6K bytes
    - Viewed (0)
  6. istioctl/pkg/tag/tag.go

    	out, err := json.MarshalIndent(res, "", "\t")
    	if err != nil {
    		return fmt.Errorf("error while marshaling to JSON: %v", err)
    	}
    	if outformat == util.YamlFormat {
    		if out, err = yaml.JSONToYAML(out); err != nil {
    			return fmt.Errorf("error while marshaling to YAML: %v", err)
    		}
    	}
    	fmt.Fprintln(w, string(out))
    	return nil
    }
    
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Mon Jul 22 15:40:30 UTC 2024
    - 16.5K bytes
    - Viewed (0)
Back to top