Codebase list nomad-driver-lxc / 49df4ee5-7d50-472c-8fc9-d52f65687fca/main main.go
49df4ee5-7d50-472c-8fc9-d52f65687fca/main

Tree @49df4ee5-7d50-472c-8fc9-d52f65687fca/main (Download .tar.gz)

main.go @49df4ee5-7d50-472c-8fc9-d52f65687fca/mainraw · history · blame

package main

import (
	log "github.com/hashicorp/go-hclog"

	"github.com/hashicorp/nomad-driver-lxc/lxc"
	"github.com/hashicorp/nomad/plugins"
)

func main() {
	// Serve the plugin
	plugins.Serve(factory)
}

// factory returns a new instance of the LXC driver plugin
func factory(log log.Logger) interface{} {
	return lxc.NewLXCDriver(log)
}