aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2022-11-29 09:46:43 +0100
committerAlex Auvolat <alex@adnab.me>2022-11-29 09:46:43 +0100
commit153b8f1b9d52e7e5a6d35dfbd4ff4ff359a0dee7 (patch)
tree8d2fa2580f7f2e3bd64a8d7c0b80fd2c8c5c7c92
parent14bd8f2010c3a1f90c6d1297f47ebbf46ee87dde (diff)
downloadnomad-driver-nix2-153b8f1b9d52e7e5a6d35dfbd4ff4ff359a0dee7.tar.gz
nomad-driver-nix2-153b8f1b9d52e7e5a6d35dfbd4ff4ff359a0dee7.zip
Rename driver to nix2
-rw-r--r--.gitignore4
-rw-r--r--GNUmakefile2
-rw-r--r--main.go4
-rw-r--r--nix2/driver.go (renamed from exec2/driver.go)4
-rw-r--r--nix2/handle.go (renamed from exec2/handle.go)2
-rwxr-xr-xnix2/pull-upstream.sh (renamed from exec2/pull-upstream.sh)0
-rw-r--r--nix2/state.go (renamed from exec2/state.go)2
7 files changed, 9 insertions, 9 deletions
diff --git a/.gitignore b/.gitignore
index 39a5816..cb0937f 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,2 @@
-nomad-driver-exec2
-exec2-driver
+nomad-driver-*
+*-driver
diff --git a/GNUmakefile b/GNUmakefile
index 6d84e6b..fc9e222 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -1,4 +1,4 @@
-PLUGIN_BINARY=hello-driver
+PLUGIN_BINARY=nix2-driver
export GO111MODULE=on
default: build
diff --git a/main.go b/main.go
index 3e1e36c..99d94b1 100644
--- a/main.go
+++ b/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)
}
diff --git a/exec2/driver.go b/nix2/driver.go
index fb84f1a..964ff56 100644
--- a/exec2/driver.go
+++ b/nix2/driver.go
@@ -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
diff --git a/exec2/handle.go b/nix2/handle.go
index 9cd1cc3..0bd7a2e 100644
--- a/exec2/handle.go
+++ b/nix2/handle.go
@@ -1,4 +1,4 @@
-package exec2
+package nix2
import (
"context"
diff --git a/exec2/pull-upstream.sh b/nix2/pull-upstream.sh
index a797951..a797951 100755
--- a/exec2/pull-upstream.sh
+++ b/nix2/pull-upstream.sh
diff --git a/exec2/state.go b/nix2/state.go
index 277e336..a846ea4 100644
--- a/exec2/state.go
+++ b/nix2/state.go
@@ -1,4 +1,4 @@
-package exec2
+package nix2
import (
"sync"