Rename driver to nix2

This commit is contained in:
Alex 2022-11-29 09:46:43 +01:00
parent 14bd8f2010
commit 153b8f1b9d
Signed by: lx
GPG Key ID: 0E496D15096376BE
7 changed files with 9 additions and 9 deletions

4
.gitignore vendored
View File

@ -1,2 +1,2 @@
nomad-driver-exec2
exec2-driver
nomad-driver-*
*-driver

View File

@ -1,4 +1,4 @@
PLUGIN_BINARY=hello-driver
PLUGIN_BINARY=nix2-driver
export GO111MODULE=on
default: build

View File

@ -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)
}

View File

@ -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

View File

@ -1,4 +1,4 @@
package exec2
package nix2
import (
"context"

View File

@ -1,4 +1,4 @@
package exec2
package nix2
import (
"sync"