mirror of
https://github.com/kemko/nomad.git
synced 2026-01-03 08:55:43 +03:00
loader and singleton
This commit is contained in:
committed by
Michael Schurter
parent
b9f36134dc
commit
c19cd2e5cf
15
pluginutils/loader/api_versions.go
Normal file
15
pluginutils/loader/api_versions.go
Normal file
@@ -0,0 +1,15 @@
|
||||
package loader
|
||||
|
||||
import (
|
||||
"github.com/hashicorp/nomad/plugins/base"
|
||||
"github.com/hashicorp/nomad/plugins/device"
|
||||
)
|
||||
|
||||
var (
|
||||
// AgentSupportedApiVersions is the set of API versions supported by the
|
||||
// Nomad agent by plugin type.
|
||||
AgentSupportedApiVersions = map[string][]string{
|
||||
base.PluginTypeDevice: {device.ApiVersion010},
|
||||
base.PluginTypeDriver: {device.ApiVersion010},
|
||||
}
|
||||
)
|
||||
Reference in New Issue
Block a user