{"modulePath":"code.cloudfoundry.org/cli-sapi","version":"v6.51.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 DefaultOriginUaa = \"uaa\"\n```\nDefaultOriginUaa is the default origin used for looking up users by username when no origin is given.\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\t// DeploymentCanceled means the deployment is in state 'CANCELING'\n\tDeploymentCanceling DeploymentState = \"CANCELING\"\n\n\t// DeploymentFailing means the deployment is in state 'FAILING'\n\tDeploymentFailing DeploymentState = \"FAILING\"\n\n\t// DeploymentFailed means the deployment is in state 'FAILED'\n\tDeploymentFailed DeploymentState = \"FAILED\"\n)\n```\n\n```go\ntype DeploymentStatusReason string\n```\nDeploymentStatusReason describes the status reasons a deployment can have\n\n```go\nconst (\n\t// DeploymentStatusReasonDeployed means the deployment's status.value is\n\t// 'DEPLOYED'\n\tDeploymentStatusReasonDeployed DeploymentStatusReason = \"DEPLOYED\"\n\n\t// DeploymentStatusReasonCanceled means the deployment's status.value is\n\t// 'CANCELED'\n\tDeploymentStatusReasonCanceled DeploymentStatusReason = \"CANCELED\"\n\n\t// DeploymentStatusReasonSuperseded means the deployment's status.value is\n\t// 'SUPERSEDED'\n\tDeploymentStatusReasonSuperseded DeploymentStatusReason = \"SUPERSEDED\"\n)\n```\n\n```go\ntype DeploymentStatusValue string\n```\nDeploymentStatusValue describes the status values a deployment can have\n\n```go\nconst (\n\t// DeploymentStatusValueActive means the deployment's status.value is\n\t// 'ACTIVE'\n\tDeploymentStatusValueActive DeploymentStatusValue = \"ACTIVE\"\n\n\t// DeploymentStatusValueFinalized means the deployment's status.value is\n\t// 'FINALIZED'\n\tDeploymentStatusValueFinalized DeploymentStatusValue = \"FINALIZED\"\n)\n```\n\n```go\ntype DeploymentStrategy string\n```\nDeploymentStrategy is the strategy used to push an application.\n\n```go\nconst (\n\t// Default means app will be stopped and started with new droplet.\n\tDeploymentStrategyDefault DeploymentStrategy = \"\"\n\n\t// Rolling means a new web process will be created for the app and instances will roll from the old one to the new one.\n\tDeploymentStrategyRolling DeploymentStrategy = \"rolling\"\n)\n```\n\n```go\ntype DropletState string\n```\nDropletState is the state of the droplet.\n\n```go\nconst (\n\t// DropletAwaitingUpload is a droplet that has been created without a package.\n\tDropletAwaitingUpload DropletState = \"AWAITING_UPLOAD\"\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 EnvironmentVariableGroupName string\n```\n\n```go\nconst (\n\tStagingEnvironmentVariableGroup EnvironmentVariableGroupName = \"staging\"\n\tRunningEnvironmentVariableGroup EnvironmentVariableGroupName = \"running\"\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 IncludedType string\n```\nIncludedType represents the additional resources queried from CloudController using the include parameter\n\n```go\nconst (\n\tIncludedTypeUsers IncludedType = \"users\"\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\tJobErrorCodeBuildpackInvalid               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\t// RelationshipTypeUser is a relationship with a Cloud Controller user.\n\tRelationshipTypeUser RelationshipType = \"user\"\n\n\t// RelationshipTypeQuota is a relationship with a Cloud Controller quota (org quota or space quota).\n\tRelationshipTypeQuota RelationshipType = \"quota\"\n)\n```\n\n```go\ntype RoleType string\n```\nRoleType is the type of a CCV3 role resource.\n\n```go\nconst (\n\tOrgUserRole           RoleType = \"organization_user\"\n\tOrgAuditorRole        RoleType = \"organization_auditor\"\n\tOrgManagerRole        RoleType = \"organization_manager\"\n\tOrgBillingManagerRole RoleType = \"organization_billing_manager\"\n\tSpaceDeveloperRole    RoleType = \"space_developer\"\n\tSpaceAuditorRole      RoleType = \"space_auditor\"\n\tSpaceManagerRole      RoleType = \"space_manager\"\n)\n```\n\n```go\ntype SecurityGroupLifecycle string\n```\nSecurityGroupLifecycle represents the lifecycle phase of a security group binding.\n\n```go\nconst (\n\t// SecurityGroupLifecycleRunning indicates the lifecycle phase running.\n\tSecurityGroupLifecycleRunning SecurityGroupLifecycle = \"running\"\n\n\t// SecurityGroupLifecycleStaging indicates the lifecycle phase staging.\n\tSecurityGroupLifecycleStaging SecurityGroupLifecycle = \"staging\"\n)\n```\n\n```go\ntype ServiceBrokerCredentialsType string\n```\nServiceBrokerCredentialsType represents the available types of credentials\n\n```go\nconst (\n\t// BasicCredentials is when the credentials are of basic type.\n\tBasicCredentials ServiceBrokerCredentialsType = \"basic\"\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":"code.cloudfoundry.org/cli-sapi/api/cloudcontroller/ccv3/constant","name":"constant","synopsis":"Package constant contains types and constants used by the ccv3 package.","isRedistributable":true}
