bosh/bosh.go
func (director *BoshDirector) RetrieveTaskStatus(taskID int) (task *Task, err error) {
	endpoint := fmt.Sprintf("https://%s:%d/tasks/%d", director.ip, director.port, taskID)
	httpEntity := director.getEntity(endpoint, http.NO_CONTENT_TYPE)
	request := director.gateway.Get(httpEntity)
	resp, err := request()
	if err != nil {
		return
	}
	return retrieveTaskStatus(resp)
}
func (director *BoshDirector) RetrieveTaskStatus(taskID int) (task *Task, err error) {
	endpoint := fmt.Sprintf("https://%s:%d/tasks/%d", director.ip, director.port, taskID)
	httpEntity := director.getEntity(endpoint, http.NO_CONTENT_TYPE)
	request := director.gateway.Get(httpEntity)
	resp, err := request()
	if err != nil {
		return
	}
	return retrieveTaskStatus(resp)
}
//RetrieveTaskStatus -