Implement complete workflow execution process
This commit is contained in:
@@ -11,6 +11,16 @@ type Access struct {
|
||||
Usage string `json:"usage"`
|
||||
}
|
||||
|
||||
// 兼容一下原 pocketbase 的 record
|
||||
func (a *Access) GetString(key string) string {
|
||||
switch key {
|
||||
case "name":
|
||||
return a.Name
|
||||
default:
|
||||
return ""
|
||||
}
|
||||
}
|
||||
|
||||
type AliyunAccess struct {
|
||||
AccessKeyId string `json:"accessKeyId"`
|
||||
AccessKeySecret string `json:"accessKeySecret"`
|
||||
|
||||
@@ -11,7 +11,9 @@ type Certificate struct {
|
||||
CertUrl string `json:"certUrl"`
|
||||
CertStableUrl string `json:"certStableUrl"`
|
||||
Output string `json:"output"`
|
||||
Workflow string `json:"workflow"`
|
||||
ExpireAt time.Time `json:"ExpireAt"`
|
||||
NodeId string `json:"nodeId"`
|
||||
}
|
||||
|
||||
type MetaData struct {
|
||||
|
||||
@@ -9,7 +9,7 @@ const (
|
||||
WorkflowNodeTypeStart = "start"
|
||||
WorkflowNodeTypeEnd = "end"
|
||||
WorkflowNodeTypeApply = "apply"
|
||||
WorkflowNodeTypeDeply = "deploy"
|
||||
WorkflowNodeTypeDeploy = "deploy"
|
||||
WorkflowNodeTypeNotify = "notify"
|
||||
WorkflowNodeTypeBranch = "branch"
|
||||
WorkflowNodeTypeCondition = "condition"
|
||||
|
||||
Reference in New Issue
Block a user