diff options
-rw-r--r-- | .gitignore | 4 | ||||
-rw-r--r-- | GNUmakefile | 2 | ||||
-rw-r--r-- | main.go | 4 | ||||
-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-x | nix2/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
@@ -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 @@ -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" |