- Sort Score
- Result 10 results
- Languages All
Results 1 - 7 of 7 for TrimSpace (0.16 sec)
-
cni/pkg/plugin/sidecar_redirect.go
} func parsePort(portStr string) (uint16, error) { port, err := strconv.ParseUint(strings.TrimSpace(portStr), 10, 16) if err != nil { return 0, fmt.Errorf("failed parsing port %q: %v", portStr, err) } return uint16(port), nil } func parsePorts(portsString string) ([]int, error) { portsString = strings.TrimSpace(portsString) ports := make([]int, 0) if len(portsString) > 0 {
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Fri Jan 26 20:34:28 GMT 2024 - 10.6K bytes - Viewed (0) -
cni/pkg/repair/repaircontroller.go
// If we are filtering on init container termination message and the termination message of 'state' does not match, exit trimmedTerminationMessage := strings.TrimSpace(c.cfg.InitTerminationMsg) return trimmedTerminationMessage == "" || trimmedTerminationMessage == strings.TrimSpace(state.Message) } // Helper function; checks that container exit code matches filter matchExitCode := func(state *corev1.ContainerStateTerminated) bool {
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Sat Feb 10 00:31:55 GMT 2024 - 10.4K bytes - Viewed (0) -
istioctl/pkg/install/k8sversion/version_test.go
logger := clog.NewConsoleLogger(&outBuf, &errBuf, nil) IsK8VersionSupported(k8sClient, logger) errMsgTrim := strings.TrimSpace(c.logMsg) outBufTrim := strings.TrimSpace(outBuf.String()) if !c.isValid && strings.Compare(errMsgTrim, outBufTrim) != 0 { t.Fatalf("\nwanted: %v \nbut found: %v", errMsgTrim, outBufTrim) }
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Fri Jan 19 02:46:48 GMT 2024 - 6.3K bytes - Viewed (0) -
cni/pkg/log/uds.go
for _, l := range cniLogs { var msg cniLog if err := json.Unmarshal([]byte(l), &msg); err != nil { log.Debugf("Failed to unmarshal CNI plugin log entry: %v", err) continue } msg.Msg = strings.TrimSpace(msg.Msg) messages = append(messages, msg) } // Lock log message printing to prevent log messages from different CNI // processes interleave. l.mu.Lock() defer l.mu.Unlock() for _, m := range messages {
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Wed Nov 29 01:05:12 GMT 2023 - 3.3K bytes - Viewed (0) -
cni/pkg/iptables/iptables.go
if isIpv4 { data = iptablesBuilder.BuildV4Restore() } else { data = iptablesBuilder.BuildV6Restore() } log.Infof("Running %s with the following input:\n%v", iptVer.CmdToString(cmd), strings.TrimSpace(data)) // --noflush to prevent flushing/deleting previous contents from table return cfg.ext.Run(cmd, iptVer, strings.NewReader(data), "--noflush", "-v") } func (cfg *IptablesConfigurator) addLoopbackRoute() error {
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Tue May 07 19:54:50 GMT 2024 - 19.7K bytes - Viewed (0) -
operator/cmd/mesh/test-util_test.go
func toMap(s string) map[string]any { out := make(map[string]any) for _, l := range strings.Split(s, ",") { l = strings.TrimSpace(l) kv := strings.Split(l, ":") if len(kv) != 2 { panic("bad key:value in " + s) } out[strings.TrimSpace(kv[0])] = strings.TrimSpace(kv[1]) } if len(out) == 0 { return nil } return out }
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Tue Oct 31 14:48:28 GMT 2023 - 15.3K bytes - Viewed (0) -
istioctl/pkg/describe/describe.go
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Sat Apr 13 05:23:38 GMT 2024 - 50.4K bytes - Viewed (0)