func (r *StateRestore) DeploymentRestore(deployment *structs.Deployment) error {
	if err := r.txn.Insert("deployment", deployment); err != nil {
		return fmt.Errorf("deployment insert failed: %v", err)
	}
	return nil
}
// DeploymentRestore is used to restore a deployment
DeploymentRestore is used to restore a deployment
// DeploymentRestore is used to restore a deployment
func (r *StateRestore) DeploymentRestore(deployment *structs.Deployment) error {
	if err := r.txn.Insert("deployment", deployment); err != nil {
		return fmt.Errorf("deployment insert failed: %v", err)
	}
	return nil
}
func ( r * StateRestore ) DeploymentRestore ( deployment * structs . Deployment ) error { if err := r . txn . Insert ( " " , deployment ) ; err != nil { return fmt . Errorf ( " " , err ) } return nil }
DeploymentRestore is used to restore a deployment
DeploymentRestore is used to restore a deployment