Rename driver to nix2
This commit is contained in:
parent
14bd8f2010
commit
153b8f1b9d
|
@ -1,2 +1,2 @@
|
||||||
nomad-driver-exec2
|
nomad-driver-*
|
||||||
exec2-driver
|
*-driver
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
PLUGIN_BINARY=hello-driver
|
PLUGIN_BINARY=nix2-driver
|
||||||
export GO111MODULE=on
|
export GO111MODULE=on
|
||||||
|
|
||||||
default: build
|
default: build
|
||||||
|
|
4
main.go
4
main.go
|
@ -1,7 +1,7 @@
|
||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/Alexis211/nomad-driver-exec2/exec2"
|
"github.com/Alexis211/nomad-driver-exec2/nix2"
|
||||||
|
|
||||||
"github.com/hashicorp/go-hclog"
|
"github.com/hashicorp/go-hclog"
|
||||||
"github.com/hashicorp/nomad/plugins"
|
"github.com/hashicorp/nomad/plugins"
|
||||||
|
@ -14,5 +14,5 @@ func main() {
|
||||||
|
|
||||||
// factory returns a new instance of a nomad driver plugin
|
// factory returns a new instance of a nomad driver plugin
|
||||||
func factory(log hclog.Logger) interface{} {
|
func factory(log hclog.Logger) interface{} {
|
||||||
return exec2.NewPlugin(log)
|
return nix2.NewPlugin(log)
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
package exec2
|
package nix2
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
|
@ -27,7 +27,7 @@ import (
|
||||||
|
|
||||||
const (
|
const (
|
||||||
// pluginName is the name of the plugin
|
// pluginName is the name of the plugin
|
||||||
pluginName = "exec2"
|
pluginName = "nix2"
|
||||||
|
|
||||||
// fingerprintPeriod is the interval at which the driver will send fingerprint responses
|
// fingerprintPeriod is the interval at which the driver will send fingerprint responses
|
||||||
fingerprintPeriod = 30 * time.Second
|
fingerprintPeriod = 30 * time.Second
|
|
@ -1,4 +1,4 @@
|
||||||
package exec2
|
package nix2
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
|
@ -1,4 +1,4 @@
|
||||||
package exec2
|
package nix2
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"sync"
|
"sync"
|
Loading…
Reference in New Issue