import "code.cloudfoundry.org/cli/cf/models" appReq := models.AppRequirements{ Memory: 128, DiskQuota: 256, }
import "code.cloudfoundry.org/cli/cf/models" serviceReq := models.ServiceInstanceReq{ Name: "my-db-service", ServicePlanGUID: "1234abcd-5678-efgh-ijkl-9012lmno3456", SpaceGUID: "efg7hij8-klm9-nop0-qrst-uvw1xyz23456", AppGUID: "", Params: map[string]interface{}{}, Tags: []string{}, ParamsHash: "", MaintenanceInfo: models.MaintenanceInfo{}, SyslogDrainURL: "", RouteServiceURL: "", PlanVisibility: nil, PlanName: "", Memory: 64, DiskQuota: 128, }The go cf.requirements Factory is part of the Cloud Foundry CLI package (code.cloudfoundry.org/cli/cf).