nomad-driver-nix2/main.go

19 lines
349 B
Go
Raw Normal View History

2022-11-28 10:33:28 +00:00
package main
import (
2022-11-29 13:44:49 +00:00
"git.deuxfleurs.fr/Deuxfleurs/nomad-driver-nix2/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
}