code: func (actor Actor) SetTarget(settings TargetSettings) (Warnings, error) {
  	if actor.Config.Target() == settings.URL && actor.Config.SkipSSLValidation() == settings.SkipSSLValidation {
  		return nil, nil
  	}
  
  	warnings, err := actor.CloudControllerClient.TargetCF(ccv2.TargetSettings(settings))
  	if err != nil {
  		return Warnings(warnings), err
  	}
  
  	actor.Config.SetTargetInformation(
  		actor.CloudControllerClient.API(),
  		actor.CloudControllerClient.APIVersion(),
  		actor.CloudControllerClient.AuthorizationEndpoint(),
  		actor.CloudControllerClient.MinCLIVersion(),
  		actor.CloudControllerClient.DopplerEndpoint(),
  		actor.CloudControllerClient.RoutingEndpoint(),
  		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.