nvidia: support disabling the nvidia plugin (#8353)

This commit is contained in:
Mahmood Ali
2020-07-21 10:11:16 -04:00
committed by GitHub
parent ae7626362d
commit 60dd7aecc9
4 changed files with 68 additions and 13 deletions

View File

@@ -15,6 +15,11 @@ const (
DeviceTypeGPU = "gpu"
)
var (
// ErrPluginDisabled indicates that the device plugin is disabled
ErrPluginDisabled = fmt.Errorf("device is not enabled")
)
// DevicePlugin is the interface for a plugin that can expose detected devices
// to Nomad and inform it how to mount them.
type DevicePlugin interface {