Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Success = NewError(0, "成功") ServerError = NewError(10000000, "服务内部错误") InvalidParams = NewError(10000001, "入参错误") NotFound = NewError(10000002, "找不到") TooManyRequests = NewError(10000007, "请求过多") )
View Source
var ( ErrorGetCustomCRDFail = NewError(20010001, "获取自定义 CRD 失败") ErrorGetSidecarCRDFail = NewError(20010002, "获取 Sidecar CRD 失败") ErrorUpdateSidecarCRDFail = NewError(20010003, "更新 Sidecar CRD 失败") )
Functions ¶
This section is empty.
Types ¶
type Error ¶
type Error struct {
// contains filtered or unexported fields
}
func (*Error) StatusCode ¶
func (*Error) WithDetails ¶
Click to show internal directories.
Click to hide internal directories.