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

Function createPluginSpecDirUnix

sdk/spec_file_generator.go:40–46  ·  view source on GitHub ↗
(name, address string)

Source from the content-addressed store, hash-verified

38}
39
40func createPluginSpecDirUnix(name, address string) (string, error) {
41 pluginSpecDir := PluginSpecDir("/etc/docker")
42 if err := os.MkdirAll(pluginSpecDir, 0755); err != nil {
43 return "", err
44 }
45 return pluginSpecDir, nil
46}
47
48func writeSpecFile(name, address, pluginSpecDir string, proto protocol) (string, error) {
49 specFileDir := filepath.Join(pluginSpecDir, name+".spec")

Callers 1

newTCPListenerFunction · 0.85

Calls 1

PluginSpecDirFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…