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 nomad-driver-*
exec2-driver *-driver

View File

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

View File

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

View File

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

View File

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

View File

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