Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 164 for Fprintf (0.18 sec)

  1. 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")
    	}
    
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Sat Apr 13 05:23:38 GMT 2024
    - 50.4K bytes
    - Viewed (0)
  2. istioctl/pkg/waypoint/waypoint.go

    						break
    					}
    					if time.Since(startTime) > waitTimeout {
    						errorMsg := fmt.Sprintf("timed out while waiting for waypoint %v/%v", gw.Namespace, gw.Name)
    						if err != nil {
    							errorMsg += fmt.Sprintf(": %s", err)
    						}
    						return fmt.Errorf(errorMsg)
    					}
    				}
    			}
    			fmt.Fprintf(cmd.OutOrStdout(), "waypoint %v/%v applied\n", gw.Namespace, gw.Name)
    
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Wed May 01 16:16:40 GMT 2024
    - 15.2K bytes
    - Viewed (0)
  3. istioctl/pkg/metrics/metrics.go

    	_, _ = fmt.Fprintf(w, "%40s\tTOTAL RPS\tERROR RPS\tP50 LATENCY\tP90 LATENCY\tP99 LATENCY\t\n", "WORKLOAD")
    	_ = w.Flush()
    }
    
    func printMetrics(writer io.Writer, wm workloadMetrics) {
    	w := tabwriter.NewWriter(writer, 13, 1, 2, ' ', tabwriter.AlignRight)
    	_, _ = fmt.Fprintf(w, "%40s\t", wm.workload)
    	_, _ = fmt.Fprintf(w, "%.3f\t", wm.totalRPS)
    	_, _ = fmt.Fprintf(w, "%.3f\t", wm.errorRPS)
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Sat Apr 13 05:23:38 GMT 2024
    - 8.4K bytes
    - Viewed (0)
  4. istioctl/pkg/analyze/analyze.go

    	for _, aName := range analyzerNames {
    		b.WriteString(fmt.Sprintf("* %s:\n", aName))
    		a := nameToAnalyzer[aName]
    		if a.Metadata().Description != "" {
    			b.WriteString(fmt.Sprintf("    %s\n", a.Metadata().Description))
    		}
    	}
    	return b.String()
    }
    
    func analyzeTargetAsString() string {
    	if allNamespaces {
    		return "all namespaces"
    	}
    	return fmt.Sprintf("namespace: %s", selectedNamespace)
    }
    
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Tue Apr 02 08:32:06 GMT 2024
    - 17K bytes
    - Viewed (0)
  5. tensorflow/c/c_test.c

      TF_NewWritableFile(full_path, &h, status);
      if (TF_GetCode(status) != TF_OK) {
        fprintf(stderr, "TF_NewWritableFile failed: %s\n", TF_Message(status));
        return 1;
      }
      fprintf(stderr, "wrote %s\n", full_path);
      free(full_path);
      TF_CloseWritableFile(h, status);
      if (TF_GetCode(status) != TF_OK) {
        fprintf(stderr, "TF_CloseWritableFile failed: %s\n", TF_Message(status));
      }
      TF_StringStreamDone(s);
    
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Wed Apr 24 20:50:35 GMT 2024
    - 2.8K bytes
    - Viewed (0)
  6. istioctl/pkg/tag/tag.go

    			fmt.Fprintf(w, "Aborting operation.\n")
    			return nil
    		}
    	}
    
    	// proceed with webhook deletion
    	err = DeleteTagWebhooks(ctx, kubeClient, tagName)
    	if err != nil {
    		return fmt.Errorf("failed to delete Istio revision tag MutatingConfigurationWebhook: %v", err)
    	}
    
    	fmt.Fprintf(w, "Revision tag %s removed\n", tagName)
    	return nil
    }
    
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Tue Apr 02 08:32:06 GMT 2024
    - 16.3K bytes
    - Viewed (0)
  7. istioctl/pkg/writer/ztunnel/configdump/policies.go

    		}
    		return cmp.Compare(a.Name, b.Name)
    	})
    	fmt.Fprintln(w, "NAMESPACE\tPOLICY NAME\tACTION\tSCOPE")
    
    	for _, pol := range pols {
    		fmt.Fprintf(w, "%v\t%v\t%v\t%v\n",
    			pol.Namespace, pol.Name, pol.Action, pol.Scope)
    	}
    	return w.Flush()
    }
    
    // PrintPolicyDump prints the relevant services in the config dump to the ConfigWriter stdout
    func (c *ConfigWriter) PrintPolicyDump(filter PolicyFilter, outputFormat string) error {
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Tue Apr 23 21:30:30 GMT 2024
    - 2.5K bytes
    - Viewed (0)
  8. istioctl/pkg/writer/ztunnel/configdump/connections.go

    			continue
    		}
    		name := fmt.Sprintf("%s.%s", wl.Info.Name, wl.Info.Namespace)
    		if filter.Direction != "outbound" {
    			for _, c := range wl.Connections.Inbound {
    				fmt.Fprintf(w, "%v\tInbound\t%v\t%v\t%v\n", name, lookupIP(c.ActualDst), lookupIP(c.Src), c.OriginalDst)
    			}
    		}
    		if filter.Direction != "inbound" {
    			for _, c := range wl.Connections.Outbound {
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Mon Apr 22 15:39:28 GMT 2024
    - 3.3K bytes
    - Viewed (0)
  9. istioctl/pkg/writer/ztunnel/configdump/workload.go

    		}
    		if filter.Verbose {
    			waypoint := waypointName(wl, zDump.Services)
    			fmt.Fprintf(w, "%v\t%v\t%v\t%v\t%v\t%v\n",
    				wl.Namespace, wl.Name, ip, wl.Node, waypoint, wl.Protocol)
    		} else {
    			fmt.Fprintf(w, "%v\t%v\t%v\t%v\n", wl.Namespace, wl.Name, ip, wl.Node)
    		}
    	}
    	return w.Flush()
    }
    
    // PrintWorkloadDump prints the relevant workloads in the config dump to the ConfigWriter stdout
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Tue Apr 23 21:30:30 GMT 2024
    - 4K bytes
    - Viewed (0)
  10. istioctl/pkg/dashboard/dashboard.go

    			// Try the next port
    			continue
    		}
    
    		// Close the port forwarder when the command is terminated.
    		ClosePortForwarderOnInterrupt(fw)
    
    		log.Debugf(fmt.Sprintf("port-forward to %s pod ready", flavor))
    		openBrowser(fmt.Sprintf(urlFormat, fw.Address()), writer, browser)
    
    		// Wait for stop
    		fw.WaitForStop()
    
    		return nil
    	}
    
    	return fmt.Errorf("failure running port forward process: %v", err)
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Mon Apr 15 01:29:35 GMT 2024
    - 20.5K bytes
    - Viewed (0)
Back to top