forked from cloudfoundry/cli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
job.go
26 lines (22 loc) · 931 Bytes
/
job.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
package constant
// JobState is the current state of a job.
type JobState string
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"
// JobPolling is when the job is waiting on an external resource to do the task
JobPolling JobState = "POLLING"
)
// JobErrorCode is the numeric code for a particular error.
type JobErrorCode int64
const (
JobErrorCodeBuildpackAlreadyExistsForStack JobErrorCode = 290000
JobErrorCodeBuildpackInvalid JobErrorCode = 290003
JobErrorCodeBuildpackStacksDontMatch JobErrorCode = 390011
JobErrorCodeBuildpackStackDoesNotExist JobErrorCode = 390012
JobErrorCodeBuildpackZipInvalid JobErrorCode = 390013
)