2018-06-04 16:40:04 +00:00
|
|
|
package element
|
|
|
|
|
|
|
|
// Shutdown causes the local node to leave the cluster and perform a clean shutdown
|
|
|
|
func (a *Agent) Shutdown() error {
|
|
|
|
if err := a.members.Leave(nodeUpdateTimeout); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
2018-09-14 12:25:35 +00:00
|
|
|
return a.members.Shutdown()
|
2018-06-04 16:40:04 +00:00
|
|
|
}
|