github.com/sleungcy/cli@v7.1.0+incompatible/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 ) 14 15 // JobErrorCode is the numeric code for a particular error. 16 type JobErrorCode int64 17 18 const ( 19 JobErrorCodeBuildpackAlreadyExistsForStack JobErrorCode = 290000 20 JobErrorCodeBuildpackInvalid JobErrorCode = 290003 21 JobErrorCodeBuildpackStacksDontMatch JobErrorCode = 390011 22 JobErrorCodeBuildpackStackDoesNotExist JobErrorCode = 390012 23 JobErrorCodeBuildpackZipInvalid JobErrorCode = 390013 24 )