nomad-driver-nix2/main.go

19 lines
344 B
Go
Raw Normal View History

2022-11-28 10:33:28 +00:00
package main
import (
2022-11-28 11:37:50 +00:00
"github.com/Alexis211/nomad-driver-exec2/exec2"
2022-11-28 10:33:28 +00:00
"github.com/hashicorp/go-hclog"
"github.com/hashicorp/nomad/plugins"
)
func main() {
// Serve the plugin
plugins.Serve(factory)
}
// factory returns a new instance of a nomad driver plugin
func factory(log hclog.Logger) interface{} {
2022-11-28 11:24:07 +00:00
return exec2.NewPlugin(log)
2022-11-28 10:33:28 +00:00
}