code: func getApplist(manifest *schema.PodManifest) []*v1alpha.App {
  	var apps []*v1alpha.App
  	for _, app := range manifest.Apps {
  		img := &v1alpha.Image{
  			BaseFormat: &v1alpha.ImageFormat{
  				// Only support appc image now. If it's a docker image, then it
  				// will be transformed to appc before storing in the disk store.
  				Type:    v1alpha.ImageType_IMAGE_TYPE_APPC,
  				Version: schema.AppContainerVersion.String(),
  			},
  			Id: app.Image.ID.String(),
  			// Only image format and image ID are returned in 'ListPods()'.
  		}
  
  		apps = append(apps, &v1alpha.App{
  			Name:        app.Name.String(),
  			Image:       img,
  			Annotations: convertAnnotationsToKeyValue(app.Annotations),
  			State:       v1alpha.AppState_APP_STATE_UNDEFINED,
  			ExitCode:    -1,
  		})
  	}
  	return apps
  }
docs: // getApplist returns a list of apps in the pod.