code: func (actor Actor) SetTarget(settings TargetSettings) (Warnings, error) {
  	if actor.Config.Target() == settings.URL && actor.Config.SkipSSLValidation() == settings.SkipSSLValidation {
  		return nil, nil
  	}
  	var allWarnings Warnings
  
  	warnings, err := actor.CloudControllerClient.TargetCF(ccv3.TargetSettings(settings))
  	if err != nil {
  		return Warnings(warnings), err
  	}
  	allWarnings = Warnings(warnings)
  	var info ccv3.Info
  
  	info, _, warnings, err = actor.CloudControllerClient.GetInfo()
  	allWarnings = append(allWarnings, Warnings(warnings)...)
  	if err != nil {
  		return allWarnings, err
  	}
  	actor.Config.SetTargetInformation(settings.URL,
  		info.CloudControllerAPIVersion(),
  		info.UAA(),
  		"", // Oldest supported V3 version should be OK
  		info.Logging(),
  		info.Routing(),
  		settings.SkipSSLValidation,
  	)
  	actor.Config.SetTokenInformation("", "", "")
  
  	return Warnings(warnings), nil
  }
docs: // SetTarget targets the Cloud Controller using the client and sets target
  // information in the actor based on the response.