code: func (kc *kubeClient) GetApplication(spaceName string, appName string) (*app.SimpleApp, error) {
  	// Get all deployments of this app for each environment in this space
  	deployments := []*app.SimpleDeployment{}
  	for envName := range kc.envMap {
  		// Only look for the application in environments where the user can deploy applications
  		if kc.CanDeploy(envName) {
  			deployment, err := kc.GetDeployment(spaceName, appName, envName)
  			if err != nil {
  				return nil, err
  			} else if deployment != nil {
  				deployments = append(deployments, deployment)
  			}
  		}
  	}
  
  	result := &app.SimpleApp{
  		Type: "application",
  		Attributes: &app.SimpleAppAttributes{
  			Name:        appName,
  			Deployments: deployments,
  		},
  		ID: appName,
  	}
  	return result, nil
  }
docs: // GetApplication retrieves an application with the given space and application names, with the status
  // of that application's deployment in each environment