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

     1  package constant
     2  
     3  // JobState is the current state of a job.
     4  type JobState string
     5  
     6  const (
     7  	// JobComplete is when the job is no longer and it was successful.
     8  	JobComplete JobState = "COMPLETE"
     9  	// JobFailed is when the job is no longer running due to a failure.
    10  	JobFailed JobState = "FAILED"
    11  	// JobProcessing is when the job is waiting to be run.
    12  	JobProcessing JobState = "PROCESSING"
    13  	// JobPolling is when the job is waiting on an external resource to do the task
    14  	JobPolling JobState = "POLLING"
    15  )
    16  
    17  // JobErrorCode is the numeric code for a particular error.
    18  type JobErrorCode int64
    19  
    20  const (
    21  	JobErrorCodeBuildpackAlreadyExistsForStack JobErrorCode = 290000
    22  	JobErrorCodeBuildpackInvalid               JobErrorCode = 290003
    23  	JobErrorCodeBuildpackStacksDontMatch       JobErrorCode = 390011
    24  	JobErrorCodeBuildpackStackDoesNotExist     JobErrorCode = 390012
    25  	JobErrorCodeBuildpackZipInvalid            JobErrorCode = 390013
    26  )