{"modulePath":"github.com/orange-cloudfoundry/cloudfoundry-cli","version":"v6.44.0+incompatible","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package constant\n\nPackage constant contains types and constants used by the ccv3 package.\n\nConstant Naming Conventions:\n\nThe standard naming for a constant is \\\u003cConstant Type\u003e\\\u003cEnum Name\u003e. The only exception is 'state' types, where the word 'state' is omitted.\n\nFor Example:\n\n\tConstant Type: PackageType\n\tEnum Name: Bits\n\tEnum Value: \"bits\"\n\tconst PackageTypeBits PackageType = \"bits\"\n\n\tConstant Type: PackageState\n\tEnum Name: Expired\n\tEnum Value: \"EXPIRED\"\n\tconst PackageExpired PackageState = \"EXPIRED\"\n\n## Constants\n\n```go\nconst (\n\t// AutodetectBuildpackValueDefault is used to unset the buildpack values on\n\t// an application.\n\tAutodetectBuildpackValueDefault = \"default\"\n\t// AutodetectBuildpackValueNull is used to unset the buildpack values on an\n\t// application.\n\tAutodetectBuildpackValueNull = \"null\"\n)\n```\n\n```go\nconst (\n\t// BuildpackAwaitingUpload represents the awaiting upload state of a buildpack.\n\tBuildpackAwaitingUpload = \"AWAITING_UPLOAD\"\n\t// BuildpackReady represents the ready state of a buildpack.\n\tBuildpackReady = \"READY\"\n)\n```\n\n```go\nconst MaxNumberOfResourcesForMatching = 5000\n```\nMaxNumberOfResourcesForMatching is the maximum number of resources that can be sent to the /v3/resource\\_match endpoint.\n\n```go\nconst ProcessHealthCheckEndpointDefault = \"/\"\n```\nProcessHealthCheckEndpointDefault is the default HTTP endpoint used for the HTTP health check in the runtime.\n\n```go\nconst ProcessTypeWeb = \"web\"\n```\nProcessTypeWeb represents the \"web\" process type.\n\n## Types\n\n```go\ntype AppLifecycleType string\n```\nAppLifecycleType informs the platform of how to build droplets and run apps.\n\n```go\nconst (\n\t// AppLifecycleTypeBuildpack will use a droplet and a rootfs to run the app.\n\tAppLifecycleTypeBuildpack AppLifecycleType = \"buildpack\"\n\t// AppLifecycleTypeDocker will pull a docker image from a registry to run an\n\t// app.\n\tAppLifecycleTypeDocker AppLifecycleType = \"docker\"\n)\n```\n\n```go\ntype ApplicationState string\n```\nApplicationState represents the current desired state of the app.\n\n```go\nconst (\n\t// ApplicationStopped is a desired 'stopped' state.\n\tApplicationStopped ApplicationState = \"STOPPED\"\n\t// ApplicationStarted is a desired 'started' state.\n\tApplicationStarted ApplicationState = \"STARTED\"\n)\n```\n\n```go\ntype BuildState string\n```\nBuildState represents the current state of the build.\n\n```go\nconst (\n\t// BuildFailed is when the build has failed/erred during staging.\n\tBuildFailed BuildState = \"FAILED\"\n\t// BuildStaged is when the build has successfully been staged.\n\tBuildStaged BuildState = \"STAGED\"\n\t// BuildStaging is when the build is in the process of being staged.\n\tBuildStaging BuildState = \"STAGING\"\n)\n```\n\n```go\ntype DeploymentState string\n```\nDeploymentState describes the states a zero down time deployment used to push new apps without restart can be in.\n\n```go\nconst (\n\t// DeploymentDeploying means the deployment is in state 'DEPLOYING'\n\tDeploymentDeploying DeploymentState = \"DEPLOYING\"\n\n\t// DeploymentCanceled means the deployment is in state 'CANCELED'\n\tDeploymentCanceled DeploymentState = \"CANCELED\"\n\n\t// DeploymentDeployed means the deployment is in state 'DEPLOYED'\n\tDeploymentDeployed DeploymentState = \"DEPLOYED\"\n)\n```\n\n```go\ntype DropletState string\n```\nDropletState is the state of the droplet.\n\n```go\nconst (\n\t// DropletStaged is a droplet that has been properly processed.\n\tDropletStaged DropletState = \"STAGED\"\n\t// DropletFailed is a droplet that had failed the staging process.\n\tDropletFailed DropletState = \"FAILED\"\n\t// DropletCopying is a droplet that's being copied from another droplet.\n\tDropletCopying DropletState = \"COPYING\"\n\t// DropletExpired is a droplet that has expired and is no longer in the\n\t// system.\n\tDropletExpired DropletState = \"EXPIRED\"\n)\n```\n\n```go\ntype HealthCheckType string\n```\nHealthCheckType is the manner in which Cloud Foundry verifies the app's status.\n\n```go\nconst (\n\t// HTTP means that CF will make a GET request to the configured HTTP endpoint on the app's default port. Useful if the app can provide an HTTP 200 response.\n\tHTTP HealthCheckType = \"http\"\n\t// Port means that CF will make a TCP connection to the port of ports configured. Useful if the app can receive TCP connections.\n\tPort HealthCheckType = \"port\"\n\t// Process means that Diego ensures that the process(es) stay running. Useful if the app cannot support TCP connections.\n\tProcess HealthCheckType = \"process\"\n)\n```\n\n```go\ntype JobErrorCode int64\n```\nJobErrorCode is the numeric code for a particular error.\n\n```go\nconst (\n\tJobErrorCodeBuildpackAlreadyExistsForStack     JobErrorCode = 290000\n\tJobErrorCodeBuildpackAlreadyExistsWithoutStack JobErrorCode = 290003\n\tJobErrorCodeBuildpackStacksDontMatch           JobErrorCode = 390011\n\tJobErrorCodeBuildpackStackDoesNotExist         JobErrorCode = 390012\n\tJobErrorCodeBuildpackZipInvalid                JobErrorCode = 390013\n)\n```\n\n```go\ntype JobState string\n```\nJobState is the current state of a job.\n\n```go\nconst (\n\t// JobComplete is when the job is no longer and it was successful.\n\tJobComplete JobState = \"COMPLETE\"\n\t// JobFailed is when the job is no longer running due to a failure.\n\tJobFailed JobState = \"FAILED\"\n\t// JobProcessing is when the job is waiting to be run.\n\tJobProcessing JobState = \"PROCESSING\"\n)\n```\n\n```go\ntype PackageState string\n```\nPackageState represents the state of a package.\n\n```go\nconst (\n\t// PackageProcessingUpload is a package that's being process by the CC.\n\tPackageProcessingUpload PackageState = \"PROCESSING_UPLOAD\"\n\t// PackageReady is a package that's ready to use.\n\tPackageReady PackageState = \"READY\"\n\t// PackageFailed is a package that has failed to be constructed.\n\tPackageFailed PackageState = \"FAILED\"\n\t// PackageAwaitingUpload is a package that does not have any bits or settings\n\t// yet.\n\tPackageAwaitingUpload PackageState = \"AWAITING_UPLOAD\"\n\t// PackageCopying is a package that's being copied from another package.\n\tPackageCopying PackageState = \"COPYING\"\n\t// PackageExpired is a package that has expired and is no longer in the\n\t// system.\n\tPackageExpired PackageState = \"EXPIRED\"\n)\n```\n\n```go\ntype PackageType string\n```\nPackageType represents the type of package.\n\n```go\nconst (\n\t// PackageTypeBits is used to upload source code for an app.\n\tPackageTypeBits PackageType = \"bits\"\n\t// PackageTypeDocker references a docker image from a registry.\n\tPackageTypeDocker PackageType = \"docker\"\n)\n```\n\n```go\ntype ProcessInstanceState string\n```\nProcessInstanceState is the state of a given process.\n\n```go\nconst (\n\t// ProcessInstanceRunning is when the process is running normally.\n\tProcessInstanceRunning ProcessInstanceState = \"RUNNING\"\n\t// ProcessInstanceCrashed is when the process has crashed.\n\tProcessInstanceCrashed ProcessInstanceState = \"CRASHED\"\n\t// ProcessInstanceStarting is when the process is starting up.\n\tProcessInstanceStarting ProcessInstanceState = \"STARTING\"\n\t// ProcessInstanceDown is when the process has gone down.\n\tProcessInstanceDown ProcessInstanceState = \"DOWN\"\n)\n```\n\n```go\ntype RelationshipType string\n```\nRelationshipType represents the Cloud Controller To-One resource targeted by a relationship.\n\n```go\nconst (\n\t// RelationshipTypeApplication is a relationship with a Cloud Controller\n\t// application.\n\tRelationshipTypeApplication RelationshipType = \"app\"\n\n\t// RelationshipTypeSpace is a relationship with a Cloud Controller space.\n\tRelationshipTypeSpace RelationshipType = \"space\"\n\n\t// RelationshipTypeOrganization is a relationship with a Cloud Controller\n\t// organization.\n\tRelationshipTypeOrganization RelationshipType = \"organization\"\n)\n```\n\n```go\ntype TaskState string\n```\nTaskState represents the state of the task\n\n```go\nconst (\n\t// TaskPending is when the task is pending.\n\tTaskPending TaskState = \"PENDING\"\n\t// TaskRunning is when the task is running.\n\tTaskRunning TaskState = \"RUNNING\"\n\t// TaskSucceeded is when the task succeeded.\n\tTaskSucceeded TaskState = \"SUCCEEDED\"\n\t// TaskCanceling is when the task is canceling.\n\tTaskCanceling TaskState = \"CANCELING\"\n\t// TaskFailed is when the task Failed.\n\tTaskFailed TaskState = \"FAILED\"\n)\n```\n\n","path":"github.com/orange-cloudfoundry/cloudfoundry-cli/api/cloudcontroller/ccv3/constant","name":"constant","synopsis":"Package constant contains types and constants used by the ccv3 package.","isRedistributable":true}
