- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 174 for Fprint (0.08 sec)
-
istioctl/pkg/writer/table/writer.go
return } sep := getMaxWidths(output) for _, row := range output { for i, col := range row { _, _ = fmt.Fprint(c.writer, col.String()) if i == len(row)-1 { _, _ = fmt.Fprint(c.writer, "\n") } else { padAmount := sep[i] - utf8.RuneCount([]byte(col.Value)) + 2 _, _ = fmt.Fprint(c.writer, strings.Repeat(" ", padAmount)) } } } } func getMaxWidths(output [][]Cell) []int {
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Wed Nov 06 09:43:25 UTC 2024 - 2.7K bytes - Viewed (0) -
cmd/erasure-metadata.go
if !meta.Deleted && meta.Size != 0 { fmt.Fprintf(h, "%v+%v", meta.Erasure.DataBlocks, meta.Erasure.ParityBlocks) fmt.Fprintf(h, "%v", meta.Erasure.Distribution) } if meta.IsRemote() { // ILM transition fields fmt.Fprint(h, meta.TransitionStatus) fmt.Fprint(h, meta.TransitionTier) fmt.Fprint(h, meta.TransitionedObjName) fmt.Fprint(h, meta.TransitionVersionID) }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Oct 31 22:10:24 UTC 2024 - 21.3K bytes - Viewed (0) -
src/bufio/example_test.go
package bufio_test import ( "bufio" "bytes" "fmt" "os" "strconv" "strings" ) func ExampleWriter() { w := bufio.NewWriter(os.Stdout) fmt.Fprint(w, "Hello, ") fmt.Fprint(w, "world!") w.Flush() // Don't forget to flush! // Output: Hello, world! } func ExampleWriter_AvailableBuffer() { w := bufio.NewWriter(os.Stdout) for _, i := range []int64{1, 2, 3, 4} {
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Fri Nov 01 21:52:12 UTC 2024 - 5.5K bytes - Viewed (0) -
istioctl/pkg/proxyconfig/proxyconfig.go
if err != nil { return err } _, _ = fmt.Fprint(c.OutOrStdout(), prettyJSON.String()+"\n") default: _, _ = fmt.Fprint(c.OutOrStdout(), stats) } return nil } func getLogLevelFromConfigMap(ctx cli.Context) (string, error) { valuesConfig, err := kubeinject.GetValuesFromConfigMap(ctx, "") if err != nil { return "", err } var values struct {
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Thu Oct 24 15:53:49 UTC 2024 - 50.6K bytes - Viewed (0) -
istioctl/pkg/analyze/analyze.go
func Analyze(ctx cli.Context) *cobra.Command { var verbose bool analysisCmd := &cobra.Command{ Use: "analyze <file>...", Short: "Analyze Istio configuration and print validation messages", Long: fmt.Sprintf("Analyze Istio configuration and print validation messages.\n"+ "For more information about message codes, refer to:\n%s", url.ConfigAnalysis), Example: ` # Analyze the current live cluster istioctl analyze
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Thu Oct 31 06:53:50 UTC 2024 - 17.6K bytes - Viewed (0) -
istioctl/pkg/waypoint/waypoint.go
res := strings.ReplaceAll(string(b), ` creationTimestamp: null `, "") res = strings.ReplaceAll(res, `status: {} `, "") fmt.Fprint(cmd.OutOrStdout(), res) return nil }, } waypointGenerateCmd.Flags().StringVar(&trafficType, "for", "", fmt.Sprintf("Specify the traffic type %s for the waypoint", sets.SortedList(validTrafficTypes)), ) waypointApplyCmd := &cobra.Command{ Use: "apply",
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Wed Oct 09 16:05:45 UTC 2024 - 19.6K bytes - Viewed (0) -
src/cmd/cgo/gcc.go
for _, n := range names { if n.Kind == "fconst" { fmt.Fprintf(&b, "\t%s,\n", n.C) } else { fmt.Fprintf(&b, "\t0,\n") } } fmt.Fprintf(&b, "\t1\n") fmt.Fprintf(&b, "};\n") // do the same work for strings. for i, n := range names { if n.Kind == "sconst" { fmt.Fprintf(&b, "const char __cgodebug_str__%d[] = %s;\n", i, n.C)
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Wed Sep 18 15:07:34 UTC 2024 - 97.1K bytes - Viewed (0) -
istioctl/pkg/writer/compare/sds/writer.go
if includeConfigType { s.Name = fmt.Sprintf("secret/%s", s.Name) } // If all secrets have a trust domain, we are probably dealing with trust domain federation, so print trust domains. // Otherwise, do not do that, because we do not know how to determine that information from the certificate, // so the output would be confusing. if !hasUnknownTrustDomain { fmt.Fprintf(tw, "%s\t%s\t%s\t%t\t%s\t%s\t%s\t%s\n",
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/describe/describe.go
fmt.Fprintf(writer, "WARNING: User ID (UID) 1337 is reserved for the sidecar proxy.\n") } } } } fmt.Fprintf(writer, "Pod: %s\n", kname(pod.ObjectMeta)) fmt.Fprintf(writer, " Pod Revision: %s\n", revision) if len(ports) > 0 { fmt.Fprintf(writer, " Pod Ports: %s\n", strings.Join(ports, ", ")) } else { fmt.Fprintf(writer, " Pod does not expose ports\n") }
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Thu Oct 24 17:36:49 UTC 2024 - 50.6K bytes - Viewed (0) -
istioctl/pkg/precheck/precheck.go
} msgs = append(msgs, m...) } // Print all the messages to stdout in the specified format msgs = msgs.SortedDedupedCopy() outputMsgs := diag.Messages{} for _, m := range msgs { if m.Type.Level().IsWorseThanOrEqualTo(outputThreshold.Level) { outputMsgs = append(outputMsgs, m) } } output, err := formatting.Print(outputMsgs, msgOutputFormat, true) if err != nil { return err
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Thu Oct 24 02:31:32 UTC 2024 - 15.3K bytes - Viewed (0)