func (w *Watcher) PauseDeployment(req *structs.DeploymentPauseRequest, resp *structs.DeploymentUpdateResponse) error {
	watcher, err := w.getOrCreateWatcher(req.DeploymentID)
	if err != nil {
		return err
	}

	return watcher.PauseDeployment(req, resp)
}
// PauseDeployment is used to toggle the pause state on a deployment. If the
// deployment is being unpaused, an evaluation is created.
PauseDeployment is used to toggle the pause state on a deployment. If the
deployment is being unpaused, an evaluation is created.
// PauseDeployment is used to toggle the pause state on a deployment . If the // deployment is being unpaused an evaluation is created .
func (w *Watcher) PauseDeployment(req *structs.DeploymentPauseRequest, resp *structs.DeploymentUpdateResponse) error {
	watcher, err := w.getOrCreateWatcher(req.DeploymentID)
	if err != nil {
		return err
	}
	return watcher.PauseDeployment(req, resp)
}
func ( w * Watcher ) PauseDeployment ( req * structs . DeploymentPauseRequest , resp * structs . DeploymentUpdateResponse ) error { watcher , err := w . getOrCreateWatcher ( req . DeploymentID ) if err != nil { return err } return watcher . PauseDeployment ( req , resp ) }
PauseDeployment is used to toggle the pause state on a deployment.
PauseDeployment is used to toggle the pause state on a deployment .