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