nomad-mirage-plugin/cmd/driver/main.go
2019-09-30 10:26:20 -05:00

21 lines
383 B
Go

// +build linux
package main
import (
log "github.com/hashicorp/go-hclog"
"github.com/hashicorp/nomad/plugins"
"github.com/hashicorp/nomad-driver-skeleton/pkg/plugin"
)
func main() {
// Serve the plugin
plugins.Serve(factory)
}
// factory returns a new instance of a nomad driver plugin
func factory(log log.Logger) interface{} {
return skeleton.NewSkeletonDriver(log)
}