getPluginSocketPath returns the socket to use for the specified resource.
(resource spec.ResourceName)
| 101 | |
| 102 | // getPluginSocketPath returns the socket to use for the specified resource. |
| 103 | func getPluginSocketPath(resource spec.ResourceName) string { |
| 104 | _, name := resource.Split() |
| 105 | pluginName := "nvidia-" + name |
| 106 | return filepath.Join(pluginapi.DevicePluginPath, pluginName) + ".sock" |
| 107 | } |
| 108 | |
| 109 | func (plugin *nvidiaDevicePlugin) initialize() { |
| 110 | plugin.server = grpc.NewServer([]grpc.ServerOption{}...) |
no test coverage detected