Files
kubevela/pkg/apiserver/rest/utils/bcode/workflow.go
barnettZQG 964a12bb44 Feat: support manage multiple workflows in one application. (#2533)
* Docs: change swagger json

* Feat: support manage multiple workflows in one application.

* Docs: update swagger doc

* Fix: fix code bug

* Update pkg/apiserver/rest/webservice/workflow.go

Co-authored-by: Tianxin Dong <wuwuglu19@gmail.com>

Co-authored-by: barnettZQG <yiyun.pro>
Co-authored-by: Tianxin Dong <wuwuglu19@gmail.com>
2021-10-26 17:50:30 +08:00

30 lines
1.2 KiB
Go

/*
Copyright 2021 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
// ErrWorkflowNotExist application workflow is not exist
var ErrWorkflowNotExist = NewBcode(404, 20002, "application workflow is not exist")
// ErrWorkflowExist application workflow is exist
var ErrWorkflowExist = NewBcode(404, 20003, "application workflow is exist")
// ErrWorkflowNoDefault application default workflow is not exist
var ErrWorkflowNoDefault = NewBcode(404, 20004, "application default workflow is not exist")
// ErrMustQueryByApp you can only query the Workflow list based on applications.
var ErrMustQueryByApp = NewBcode(404, 20005, "you can only query the Workflow list based on applications.")