github.com/zoomfoo/nomad@v0.8.5-0.20180907175415-f28fd3a1a056/client/consul/consul.go (about) 1 package consul 2 3 import ( 4 "github.com/hashicorp/nomad/command/agent/consul" 5 ) 6 7 // ConsulServiceAPI is the interface the Nomad Client uses to register and 8 // remove services and checks from Consul. 9 type ConsulServiceAPI interface { 10 RegisterTask(*consul.TaskServices) error 11 RemoveTask(*consul.TaskServices) 12 UpdateTask(old, newTask *consul.TaskServices) error 13 AllocRegistrations(allocID string) (*consul.AllocRegistration, error) 14 }