Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for getSocketPath (0.36 sec)

  1. pkg/kubelet/pluginmanager/pluginwatcher/plugin_watcher_others.go

    */
    
    package pluginwatcher
    
    import (
    	"os"
    
    	"github.com/fsnotify/fsnotify"
    )
    
    func getStat(event fsnotify.Event) (os.FileInfo, error) {
    	return os.Stat(event.Name)
    }
    
    func getSocketPath(socketPath string) string {
    	return socketPath
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Jan 01 00:26:37 UTC 2023
    - 842 bytes
    - Viewed (0)
  2. pkg/kubelet/pluginmanager/pluginwatcher/plugin_watcher_others_test.go

    	assert.Equal(t, fi, fiExpected)
    	assert.Equal(t, err, errExpected)
    }
    
    func TestGetSocketPath(t *testing.T) {
    	socketPath := "/tmp/foo/lish.sock"
    	assert.Equal(t, socketPath, getSocketPath(socketPath))
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Jan 01 00:26:37 UTC 2023
    - 1.1K bytes
    - Viewed (0)
  3. pkg/kubelet/pluginmanager/pluginwatcher/plugin_watcher_windows.go

    	// microsoft/Windows-Containers#97 for details.
    	// Once the issue is resvolved, the following os.Lstat() is not needed.
    	if err != nil {
    		fi, err = os.Lstat(event.Name)
    	}
    
    	return fi, err
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Jan 01 00:26:37 UTC 2023
    - 1.1K bytes
    - Viewed (0)
  4. pkg/kubelet/pluginmanager/pluginwatcher/plugin_watcher.go

    		}
    
    		return w.handlePluginRegistration(event.Name)
    	}
    
    	return w.traversePluginDir(event.Name)
    }
    
    func (w *Watcher) handlePluginRegistration(socketPath string) error {
    	socketPath = getSocketPath(socketPath)
    	// Update desired state of world list of plugins
    	// If the socket path does exist in the desired world cache, there's still
    	// a possibility that it has been deleted and recreated again before it is
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Jan 01 00:26:37 UTC 2023
    - 6.1K bytes
    - Viewed (0)
Back to top