mirror of
https://github.com/kubevela/kubevela.git
synced 2026-03-06 11:41:41 +00:00
* Feat: Refactoring the API Server module for better layering Signed-off-by: barnettZQG <barnett.zqg@gmail.com> * Fix: code style Signed-off-by: barnettZQG <barnett.zqg@gmail.com> * Fix: code style Signed-off-by: barnettZQG <barnett.zqg@gmail.com> * Fix: fix the lint errors Signed-off-by: barnettZQG <barnett.zqg@gmail.com>
29 lines
1.1 KiB
Go
29 lines
1.1 KiB
Go
/*
|
|
Copyright 2022 The KubeVela Authors.
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
you may not use this file except in compliance with the License.
|
|
You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
See the License for the specific language governing permissions and
|
|
limitations under the License.
|
|
*/
|
|
|
|
package bcode
|
|
|
|
var (
|
|
// ErrRolePermissionCheckFailure means the perm policy is invalid where create or update role
|
|
ErrRolePermissionCheckFailure = NewBcode(400, 15001, "the permissions are invalid")
|
|
// ErrRoleIsExist means the role is exist
|
|
ErrRoleIsExist = NewBcode(400, 15002, "the role name is exist")
|
|
// ErrRoleIsNotExist means the role is not exist
|
|
ErrRoleIsNotExist = NewBcode(400, 15003, "the role is not exist")
|
|
// ErrPermissionNotExist means the permission is not exist
|
|
ErrPermissionNotExist = NewBcode(404, 15004, "the permission is not exist")
|
|
)
|