MCPcopy Create free account
hub / github.com/docker/go-plugins-helpers / createPluginSpecDirWindows

Function createPluginSpecDirWindows

sdk/spec_file_generator.go:26–38  ·  view source on GitHub ↗
(name, address, daemonRoot string)

Source from the content-addressed store, hash-verified

24}
25
26func createPluginSpecDirWindows(name, address, daemonRoot string) (string, error) {
27 _, err := os.Stat(daemonRoot)
28 if os.IsNotExist(err) {
29 return "", fmt.Errorf("Deamon root directory must already exist: %s", err)
30 }
31
32 pluginSpecDir := PluginSpecDir(daemonRoot)
33
34 if err := windowsCreateDirectoryWithACL(pluginSpecDir); err != nil {
35 return "", err
36 }
37 return pluginSpecDir, nil
38}
39
40func createPluginSpecDirUnix(name, address string) (string, error) {
41 pluginSpecDir := PluginSpecDir("/etc/docker")

Callers 2

newWindowsListenerFunction · 0.85
newTCPListenerFunction · 0.85

Calls 2

PluginSpecDirFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…