- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for NormalizePath (0.16 sec)
-
pkg/kubelet/util/util_unix.go
func LocalEndpoint(path, file string) (string, error) { u := url.URL{ Scheme: unixProtocol, Path: path, } return filepath.Join(u.String(), file+".sock"), nil } // NormalizePath is a no-op for Linux for now func NormalizePath(path string) string { return path
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 14 08:58:18 UTC 2024 - 1.1K bytes - Viewed (0) -
pkg/kubelet/util/util_windows.go
return time.Time{}, err } return currentTime.Add(-time.Duration(output) * time.Millisecond).Truncate(time.Second), nil } // NormalizePath converts FS paths returned by certain go frameworks (like fsnotify) // to native Windows paths that can be passed to Windows specific code func NormalizePath(path string) string { path = strings.ReplaceAll(path, "/", "\\") if strings.HasPrefix(path, "\\") { path = "c:" + path } return path
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 14 08:58:18 UTC 2024 - 3K bytes - Viewed (0) -
pilot/pkg/networking/core/listener_builder.go
case meshconfig.MeshConfig_ProxyPathNormalization_NONE: connectionManager.NormalizePath = proto.BoolFalse case meshconfig.MeshConfig_ProxyPathNormalization_BASE, meshconfig.MeshConfig_ProxyPathNormalization_DEFAULT: connectionManager.NormalizePath = proto.BoolTrue case meshconfig.MeshConfig_ProxyPathNormalization_MERGE_SLASHES: connectionManager.NormalizePath = proto.BoolTrue connectionManager.MergeSlashes = true
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon May 06 04:44:06 UTC 2024 - 17.9K bytes - Viewed (0) -
pkg/kubelet/util/util_windows_test.go
normalizedPath: "c:\\file", }, { originalpath: "fileonly", normalizedPath: "fileonly", }, } for _, test := range tests { assert.Equal(t, test.normalizedPath, NormalizePath(test.originalpath)) } } func TestLocalEndpoint(t *testing.T) { tests := []struct { path string file string expectError bool expectedFullPath string }{ {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 14 08:58:18 UTC 2024 - 3.1K bytes - Viewed (0) -
pkg/test/framework/components/cluster/kube/factory.go
cfg, err := validConfig(origCfg) if err != nil { return nil, err } kubeconfigPath := cfg.Meta.String(kubeconfigMetaKey) kubeconfigPath, err = file.NormalizePath(kubeconfigPath) if err != nil { return nil, err } var client istioKube.CLIClient if len(cfg.HTTPProxy) > 0 { proxyURL, err := url.Parse(cfg.HTTPProxy) if err != nil { return nil, err }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Jun 06 22:12:34 UTC 2024 - 2.7K bytes - Viewed (0)