github.com/cloudfoundry-attic/cli-with-i18n@v6.32.1-0.20171002233121-7401370d3b85+incompatible/util/manifest/raw_manifest.go (about) 1 package manifest 2 3 type rawManifest struct { 4 Applications []Application `yaml:"applications"` 5 6 DeprecatedBuildpack interface{} `yaml:"buildpack"` 7 DeprecatedCommand interface{} `yaml:"command"` 8 DeprecatedDiskQuota interface{} `yaml:"disk_quota"` 9 DeprecatedDocker interface{} `yaml:"docker"` 10 DeprecatedDomain interface{} `yaml:"domain"` 11 DeprecatedDomains interface{} `yaml:"domains"` 12 DeprecatedEnv interface{} `yaml:"env"` 13 DeprecatedHealthCheckHTTPEndpoint interface{} `yaml:"health-check-http-endpoint"` 14 DeprecatedHealthCheckTimeout interface{} `yaml:"timeout"` 15 DeprecatedHealthCheckType interface{} `yaml:"health-check-type"` 16 DeprecatedHost interface{} `yaml:"host"` 17 DeprecatedHosts interface{} `yaml:"hosts"` 18 DeprecatedInherit interface{} `yaml:"inherit"` 19 DeprecatedInstances interface{} `yaml:"instances"` 20 DeprecatedMemory interface{} `yaml:"memory"` 21 DeprecatedName interface{} `yaml:"name"` 22 DeprecatedNoHostname interface{} `yaml:"no-hostname"` 23 DeprecatedNoRoute interface{} `yaml:"no-route"` 24 DeprecatedPath interface{} `yaml:"path"` 25 DeprecatedRandomRoute interface{} `yaml:"random-route"` 26 DeprecatedRoutes interface{} `yaml:"routes"` 27 DeprecatedServices interface{} `yaml:"services"` 28 DeprecatedStack interface{} `yaml:"stack"` 29 } 30 31 func (raw rawManifest) containsDeprecatedFields() bool { 32 return raw.DeprecatedBuildpack != nil || 33 raw.DeprecatedCommand != nil || 34 raw.DeprecatedDiskQuota != nil || 35 raw.DeprecatedDocker != nil || 36 raw.DeprecatedDomain != nil || 37 raw.DeprecatedDomains != nil || 38 raw.DeprecatedEnv != nil || 39 raw.DeprecatedHealthCheckHTTPEndpoint != nil || 40 raw.DeprecatedHealthCheckTimeout != nil || 41 raw.DeprecatedHealthCheckType != nil || 42 raw.DeprecatedHost != nil || 43 raw.DeprecatedHosts != nil || 44 raw.DeprecatedInherit != nil || 45 raw.DeprecatedInstances != nil || 46 raw.DeprecatedMemory != nil || 47 raw.DeprecatedName != nil || 48 raw.DeprecatedNoHostname != nil || 49 raw.DeprecatedNoRoute != nil || 50 raw.DeprecatedPath != nil || 51 raw.DeprecatedRandomRoute != nil || 52 raw.DeprecatedRoutes != nil || 53 raw.DeprecatedServices != nil || 54 raw.DeprecatedStack != nil 55 }