-
Notifications
You must be signed in to change notification settings - Fork 14
/
errors.go
36 lines (33 loc) · 2.48 KB
/
errors.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
27
28
29
30
31
32
33
34
35
36
package circleci
import "errors"
var (
ErrUnauthorized = errors.New("unauthorized")
ErrNotFound = errors.New("not found")
ErrRequiredEitherOrganizationIDOrSlug = errors.New("either organization ID or slug is required")
ErrRequiredContextID = errors.New("context ID is required")
ErrRequiredEnvironmentVariableName = errors.New("environment variable name is required")
ErrRequiredEnvironmentVariableValue = errors.New("missing environment variable value")
ErrRequiredProjectSlug = errors.New("project slug is required")
ErrRequiredProjectCheckoutKeyType = errors.New("project checkout key type is required")
ErrRequiredProjectCheckoutKeyFingerprint = errors.New("project checkout key fingerprint is required")
ErrRequiredProjectVariableName = errors.New("project variable name is required")
ErrRequiredProjectVariableValue = errors.New("project variable value is required")
ErrRequiredUserID = errors.New("user id is required")
ErrRequiredWorkflowID = errors.New("workflow id is required")
ErrRequiredApprovalRequestID = errors.New("approval request id (the id of the job being approved) is required")
ErrRequiredPipelineContinuationKey = errors.New("pipeline continuation key is required")
ErrRequiredPipelineConfiguration = errors.New("pipeline configuration is required")
ErrRequiredPipelinePipelineID = errors.New("pipeline ID is required")
ErrRequiredPipelineNumber = errors.New("pipeline number is required")
ErrRequiredJobNumber = errors.New("job number is required")
ErrRequiredWorkflowName = errors.New("workflow name is required")
ErrRequiredJobName = errors.New("job name is required")
ErrRequiredWebhookEvents = errors.New("webhook events is required")
ErrRequiredWebhookName = errors.New("webhook name is required")
ErrRequiredWebhookID = errors.New("webhook ID is required")
ErrRequiredWebhookURL = errors.New("webhook URL is required")
ErrRequiredWebhookVerifyTLS = errors.New("webhook verifyTLS is required")
ErrRequiredWebhookSigningSecret = errors.New("webhook signingSecret is required")
ErrRequiredWebhookScopeID = errors.New("webhook scopeID is required")
ErrRequiredWebhookScopeType = errors.New("webhook scopeType is required")
)