Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 6,766 for strings (0.19 sec)

  1. istioctl/pkg/writer/envoy/configdump/listener.go

    				fmt.Fprintf(w, "%v\t%v\t%v\t%v\n", name, strings.Join(addresses, ","), port, listenerType)
    			} else {
    				fmt.Fprintf(w, "%v\t%v\t%v\n", strings.Join(addresses, ","), port, listenerType)
    			}
    		}
    	}
    	return w.Flush()
    }
    
    type filterchain struct {
    	match       string
    	destination string
    }
    
    var (
    	plaintextHTTPALPNs = []string{"http/1.0", "http/1.1", "h2c"}
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Wed Nov 29 12:37:14 GMT 2023
    - 18.1K bytes
    - Viewed (0)
  2. istioctl/pkg/completion/completion.go

    	if err != nil {
    		return nil, err
    	}
    
    	var podsName []string
    	for _, pod := range podList.Items {
    		if toComplete == "" || strings.HasPrefix(pod.Name, toComplete) {
    			podsName = append(podsName, pod.Name)
    		}
    	}
    
    	return podsName, nil
    }
    
    func ValidPodsNameArgs(ctx cli.Context) func(_ *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective) {
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Sat Apr 13 05:23:38 GMT 2024
    - 4.9K bytes
    - Viewed (0)
  3. istioctl/pkg/multixds/google.go

    import (
    	"fmt"
    	"net/url"
    	"strings"
    )
    
    func isMCPAddr(u *url.URL) bool {
    	return strings.HasSuffix(u.Host, ".googleapis.com") || strings.HasSuffix(u.Host, ".googleapis.com:443")
    }
    
    func parseMCPAddr(u *url.URL) (*xdsAddr, error) {
    	ret := &xdsAddr{host: u.Host}
    	if !strings.HasSuffix(ret.host, ":443") {
    		ret.host += ":443"
    	}
    	const projSeg = "/projects/"
    	i := strings.Index(u.Path, projSeg)
    	if i == -1 {
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Mon Jun 06 03:39:27 GMT 2022
    - 1.5K bytes
    - Viewed (1)
  4. istioctl/pkg/writer/envoy/configdump/route.go

    	}
    	return strings.Join(withoutPort, ", ")
    }
    
    func unexpandDomains(domains []string) []string {
    	unique := sets.New(domains...)
    	shouldDelete := sets.New[string]()
    	for _, h := range domains {
    		stripFull := strings.TrimSuffix(h, ".svc.cluster.local")
    		if unique.Contains(stripFull) && stripFull != h {
    			shouldDelete.Insert(h)
    		}
    		stripPartial := strings.TrimSuffix(h, ".svc")
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Thu May 11 05:38:17 GMT 2023
    - 7.2K bytes
    - Viewed (0)
  5. logger/sql.go

    	default:
    		return false
    	}
    }
    
    // ExplainSQL generate SQL string with given parameters, the generated SQL is expected to be used in logger, execute it might introduce a SQL injection vulnerability
    func ExplainSQL(sql string, numericPlaceholder *regexp.Regexp, escaper string, avars ...interface{}) string {
    	var (
    		convertParams func(interface{}, int)
    		vars          = make([]string, len(avars))
    	)
    
    	convertParams = func(v interface{}, idx int) {
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Thu Mar 21 08:00:02 GMT 2024
    - 5K bytes
    - Viewed (0)
  6. cmd/metacache-marker.go

    	start := strings.LastIndex(s, "[")
    	o.Marker = s[:start]
    	end := strings.LastIndex(s, "]")
    	tag := strings.Trim(s[start:end], "[]")
    	tags := strings.Split(tag, ",")
    	for _, tag := range tags {
    		kv := strings.Split(tag, ":")
    		if len(kv) < 2 {
    			continue
    		}
    		switch kv[0] {
    		case "minio_cache":
    			if kv[1] != markerTagVersion {
    				continue
    			}
    		case "id":
    			o.ID = kv[1]
    		case "return":
    			o.ID = mustGetUUID()
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 2.5K bytes
    - Viewed (0)
  7. istioctl/pkg/config/config_test.go

    // limitations under the License.
    
    package config
    
    import (
    	"fmt"
    	"strings"
    	"testing"
    
    	"github.com/spf13/viper"
    
    	"istio.io/istio/istioctl/pkg/util/testutil"
    	"istio.io/istio/pkg/config/constants"
    )
    
    func TestConfigList(t *testing.T) {
    	cases := []testutil.TestCase{
    		//{ // case 0
    		//	Args:           strings.Split("get istioNamespace", " "),
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Thu Jun 15 15:02:17 GMT 2023
    - 1.8K bytes
    - Viewed (0)
  8. guava-tests/benchmark/com/google/common/util/concurrent/MonitorBenchmark.java

        queue = (BlockingQueue<String>) constructor.newInstance(capacity);
    
        strings = new String[capacity];
        for (int i = 0; i < capacity; i++) {
          strings[i] = String.valueOf(Math.random());
        }
      }
    
      @Benchmark
      void addsAndRemoves(int reps) {
        int capacity = this.capacity;
        BlockingQueue<String> queue = this.queue;
        String[] strings = this.strings;
        for (int i = 0; i < reps; i++) {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 2K bytes
    - Viewed (0)
  9. istioctl/pkg/workload/workload_test.go

    	tests := []struct {
    		name string
    		arg  []string
    		want map[string]string
    	}{
    		{name: "empty", arg: []string{""}, want: map[string]string{"": ""}},
    		{name: "one-valid", arg: []string{"key=value"}, want: map[string]string{"key": "value"}},
    		{name: "one-valid-double-equals", arg: []string{"key==value"}, want: map[string]string{"key": "=value"}},
    		{name: "one-key-only", arg: []string{"key"}, want: map[string]string{"key": ""}},
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Wed Mar 27 16:59:05 GMT 2024
    - 14.6K bytes
    - Viewed (0)
  10. cmd/leak-detect_test.go

    func pickRelevantGoroutines() (gs []string) {
    	// get runtime stack buffer.
    	buf := debug.Stack()
    	// runtime stack of go routines will be listed with 2 blank spaces between each of them, so split on "\n\n" .
    	for _, g := range strings.Split(string(buf), "\n\n") {
    		// Again split on a new line, the first line of the second half contains the info about the go routine.
    		sl := strings.SplitN(g, "\n", 2)
    		if len(sl) != 2 {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 5.2K bytes
    - Viewed (0)
Back to top