- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 28 for MarshalIndent (0.12 sec)
-
docs/debugging/healing-bin/main.go
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Mon Sep 19 18:05:16 UTC 2022 - 3.2K bytes - Viewed (0) -
istioctl/pkg/writer/envoy/configdump/ecds_test.go
assert.NoError(t, err) // protojson opt out of whitespace randomization, see more details: https://github.com/golang/protobuf/issues/1082 var rm json.RawMessage = gotOut.Bytes() jsonOutput, err := json.MarshalIndent(rm, "", " ") if err != nil { assert.NoError(t, err) } jsonOutput = append(jsonOutput, '\n') util.CompareContent(t, jsonOutput, "testdata/ecds/output.json")
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Tue Dec 13 01:08:07 UTC 2022 - 1.9K bytes - Viewed (0) -
istioctl/pkg/writer/compare/sds/writer.go
return tw.Flush() } // printSecretItemsJSON prints secret in JSON format, and dumps the raw certificate data with the output func (w *sdsWriter) printSecretItemsJSON(secrets []SecretItem) error { out, err := json.MarshalIndent(secrets, "", " ") if err != nil { return err } _, err = w.w.Write(out) if err != nil { return err } return nil }
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Mon Oct 28 19:52:53 UTC 2024 - 4.8K bytes - Viewed (0) -
istioctl/pkg/writer/ztunnel/configdump/policies.go
slices.SortFunc(policies, func(a, b *ZtunnelPolicy) int { if r := cmp.Compare(a.Namespace, b.Namespace); r != 0 { return r } return cmp.Compare(a.Name, b.Name) }) out, err := json.MarshalIndent(policies, "", " ") if err != nil { return fmt.Errorf("failed to marshal policies: %v", err) } if outputFormat == "yaml" { if out, err = yaml.JSONToYAML(out); err != nil { return err } }
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Fri May 31 21:45:11 UTC 2024 - 2.4K bytes - Viewed (0) -
istioctl/pkg/writer/ztunnel/configdump/connections.go
}) workloads = slices.FilterInPlace(workloads, func(state WorkloadState) bool { if filter.Namespace != "" && filter.Namespace != state.Info.Namespace { return false } return true }) out, err := json.MarshalIndent(workloads, "", " ") if err != nil { return fmt.Errorf("failed to marshal workloads: %v", err) } if outputFormat == "yaml" { if out, err = yaml.JSONToYAML(out); err != nil { return err } }
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Fri May 31 21:45:11 UTC 2024 - 3.5K bytes - Viewed (0) -
istioctl/pkg/util/formatting/formatter.go
for _, m := range ms { logOutput = append(logOutput, render(m, colorize)) } return strings.Join(logOutput, "\n") } func printJSON(ms diag.Messages) (string, error) { jsonOutput, err := json.MarshalIndent(ms, "", "\t") return string(jsonOutput), err } func printYAML(ms diag.Messages) (string, error) { yamlOutput, err := yaml.Marshal(ms) return string(yamlOutput), err } // Formatting options for Message
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Tue Jul 11 02:41:45 UTC 2023 - 3.1K bytes - Viewed (0) -
istioctl/pkg/writer/ztunnel/configdump/services.go
if r := cmp.Compare(a.Namespace, b.Namespace); r != 0 { return r } if r := cmp.Compare(a.Name, b.Name); r != 0 { return r } return cmp.Compare(a.Hostname, b.Hostname) }) out, err := json.MarshalIndent(svcs, "", " ") if err != nil { return fmt.Errorf("failed to marshal workloads: %v", err) } if outputFormat == "yaml" { if out, err = yaml.JSONToYAML(out); err != nil { return err } }
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Wed Jul 24 09:07:30 UTC 2024 - 3.2K bytes - Viewed (0) -
istioctl/pkg/writer/ztunnel/configdump/certificates.go
func (c *ConfigWriter) PrintSecretDump(outputFormat string) error { if c.ztunnelDump == nil { return fmt.Errorf("config writer has not been primed") } secretDump := c.ztunnelDump.Certificates out, err := json.MarshalIndent(secretDump, "", " ") if err != nil { return fmt.Errorf("failed to marshal secrets dump: %v", err) } if outputFormat == "yaml" { if out, err = yaml.JSONToYAML(out); err != nil { return err } }
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Thu Apr 25 16:38:16 UTC 2024 - 3.2K bytes - Viewed (0) -
cni/pkg/util/pluginutil.go
return } return } // Marshal the CNI config map and append a new line func MarshalCNIConfig(cniConfigMap map[string]any) ([]byte, error) { cniConfig, err := json.MarshalIndent(cniConfigMap, "", " ") if err != nil { return nil, err } cniConfig = append(cniConfig, "\n"...) return cniConfig, nil
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Fri Jan 26 20:34:28 UTC 2024 - 3.6K bytes - Viewed (0) -
istioctl/pkg/writer/envoy/configdump/endpoint.go
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" { if out, err = yaml.JSONToYAML(out); err != nil { return err } }
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Mon Jul 22 09:57:29 UTC 2024 - 6.1K bytes - Viewed (0)