github.com/wanddynosios/cli/v8@v8.7.9-0.20240221182337-1a92e3a7017f/api/cloudcontroller/ccv3/constant/deployment.go (about)

     1  package constant
     2  
     3  // DeploymentState describes the states a zero down time deployment used to
     4  // push new apps without restart can be in.
     5  type DeploymentState string
     6  
     7  const (
     8  	// DeploymentDeploying means the deployment is in state 'DEPLOYING'
     9  	DeploymentDeploying DeploymentState = "DEPLOYING"
    10  
    11  	// DeploymentCanceled means the deployment is in state 'CANCELED'
    12  	DeploymentCanceled DeploymentState = "CANCELED"
    13  
    14  	// DeploymentDeployed means the deployment is in state 'DEPLOYED'
    15  	DeploymentDeployed DeploymentState = "DEPLOYED"
    16  
    17  	// DeploymentCanceled means the deployment is in state 'CANCELING'
    18  	DeploymentCanceling DeploymentState = "CANCELING"
    19  
    20  	// DeploymentFailing means the deployment is in state 'FAILING'
    21  	DeploymentFailing DeploymentState = "FAILING"
    22  
    23  	// DeploymentFailed means the deployment is in state 'FAILED'
    24  	DeploymentFailed DeploymentState = "FAILED"
    25  )
    26  
    27  // DeploymentStatusReason describes the status reasons a deployment can have
    28  type DeploymentStatusReason string
    29  
    30  const (
    31  	// DeploymentStatusReasonDeployed means the deployment's status.value is
    32  	// 'DEPLOYED'
    33  	DeploymentStatusReasonDeployed DeploymentStatusReason = "DEPLOYED"
    34  
    35  	// DeploymentStatusReasonCanceled means the deployment's status.value is
    36  	// 'CANCELED'
    37  	DeploymentStatusReasonCanceled DeploymentStatusReason = "CANCELED"
    38  
    39  	// DeploymentStatusReasonSuperseded means the deployment's status.value is
    40  	// 'SUPERSEDED'
    41  	DeploymentStatusReasonSuperseded DeploymentStatusReason = "SUPERSEDED"
    42  )
    43  
    44  // DeploymentStatusValue describes the status values a deployment can have
    45  type DeploymentStatusValue string
    46  
    47  const (
    48  	// DeploymentStatusValueActive means the deployment's status.value is
    49  	// 'ACTIVE'
    50  	DeploymentStatusValueActive DeploymentStatusValue = "ACTIVE"
    51  
    52  	// DeploymentStatusValueFinalized means the deployment's status.value is
    53  	// 'FINALIZED'
    54  	DeploymentStatusValueFinalized DeploymentStatusValue = "FINALIZED"
    55  )