Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 54 for Writer (0.17 sec)

  1. istioctl/pkg/tag/tag.go

    }
    
    // listTags lists existing revision.
    func listTags(ctx context.Context, kubeClient kubernetes.Interface, writer io.Writer) error {
    	tagWebhooks, err := GetRevisionWebhooks(ctx, kubeClient)
    	if err != nil {
    		return fmt.Errorf("failed to retrieve revision tags: %v", err)
    	}
    	if len(tagWebhooks) == 0 {
    		fmt.Fprintf(writer, "No Istio revision tag MutatingWebhookConfigurations to list\n")
    		return nil
    	}
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Tue Apr 02 08:32:06 GMT 2024
    - 16.3K bytes
    - Viewed (0)
  2. istioctl/pkg/waypoint/waypoint.go

    				List(context.Background(), metav1.ListOptions{})
    			if err != nil {
    				return err
    			}
    			if len(gws.Items) == 0 {
    				fmt.Fprintln(writer, "No waypoints found.")
    				return nil
    			}
    			w := new(tabwriter.Writer).Init(writer, 0, 8, 5, ' ', 0)
    			slices.SortFunc(gws.Items, func(i, j gateway.Gateway) int {
    				if r := cmp.Compare(i.Namespace, j.Namespace); r != 0 {
    					return r
    				}
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Mon Apr 22 20:20:40 GMT 2024
    - 15K bytes
    - Viewed (0)
  3. istioctl/pkg/writer/ztunnel/configdump/services.go

    	"cmp"
    	"encoding/json"
    	"fmt"
    	"strings"
    
    	"sigs.k8s.io/yaml"
    
    	"istio.io/istio/pkg/maps"
    	"istio.io/istio/pkg/slices"
    )
    
    // ServiceFilter is used to pass filter information into service based config writer print functions
    type ServiceFilter struct {
    	Namespace string
    }
    
    // Verify returns true if the passed workload matches the filter fields
    func (wf *ServiceFilter) Verify(svc *ZtunnelService) bool {
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Tue Apr 23 21:30:30 GMT 2024
    - 2.8K bytes
    - Viewed (0)
  4. istioctl/pkg/writer/pilot/status.go

    	if len(mappedResp) > 0 {
    		mresp, err := json.MarshalIndent(mappedResp, "", "  ")
    		if err != nil {
    			return nil, nil, err
    		}
    		_, _ = s.Writer.Write(mresp)
    		_, _ = s.Writer.Write([]byte("\n"))
    	}
    
    	return w, fullStatus, nil
    }
    
    func xdsStatusPrintln(w io.Writer, status *xdsWriterStatus) error {
    	_, err := fmt.Fprintf(w, "%v\t%v\t%v\t%v\t%v\t%v\t%v\t%v\t%v\n",
    		status.proxyID, status.clusterID,
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Fri Mar 15 04:16:55 GMT 2024
    - 6.1K bytes
    - Viewed (0)
  5. istioctl/pkg/dashboard/dashboard.go

    		signal.Notify(signals, os.Interrupt)
    		defer signal.Stop(signals)
    		<-signals
    		fw.Close()
    	}()
    }
    
    func openBrowser(url string, writer io.Writer, browser bool) {
    	var err error
    
    	fmt.Fprintf(writer, "%s\n", url)
    
    	if !browser {
    		fmt.Fprint(writer, "skipping opening a browser")
    		return
    	}
    
    	switch runtime.GOOS {
    	case "linux":
    		err = exec.Command("xdg-open", url).Start()
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Mon Apr 15 01:29:35 GMT 2024
    - 20.5K bytes
    - Viewed (0)
  6. operator/cmd/mesh/shared.go

    }
    
    type Printer interface {
    	Printf(format string, a ...any)
    	Println(string)
    }
    
    func NewPrinterForWriter(w io.Writer) Printer {
    	return &writerPrinter{writer: w}
    }
    
    type writerPrinter struct {
    	writer io.Writer
    }
    
    func (w *writerPrinter) Printf(format string, a ...any) {
    	_, _ = fmt.Fprintf(w.writer, format, a...)
    }
    
    Go
    - Registered: Wed Mar 20 22:53:08 GMT 2024
    - Last Modified: Fri Mar 15 01:18:49 GMT 2024
    - 5.3K bytes
    - Viewed (0)
  7. istioctl/pkg/describe/describe.go

    			cfgNames += ", "
    		}
    	}
    	fmt.Fprintf(writer, "   %s\n", cfgNames)
    }
    
    func printPeerAuthentication(writer io.Writer, pa authn.MergedPeerAuthentication) {
    	fmt.Fprintf(writer, "Effective PeerAuthentication:\n")
    	fmt.Fprintf(writer, "   Workload mTLS mode: %s\n", pa.Mode.String())
    	if len(pa.PerPort) != 0 {
    		fmt.Fprintf(writer, "   Port Level mTLS mode:\n")
    		for port, mode := range pa.PerPort {
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Sat Apr 13 05:23:38 GMT 2024
    - 50.4K bytes
    - Viewed (0)
  8. operator/cmd/mesh/profile-diff.go

    	}
    	return profileDiffInternal(args[0], args[1], setFlags, cmd.OutOrStdout(), l)
    }
    
    func profileDiffInternal(profileA, profileB string, setFlags []string, writer io.Writer, l clog.Logger) (bool, error) {
    	a, _, err := manifest.GenIOPFromProfile(profileA, "", setFlags, true, true, nil, l)
    	if err != nil {
    		return false, fmt.Errorf("could not read %q: %v", profileA, err)
    	}
    
    Go
    - Registered: Wed Mar 20 22:53:08 GMT 2024
    - Last Modified: Fri Mar 15 01:18:49 GMT 2024
    - 3.1K bytes
    - Viewed (0)
  9. istioctl/pkg/writer/ztunnel/configdump/policies.go

    	"cmp"
    	"encoding/json"
    	"fmt"
    	"strings"
    
    	"sigs.k8s.io/yaml"
    
    	"istio.io/istio/pkg/maps"
    	"istio.io/istio/pkg/slices"
    )
    
    // PolicyFilter is used to pass filter information into service based config writer print functions
    type PolicyFilter struct {
    	Namespace string
    }
    
    // Verify returns true if the passed workload matches the filter fields
    func (wf *PolicyFilter) Verify(pol *ZtunnelPolicy) bool {
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Tue Apr 23 21:30:30 GMT 2024
    - 2.5K bytes
    - Viewed (0)
  10. istioctl/pkg/metrics/metrics.go

    }
    
    func printHeader(writer io.Writer) {
    	w := tabwriter.NewWriter(writer, 13, 1, 2, ' ', tabwriter.AlignRight)
    	_, _ = 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)
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Sat Apr 13 05:23:38 GMT 2024
    - 8.4K bytes
    - Viewed (0)
Back to top