2017-02-01 00:43:57 +00:00
|
|
|
package client
|
|
|
|
|
|
|
|
import (
|
2017-08-07 22:54:05 +00:00
|
|
|
"github.com/hashicorp/nomad/command/agent/consul"
|
2017-02-01 00:43:57 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
// ConsulServiceAPI is the interface the Nomad Client uses to register and
|
|
|
|
// remove services and checks from Consul.
|
|
|
|
type ConsulServiceAPI interface {
|
2018-04-23 23:34:53 +00:00
|
|
|
RegisterTask(*consul.TaskServices) error
|
|
|
|
RemoveTask(*consul.TaskServices)
|
|
|
|
UpdateTask(old, newTask *consul.TaskServices) error
|
2017-08-07 22:54:05 +00:00
|
|
|
AllocRegistrations(allocID string) (*consul.AllocRegistration, error)
|
2017-02-01 00:43:57 +00:00
|
|
|
}
|