Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for str (0.12 sec)

  1. istioctl/pkg/workload/workload_test.go

    		},
    	}
    	for i, c := range cases {
    		t.Run(fmt.Sprintf("case %d %s", i, c.description), func(t *testing.T) {
    			str := marshalWorkloadEntryPodPorts(c.ports)
    			if c.want != str {
    				t.Errorf("want %s, got %s", c.want, str)
    			}
    		})
    	}
    }
    
    // TestWorkloadEntryConfigureNilProxyMetadata tests a particular use case when the
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Wed Mar 27 16:59:05 GMT 2024
    - 14.6K bytes
    - Viewed (0)
  2. istioctl/pkg/validate/validate.go

    func fromSchemaAndJSONMap(schema resource.Schema, data any) (config.Spec, error) {
    	// Marshal to json bytes
    	str, err := json.Marshal(data)
    	if err != nil {
    		return nil, err
    	}
    	out, err := schema.NewInstance()
    	if err != nil {
    		return nil, err
    	}
    	if err = config.ApplyJSONStrict(out, string(str)); err != nil {
    		return nil, err
    	}
    	return out, nil
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Mon Jan 22 17:58:52 GMT 2024
    - 15K bytes
    - Viewed (0)
  3. istioctl/pkg/workload/workload.go

    // splitEqual splits key=value string into key,value. if no = is found
    // the whole string is the key and value is empty.
    func splitEqual(str string) (string, string) {
    	idx := strings.Index(str, "=")
    	var k string
    	var v string
    	if idx >= 0 {
    		k = str[:idx]
    		v = str[idx+1:]
    	} else {
    		k = str
    	}
    	return k, v
    }
    
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Wed Apr 17 20:06:41 GMT 2024
    - 25.5K bytes
    - Viewed (0)
  4. operator/cmd/mesh/shared.go

    type writerPrinter struct {
    	writer io.Writer
    }
    
    func (w *writerPrinter) Printf(format string, a ...any) {
    	_, _ = fmt.Fprintf(w.writer, format, a...)
    }
    
    func (w *writerPrinter) Println(str string) {
    	_, _ = fmt.Fprintln(w.writer, str)
    }
    
    func refreshGoldenFiles() bool {
    	ev := os.Getenv("REFRESH_GOLDEN")
    	return ev == "true" || ev == "1"
    }
    
    func kubeBuilderInstalled() bool {
    	ev := os.Getenv("KUBEBUILDER")
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Mar 29 02:29:02 GMT 2024
    - 5.1K bytes
    - Viewed (0)
  5. cni/pkg/nodeagent/podcgroupns.go

    		`(?:[[:^punct:]]*/*)*crio[[:punct:]]` +
    		// non-punctuation end of string, i.e., the container ID
    		`(?P<containerid>[[:^punct:]]+)$`),
    }
    
    func reSubMatchMap(r *regexp.Regexp, str string) map[string]string {
    	match := r.FindStringSubmatch(str)
    	if match == nil {
    		return nil
    	}
    	subMatchMap := make(map[string]string)
    	for i, name := range r.SubexpNames() {
    		if i != 0 {
    			subMatchMap[name] = match[i]
    		}
    	}
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Apr 12 21:47:31 GMT 2024
    - 11K bytes
    - Viewed (0)
Back to top