github.com/DaAlbrecht/cf-cli@v0.0.0-20231128151943-1fe19bb400b9/actor/v7action/info.go (about)

     1  package v7action
     2  
     3  import "code.cloudfoundry.org/cli/api/cloudcontroller/ccv3"
     4  
     5  type Info ccv3.Info
     6  
     7  func (actor Actor) GetRootResponse() (Info, Warnings, error) {
     8  	info, warnings, err := actor.CloudControllerClient.GetInfo()
     9  	if err != nil {
    10  		return Info{}, Warnings(warnings), err
    11  	}
    12  	return Info(info), Warnings(warnings), nil
    13  }