mirror of
https://github.com/kemko/nomad.git
synced 2026-01-06 10:25:42 +03:00
nvidia: support disabling the nvidia plugin (#8353)
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user