github.com/manicqin/nomad@v0.9.5/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 RegisterWorkload(*consul.WorkloadServices) error 11 RemoveWorkload(*consul.WorkloadServices) 12 UpdateWorkload(old, newTask *consul.WorkloadServices) error 13 AllocRegistrations(allocID string) (*consul.AllocRegistration, error) 14 UpdateTTL(id, output, status string) error 15 }