github.com/lukasheimann/cloudfoundrycli@v7.1.0+incompatible/actor/v7pushaction/set_droplet_for_application.go (about)

     1  package v7pushaction
     2  
     3  func (actor Actor) SetDropletForApplication(pushPlan PushPlan, eventStream chan<- *PushEvent, progressBar ProgressBar) (PushPlan, Warnings, error) {
     4  	eventStream <- &PushEvent{Plan: pushPlan, Event: SettingDroplet}
     5  
     6  	warnings, err := actor.V7Actor.SetApplicationDroplet(pushPlan.Application.GUID, pushPlan.DropletGUID)
     7  	if err != nil {
     8  		return pushPlan, Warnings(warnings), err
     9  	}
    10  
    11  	eventStream <- &PushEvent{Plan: pushPlan, Event: SetDropletComplete}
    12  
    13  	return pushPlan, Warnings(warnings), nil
    14  }