Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 210 for fmt (0.15 sec)

  1. istioctl/pkg/admin/istiodconfig.go

    			},
    		)
    	}
    	switch ga.outputFormat {
    	case "short":
    		w := new(tabwriter.Writer).Init(out, 0, 8, 3, ' ', 0)
    		_, _ = fmt.Fprintln(w, "ACTIVE SCOPE\tDESCRIPTION\tLOG LEVEL")
    		for _, sll := range resultScopeLogLevel {
    			_, _ = fmt.Fprintf(w, "%s\t%s\t%s\n", sll.ScopeName, sll.Description, sll.LogLevel)
    		}
    		return w.Flush()
    	case "json", "yaml":
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Sat Apr 13 05:23:38 GMT 2024
    - 13.5K bytes
    - Viewed (0)
  2. istioctl/pkg/multixds/gather.go

    		// If there is a specific pod name in ResourceName, use the agent in the pod.
    		if len(dr.ResourceNames) != 1 {
    			return nil, fmt.Errorf("`ResourceNames` must have one element when `all` flag is turned on")
    		}
    		slice := strings.SplitN(dr.ResourceNames[0], ".", 2)
    		if len(slice) != 2 {
    			return nil, fmt.Errorf("invalid resource name format: %v", slice)
    		}
    		podName := slice[0]
    		ns := slice[1]
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Mar 08 08:38:19 GMT 2024
    - 13.6K bytes
    - Viewed (0)
  3. istioctl/pkg/injector/injector-list.go

    			}
    		}
    		for injectedRevision, count := range podCount {
    			if outputCount == 0 {
    				fmt.Fprintln(w, "NAMESPACE\tISTIO-REVISION\tPOD-REVISIONS")
    			}
    			outputCount++
    
    			fmt.Fprintf(w, "%s\t%s\t%s\n", namespace.Name, revision, renderCounts(injectedRevision, count))
    		}
    	}
    	if outputCount == 0 {
    		fmt.Fprintf(writer, "No Istio injected namespaces present.\n")
    	}
    
    	return w.Flush()
    }
    
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Thu Jan 04 03:08:06 GMT 2024
    - 10.4K bytes
    - Viewed (0)
  4. istioctl/pkg/dashboard/dashboard.go

    			kubeClient, err := ctx.CLIClient()
    			if err != nil {
    				return fmt.Errorf("failed to create k8s client: %v", err)
    			}
    			if labelSelector == "" && len(args) < 1 {
    				c.Println(c.UsageString())
    				return fmt.Errorf("specify a pod or --selector")
    			}
    
    			if labelSelector != "" && len(args) > 0 {
    				c.Println(c.UsageString())
    				return fmt.Errorf("name cannot be provided when a selector is specified")
    			}
    
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Mon Apr 15 01:29:35 GMT 2024
    - 20.5K bytes
    - Viewed (0)
  5. istioctl/pkg/kubeinject/kubeinject.go

    		if err != nil {
    			return nil, err
    		}
    		namespace, selector, err := polymorphichelpers.SelectorsForObject(svc)
    		if err != nil {
    			if e.injectorAddress == "" {
    				return nil, fmt.Errorf("cannot attach to %T: %v", svc, err)
    			}
    			address = fmt.Sprintf("https://%s:%d%s", e.injectorAddress, *cc.Service.Port, *cc.Service.Path)
    		} else {
    			pod, err := GetFirstPod(e.client.Kube().CoreV1(), namespace, selector.String())
    			if err != nil {
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Mar 29 02:29:02 GMT 2024
    - 21.6K bytes
    - Viewed (0)
  6. internal/s3select/sql/funceval.go

    	case float64:
    		return fmt.Sprintf("%v", x), nil
    	case int64:
    		return fmt.Sprintf("%v", x), nil
    	case string:
    		return x, nil
    	case []byte:
    		return string(x), nil
    	case bool:
    		return fmt.Sprintf("%v", x), nil
    	case nil:
    		// FIXME: verify this case is correct
    		return "NULL", nil
    	}
    	// This does not happen
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Jun 01 21:59:40 GMT 2021
    - 13.2K bytes
    - Viewed (0)
  7. cmd/sftp-server.go

    				found = true
    				break
    			}
    		}
    		if !found {
    			logger.Fatal(fmt.Errorf("unknown algorithm %q passed to --sftp=%s\nValid algorithms: %v", algo, arg, strings.Join(allowed, ", ")), "unable to start SFTP server")
    		}
    	}
    	if len(filteredAlgos) == 0 {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 11:07:40 GMT 2024
    - 10.4K bytes
    - Viewed (0)
  8. internal/config/storageclass/storage-class.go

    // MarshalText - marshals storage class string.
    func (sc *StorageClass) MarshalText() ([]byte, error) {
    	if sc.Parity != 0 {
    		return []byte(fmt.Sprintf("%s:%d", schemePrefix, sc.Parity)), nil
    	}
    	return []byte{}, nil
    }
    
    func (sc *StorageClass) String() string {
    	if sc.Parity != 0 {
    		return fmt.Sprintf("%s:%d", schemePrefix, sc.Parity)
    	}
    	return ""
    }
    
    // Parses given storageClassEnv and returns a storageClass structure.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 11.8K bytes
    - Viewed (0)
  9. internal/event/target/elasticsearch.go

    func getESVersionSupportStatus(version string) (res ESSupportStatus, err error) {
    	parts := strings.Split(version, ".")
    	if len(parts) < 1 {
    		err = fmt.Errorf("bad ES version string: %s", version)
    		return
    	}
    
    	majorVersion, err := strconv.Atoi(parts[0])
    	if err != nil {
    		err = fmt.Errorf("bad ES version string: %s", version)
    		return
    	}
    
    	switch {
    	case majorVersion <= 6:
    		res = ESSUnsupported
    	default:
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 15K bytes
    - Viewed (0)
  10. operator/cmd/mesh/install.go

    	b.WriteString("InFilenames:      " + fmt.Sprint(a.InFilenames) + "\n")
    	b.WriteString("ReadinessTimeout: " + fmt.Sprint(a.ReadinessTimeout) + "\n")
    	b.WriteString("SkipConfirmation: " + fmt.Sprint(a.SkipConfirmation) + "\n")
    	b.WriteString("Force:            " + fmt.Sprint(a.Force) + "\n")
    	b.WriteString("Verify:           " + fmt.Sprint(a.Verify) + "\n")
    	b.WriteString("Set:              " + fmt.Sprint(a.Set) + "\n")
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Thu May 02 14:30:43 GMT 2024
    - 15.5K bytes
    - Viewed (1)
Back to top