code: func ClaimResources(nodeAvailableResources, taskAssigned *[]*api.GenericResource,
  	resSelected []*api.GenericResource) {
  	*taskAssigned = append(*taskAssigned, resSelected...)
  	ConsumeNodeResources(nodeAvailableResources, resSelected)
  }
docs: // ClaimResources adds the specified resources to the task's list
  // and removes them from the node's generic resource list