- Sort Score
- Result 10 results
- Languages All
Results 1 - 7 of 7 for str (0.2 sec)
-
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 Apr 24 22:53:08 GMT 2024 - Last Modified: Wed Apr 17 20:06:41 GMT 2024 - 25.5K bytes - Viewed (0) -
bin/diff_yaml.py
Python - Registered: Wed Apr 24 22:53:08 GMT 2024 - Last Modified: Wed Mar 03 16:14:57 GMT 2021 - 4.5K bytes - Viewed (0) -
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 Apr 24 22:53:08 GMT 2024 - Last Modified: Wed Mar 27 16:59:05 GMT 2024 - 14.6K bytes - Viewed (0) -
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 Apr 24 22:53:08 GMT 2024 - Last Modified: Fri Apr 12 21:47:31 GMT 2024 - 11K bytes - Viewed (0) -
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 Apr 24 22:53:08 GMT 2024 - Last Modified: Mon Jan 22 17:58:52 GMT 2024 - 15K bytes - Viewed (0) -
common/scripts/kind_provisioner.sh
net_bits = 128 if type(net) == IPv6Network else 32; net_len = pow(2, net_bits - net.prefixlen) start, end = int(net_len / 4 * 3), net_len if net_len > 2000: start, end = 1000, 2000 [print(str(ip) + "/" + str(ip.max_prefixlen)) for ip in islice(ip_network('$CIDR').hosts(), start, end)] EOF } function ips_to_cidrs() { IP_RANGE_START="$1" IP_RANGE_END="$2" python3 - <<EOF
Shell Script - Registered: Wed Apr 24 22:53:08 GMT 2024 - Last Modified: Mon Apr 08 19:12:55 GMT 2024 - 17.3K bytes - Viewed (1) -
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) } var logMutex = sync.Mutex{} func ConfigLogs(opt *log.Options) error { logMutex.Lock() defer logMutex.Unlock() op := []string{"stderr"} opt2 := *opt opt2.OutputPaths = op
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)