nomad-driver-nix2/main.go

19 lines
342 B
Go
Raw Normal View History

2022-11-28 10:33:28 +00:00
package main
import (
2022-11-29 08:46:43 +00:00
"github.com/Alexis211/nomad-driver-exec2/nix2"
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-29 08:46:43 +00:00
return nix2.NewPlugin(log)
2022-11-28 10:33:28 +00:00
}