Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // 10000~19999 for global configs. // ErrGenHTTPDomain failed to generate http domain ErrGenHTTPDomain = newCodeWithMsg(10001, "failed to generate http domain") ErrInvalidNodes = newCodeWithMsg(10002, "invalid nodes") // ErrClusterNotFound rainbondcluster not found ErrClusterNotFound = newCodeWithStatus(404, 10003, "rainbondcluster not found") ErrClusterPreCheckNotPass = newCodeWithStatus(400, 10004, "cluster precheck not pass") // 20000~29999 for rainbond package // ErrCreateRainbondPackage failed to create rainbond package ErrCreateRainbondPackage = newCodeWithMsg(20001, "failed to create rainbond package") // 30000~39999 for rainbond volume // ErrCreateRainbondVolume failed to create rainbond volume ErrCreateRainbondVolume = newCodeWithMsg(30001, "failed to create rainbond volume") // 40000~49999 for rainbond component // ErrCreateRainbondVolume failed to create rainbond component ErrCreateRbdComponent = newCodeWithMsg(40001, "failed to create rainbond component") ErrRbdComponentNotFound = newCodeWithStatus(404, 40002, "rbdcomponent not found") )
business code for pkg/openapi/cluster
View Source
var ( // OK means everything si good. OK = newCodeWithMsg(200, "ok") // BadRequest means the request could not be understood by the server due to malformed syntax. // The client SHOULD NOT repeat the request without modifications. BadRequest = newCodeWithMsg(400, "bad request") // NotFound means the server has not found anything matching the request. NotFound = newCode(404) // ServerErr means the server encountered an unexpected condition which prevented it from fulfilling the request. ServerErr = newCode(500) )
View Source
var ( ErrInvalidVersion = newCodeWithStatus(400, 1000, "invalid version") ErrCurrentVersionNotFound = newCodeWithStatus(404, 1001, "current version not found") ErrInvalidCurrentVersion = newCodeWithStatus(400, 1002, "invalid current version") ErrLowerVersion = newCodeWithStatus(400, 1003, "lower version, do not support downgrade") ErrVersionNotFound = newCodeWithStatus(404, 1004, "version not found") ErrReadRbdComponent = newCodeWithStatus(404, 1005, "can't read rbdcomponents") )
business code for pkg/openapi/cluster
Functions ¶
This section is empty.
Types ¶
type Code ¶
type Code struct {
// contains filtered or unexported fields
}
Code represents a business code.
Click to show internal directories.
Click to hide internal directories.