- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for LocalEndpoint (0.14 sec)
-
pkg/kubelet/util/util_unsupported.go
func LockAndCheckSubPath(volumePath, subPath string) ([]uintptr, error) { return []uintptr{}, nil } // UnlockPath empty implementation func UnlockPath(fileHandles []uintptr) { } // LocalEndpoint empty implementation func LocalEndpoint(path, file string) (string, error) { return "", fmt.Errorf("LocalEndpoints are unsupported in this build") } // GetBootTime empty implementation func GetBootTime() (time.Time, error) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 14 08:58:18 UTC 2024 - 1.2K bytes - Viewed (0) -
pkg/kubelet/util/util_unix.go
package util import ( "net/url" "path/filepath" ) const ( // unixProtocol is the network protocol of unix socket. unixProtocol = "unix" ) // LocalEndpoint returns the full path to a unix socket at the given endpoint func LocalEndpoint(path, file string) (string, error) { u := url.URL{ Scheme: unixProtocol, Path: path, } return filepath.Join(u.String(), file+".sock"), nil }
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
*/ package util import ( "fmt" "path/filepath" "strings" "syscall" "time" ) const npipeProtocol = "npipe" // LocalEndpoint returns the full path to a named pipe at the given endpoint - unlike on unix, we can't use sockets. func LocalEndpoint(path, file string) (string, error) { // extract the podresources config name from the path. We only need this on windows because the preferred layout of pipes,
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 14 08:58:18 UTC 2024 - 3K bytes - Viewed (0) -
pkg/kubelet/util/util_unix_test.go
}{ { path: "path", file: "file", expectError: false, expectedFullPath: "unix:/path/file.sock", }, } for _, test := range tests { fullPath, err := LocalEndpoint(test.path, test.file) if test.expectError { assert.NotNil(t, err, "expected error") continue } assert.Nil(t, err, "expected no error") assert.Equal(t, test.expectedFullPath, fullPath) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 14 08:58:18 UTC 2024 - 1.3K bytes - Viewed (0) -
pkg/kubelet/util/util_windows_test.go
expectError: false, expectedFullPath: `npipe://\\.\pipe\kubelet-pod-resources`, }, } for _, test := range tests { fullPath, err := LocalEndpoint(test.path, test.file) if test.expectError { assert.NotNil(t, err, "expected error") continue } assert.Nil(t, err, "expected no error") assert.Equal(t, test.expectedFullPath, fullPath) } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 14 08:58:18 UTC 2024 - 3.1K bytes - Viewed (0)