github.com/bigcommerce/nomad@v0.9.3-bc/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 }