github.com/kubevela/workflow@v0.6.0/api/v1alpha1/event.go (about)

     1  /*
     2  Copyright 2022 The KubeVela Authors.
     3  
     4  Licensed under the Apache License, Version 2.0 (the "License");
     5  you may not use this file except in compliance with the License.
     6  You may obtain a copy of the License at
     7  
     8  	http://www.apache.org/licenses/LICENSE-2.0
     9  
    10  Unless required by applicable law or agreed to in writing, software
    11  distributed under the License is distributed on an "AS IS" BASIS,
    12  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    13  See the License for the specific language governing permissions and
    14  limitations under the License.
    15  */
    16  
    17  package v1alpha1
    18  
    19  const (
    20  	// ReasonExecute is the reason for executing a workflow
    21  	ReasonExecute = "Execute"
    22  	// ReasonGenerate is the reason for generating a workflow
    23  	ReasonGenerate = "Generate"
    24  )
    25  
    26  const (
    27  	// MessageSuccessfully is the message for successfully
    28  	MessageSuccessfully = "WorkflowRun finished successfully"
    29  	// MessageTerminated is the message for terminated
    30  	MessageTerminated = "WorkflowRun finished with termination"
    31  	// MessageFailed is the message for failed
    32  	MessageFailed = "WorkflowRun finished with failure"
    33  	// MessageFailedGenerate is the message for failed to generate
    34  	MessageFailedGenerate = "fail to generate workflow runners"
    35  	// MessageFailedExecute is the message for failed to execute
    36  	MessageFailedExecute = "fail to execute"
    37  )