File tree 4 files changed +49
-5
lines changed
4 files changed +49
-5
lines changed Original file line number Diff line number Diff line change @@ -3,9 +3,11 @@ module github.com/gitpod-io/gitpod-sdk-go
3
3
go 1.21
4
4
5
5
require (
6
- github.com/google/uuid v1.3.0 // indirect
7
- github.com/tidwall/gjson v1.14.4 // indirect
6
+ github.com/tidwall/gjson v1.14.4
7
+ github.com/tidwall/sjson v1.2.5
8
+ )
9
+
10
+ require (
8
11
github.com/tidwall/match v1.1.1 // indirect
9
12
github.com/tidwall/pretty v1.2.1 // indirect
10
- github.com/tidwall/sjson v1.2.5 // indirect
11
13
)
Original file line number Diff line number Diff line change 1
- github.com/google/uuid v1.3.0 h1:t6JiXgmwXMjEs8VusXIJk2BXHsn+wx8BZdTaoZ5fu7I =
2
- github.com/google/uuid v1.3.0 /go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo =
3
1
github.com/tidwall/gjson v1.14.2 /go.mod h1:/wbyibRr2FHMks5tjHJ5F8dMZh3AcwJEMf5vlfC0lxk =
4
2
github.com/tidwall/gjson v1.14.4 h1:uo0p8EbA09J7RQaflQ1aBRffTR7xedD2bcIVSYxLnkM =
5
3
github.com/tidwall/gjson v1.14.4 /go.mod h1:/wbyibRr2FHMks5tjHJ5F8dMZh3AcwJEMf5vlfC0lxk =
Original file line number Diff line number Diff line change
1
+ package apierror
2
+
3
+ import "github.com/gitpod-io/gitpod-sdk-go/shared"
4
+
5
+ type ErrorCode = shared.ErrorCode
6
+
7
+ const ErrorCodeCanceled = shared .ErrorCodeCanceled
8
+ const ErrorCodeUnknown = shared .ErrorCodeUnknown
9
+ const ErrorCodeInvalidArgument = shared .ErrorCodeInvalidArgument
10
+ const ErrorCodeDeadlineExceeded = shared .ErrorCodeDeadlineExceeded
11
+ const ErrorCodeNotFound = shared .ErrorCodeNotFound
12
+ const ErrorCodeAlreadyExists = shared .ErrorCodeAlreadyExists
13
+ const ErrorCodePermissionDenied = shared .ErrorCodePermissionDenied
14
+ const ErrorCodeResourceExhausted = shared .ErrorCodeResourceExhausted
15
+ const ErrorCodeFailedPrecondition = shared .ErrorCodeFailedPrecondition
16
+ const ErrorCodeAborted = shared .ErrorCodeAborted
17
+ const ErrorCodeOutOfRange = shared .ErrorCodeOutOfRange
18
+ const ErrorCodeUnimplemented = shared .ErrorCodeUnimplemented
19
+ const ErrorCodeInternal = shared .ErrorCodeInternal
20
+ const ErrorCodeUnavailable = shared .ErrorCodeUnavailable
21
+ const ErrorCodeDataLoss = shared .ErrorCodeDataLoss
22
+ const ErrorCodeUnauthenticated = shared .ErrorCodeUnauthenticated
Original file line number Diff line number Diff line change
1
+ package shared
2
+
3
+ type ErrorCode string
4
+
5
+ const (
6
+ ErrorCodeCanceled ErrorCode = "canceled"
7
+ ErrorCodeUnknown ErrorCode = "unknown"
8
+ ErrorCodeInvalidArgument ErrorCode = "invalid_argument"
9
+ ErrorCodeDeadlineExceeded ErrorCode = "deadline_exceeded"
10
+ ErrorCodeNotFound ErrorCode = "not_found"
11
+ ErrorCodeAlreadyExists ErrorCode = "already_exists"
12
+ ErrorCodePermissionDenied ErrorCode = "permission_denied"
13
+ ErrorCodeResourceExhausted ErrorCode = "resource_exhausted"
14
+ ErrorCodeFailedPrecondition ErrorCode = "failed_precondition"
15
+ ErrorCodeAborted ErrorCode = "aborted"
16
+ ErrorCodeOutOfRange ErrorCode = "out_of_range"
17
+ ErrorCodeUnimplemented ErrorCode = "unimplemented"
18
+ ErrorCodeInternal ErrorCode = "internal"
19
+ ErrorCodeUnavailable ErrorCode = "unavailable"
20
+ ErrorCodeDataLoss ErrorCode = "data_loss"
21
+ ErrorCodeUnauthenticated ErrorCode = "unauthenticated"
22
+ )
You can’t perform that action at this time.
0 commit comments