Documentation ¶
Overview ¶
Package constant contains types and constants used by the ccv3 package.
Constant Naming Conventions:
The standard naming for a constant is <Constant Type><Enum Name>. The only exception is 'state' types, where the word 'state' is omitted.
For Example:
Constant Type: PackageType Enum Name: Bits Enum Value: "bits" const PackageTypeBits PackageType = "bits" Constant Type: PackageState Enum Name: Expired Enum Value: "EXPIRED" const PackageExpired PackageState = "EXPIRED"
Index ¶
Constants ¶
const ( // AutodetectBuildpackValueDefault is used to unset the buildpack values on // an application. AutodetectBuildpackValueDefault = "default" // AutodetectBuildpackValueNull is used to unset the buildpack values on an // application. AutodetectBuildpackValueNull = "null" )
const ProcessHealthCheckEndpointDefault = "/"
ProcessHealthCheckEndpointDefault is the default HTTP endpoint used for the HTTP health check in the runtime.
const ProcessTypeWeb = "web"
ProcessTypeWeb represents the "web" process type.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppLifecycleType ¶
type AppLifecycleType string
AppLifecycleType informs the platform of how to build droplets and run apps.
const ( // AppLifecycleTypeBuildpack will use a droplet and a rootfs to run the app. AppLifecycleTypeBuildpack AppLifecycleType = "buildpack" // AppLifecycleTypeDocker will pull a docker image from a registry to run an // app. AppLifecycleTypeDocker AppLifecycleType = "docker" )
type ApplicationState ¶
type ApplicationState string
ApplicationState represents the current desired state of the app.
const ( // ApplicationStopped is a desired 'stopped' state. ApplicationStopped ApplicationState = "STOPPED" // ApplicationStarted is a desired 'started' state. ApplicationStarted ApplicationState = "STARTED" )
type BuildState ¶
type BuildState string
BuildState represents the current state of the build.
const ( // BuildFailed is when the build has failed/erred during staging. BuildFailed BuildState = "FAILED" // BuildStaged is when the build has successfully been staged. BuildStaged BuildState = "STAGED" // BuildStaging is when the build is in the process of being staged. BuildStaging BuildState = "STAGING" )
type DeploymentState ¶
type DeploymentState string
A zero down time deployment used to push new apps without restart
const ( // Deployment is in state 'DEPLOYING' DeploymentDeploying DeploymentState = "DEPLOYING" // Deployment is in state 'CANCELED' DeploymentCanceled DeploymentState = "CANCELED" // Deployment is in state 'DEPLOYED' DeploymentDeployed DeploymentState = "DEPLOYED" )
type DropletState ¶
type DropletState string
DropletState is the state of the droplet.
const ( // DropletStaged is a droplet that has been properly processed. DropletStaged DropletState = "STAGED" // DropletFailed is a droplet that had failed the staging process. DropletFailed DropletState = "FAILED" // DropletCopying is a droplet that's being copied from another droplet. DropletCopying DropletState = "COPYING" // DropletExpired is a droplet that has expired and is no longer in the // system. DropletExpired DropletState = "EXPIRED" )
type HealthCheckType ¶
type HealthCheckType string
HealthCheckType is the manner in which Cloud Foundry verifies the app's status.
const ( // 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. HTTP HealthCheckType = "http" // Port means that CF will make a TCP connection to the port of ports configured. Useful if the app can receive TCP connections. Port HealthCheckType = "port" // Process means that Diego ensures that the process(es) stay running. Useful if the app cannot support TCP connections. Process HealthCheckType = "process" )
type JobState ¶
type JobState string
JobState is the current state of a job.
const ( // JobComplete is when the job is no longer and it was successful. JobComplete JobState = "COMPLETE" // JobFailed is when the job is no longer running due to a failure. JobFailed JobState = "FAILED" // JobProcessing is when the job is waiting to be run. JobProcessing JobState = "PROCESSING" )
type PackageState ¶
type PackageState string
PackageState represents the state of a package.
const ( // PackageProcessingUpload is a package that's being process by the CC. PackageProcessingUpload PackageState = "PROCESSING_UPLOAD" // PackageReady is a package that's ready to use. PackageReady PackageState = "READY" // PackageFailed is a package that has failed to be constructed. PackageFailed PackageState = "FAILED" // PackageAwaitingUpload is a package that does not have any bits or settings // yet. PackageAwaitingUpload PackageState = "AWAITING_UPLOAD" // PackageCopying is a package that's being copied from another package. PackageCopying PackageState = "COPYING" // PackageExpired is a package that has expired and is no longer in the // system. PackageExpired PackageState = "EXPIRED" )
type PackageType ¶
type PackageType string
PackageType represents the type of package.
const ( // PackageTypeBits is used to upload source code for an app. PackageTypeBits PackageType = "bits" // PackageTypeDocker references a docker image from a registry. PackageTypeDocker PackageType = "docker" )
type ProcessInstanceState ¶
type ProcessInstanceState string
ProcessInstanceState is the state of a given process.
const ( // ProcessInstanceRunning is when the process is running normally. ProcessInstanceRunning ProcessInstanceState = "RUNNING" // ProcessInstanceCrashed is when the process has crashed. ProcessInstanceCrashed ProcessInstanceState = "CRASHED" // ProcessInstanceStarting is when the process is starting up. ProcessInstanceStarting ProcessInstanceState = "STARTING" // ProcessInstanceDown is when the process has gone down. ProcessInstanceDown ProcessInstanceState = "DOWN" )
type RelationshipType ¶
type RelationshipType string
RelationshipType represetns the Cloud Controller To-One resource targetted by a relationship.
const ( // RelationshipTypeApplication is a relationship with a Cloud Controller // application. RelationshipTypeApplication RelationshipType = "app" // RelationshipTypeSpace is a relationship with a CloudController space. RelationshipTypeSpace RelationshipType = "space" )
type TaskState ¶
type TaskState string
TaskState represents the state of the task
const ( // TaskPending is when the task is pending. TaskPending TaskState = "PENDING" // TaskRunning is when the task is running. TaskRunning TaskState = "RUNNING" // TaskSucceeded is when the task succeeded. TaskSucceeded TaskState = "SUCCEEDED" // TaskCanceling is when the task is canceling. TaskCanceling TaskState = "CANCELING" // TaskFailed is when the task Failed. TaskFailed TaskState = "FAILED" )