Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( //ErrApplicationNotFound - ErrApplicationNotFound = newByMessage(404, 11001, "application not found") //ErrApplicationExist - ErrApplicationExist = newByMessage(400, 11002, "application already exists") //ErrCreateNeedCorrectAppID ErrCreateNeedCorrectAppID = newByMessage(404, 11003, "create service needs correct application ID") //ErrUpdateNeedCorrectAppID ErrUpdateNeedCorrectAppID = newByMessage(404, 11004, "update service needs correct application ID") //ErrDeleteDueToBindService ErrDeleteDueToBindService = newByMessage(400, 11005, "the application cannot be deleted because there are bound services") ErrK8sServiceNameExists = newByMessage(400, 11006, "kubernetes service name already exists") )
tenant application 11000~11099
View Source
var ( //ErrApplicationConfigGroupExist - ErrApplicationConfigGroupExist = newByMessage(409, 11101, "application config group already exist") //ErrConfigGroupServiceExist - ErrConfigGroupServiceExist = newByMessage(409, 11102, "config group under this service already exists") //ErrConfigItemExist - ErrConfigItemExist = newByMessage(409, 11103, "config item under this config group already exist") //ErrServiceNotFound - ErrServiceNotFound = newByMessage(404, 11104, "this service ID cannot be found under this application") )
app config group 11100~11199
View Source
var ( // OK means everything si good. OK = new(200, 200) // StatusFound means the requested resource resides temporarily under a different URI. StatusFound = new(302, 302) // 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 = new(400, 400) // NotFound means the server has not found anything matching the request. NotFound = new(404, 404) // ServerErr means the server encountered an unexpected condition which prevented it from fulfilling the request. ServerErr = new(500, 500) // TokenInvalid - TokenInvalid = new(400, 401) )
View Source
var ( ErrIngressHTTPRuleNotFound = newByMessage(404, 11200, "http rule not found") ErrIngressTCPRuleNotFound = newByMessage(404, 11201, "tcp rule not found") )
service: 11200~11299
View Source
var ( //ErrPortNotFound - ErrPortNotFound = newByMessage(404, 10001, "service port not found") //ErrServiceMonitorNotFound - ErrServiceMonitorNotFound = newByMessage(404, 10101, "service monitor not found") //ErrServiceMonitorNameExist - ErrServiceMonitorNameExist = newByMessage(400, 10102, "service monitor name is exist") // ErrSyncOperation - ErrSyncOperation = newByMessage(409, 10103, "The asynchronous operation is executing") // ErrHorizontalDueToNoChange ErrHorizontalDueToNoChange = newByMessage(400, 10104, "The number of components has not changed, no need to scale") ErrPodNotFound = newByMessage(404, 10105, "pod not found") )
service: 10000~10099
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.