github.com/kubevela/workflow@v0.6.0/pkg/stdlib/actions/v1/op.cue (about)

     1  import (
     2  	"encoding/json"
     3  	"encoding/base64"
     4  	"strings"
     5  )
     6  
     7  #ConditionalWait: {
     8  	#do: "wait"
     9  
    10  	// +usage=If continue is false, the step will wait for continue to be true.
    11  	continue: bool
    12  	// +usage=Optional message that will be shown in workflow step status, note that the message might be override by other actions.
    13  	message?: string
    14  }
    15  
    16  #Suspend: {
    17  	#do: "suspend"
    18  
    19  	// +usage=Specify the wait duration time to resume automaticlly such as "30s", "1min" or "2m15s"
    20  	duration?: string
    21  	// +usage=Optional message that will be shown in workflow step status, note that the message might be override by other actions.
    22  	message?: string
    23  }
    24  
    25  #Break: {
    26  	#do: "break"
    27  
    28  	// +usage=Optional message that will be shown in workflow step status, note that the message might be override by other actions.
    29  	message?: string
    30  }
    31  
    32  #Fail: {
    33  	#do: "fail"
    34  
    35  	// +usage=Optional message that will be shown in workflow step status, note that the message might be override by other actions.
    36  	message?: string
    37  }
    38  
    39  #Message: {
    40  	#do: "message"
    41  
    42  	// +usage=Optional message that will be shown in workflow step status, note that the message might be override by other actions.
    43  	message?: string
    44  }
    45  
    46  #Apply: kube.#Apply
    47  
    48  #Patch: kube.#Patch
    49  
    50  #ApplyInParallel: kube.#ApplyInParallel
    51  
    52  #Read: kube.#Read
    53  
    54  #List: kube.#List
    55  
    56  #Delete: kube.#Delete
    57  
    58  #DingTalk: #Steps & {
    59  	message: {...}
    60  	dingUrl: string
    61  	do:      http.#Do & {
    62  		method: "POST"
    63  		url:    dingUrl
    64  		request: {
    65  			body: json.Marshal(message)
    66  			header: "Content-Type": "application/json"
    67  		}
    68  	}
    69  }
    70  
    71  #Lark: #Steps & {
    72  	message: {...}
    73  	larkUrl: string
    74  	do:      http.#Do & {
    75  		method: "POST"
    76  		url:    larkUrl
    77  		request: {
    78  			body: json.Marshal(message)
    79  			header: "Content-Type": "application/json"
    80  		}
    81  	}
    82  }
    83  
    84  #Slack: #Steps & {
    85  	message: {...}
    86  	slackUrl: string
    87  	do:       http.#Do & {
    88  		method: "POST"
    89  		url:    slackUrl
    90  		request: {
    91  			body: json.Marshal(message)
    92  			header: "Content-Type": "application/json"
    93  		}
    94  	}
    95  }
    96  
    97  #HTTPDo: http.#Do
    98  
    99  #HTTPGet: http.#Do & {method: "GET"}
   100  
   101  #HTTPPost: http.#Do & {method: "POST"}
   102  
   103  #HTTPPut: http.#Do & {method: "PUT"}
   104  
   105  #HTTPDelete: http.#Do & {method: "DELETE"}
   106  
   107  #ConvertString: util.#String
   108  
   109  #Log: util.#Log
   110  
   111  #DateToTimestamp: time.#DateToTimestamp
   112  
   113  #TimestampToDate: time.#TimestampToDate
   114  
   115  #SendEmail: email.#Send
   116  
   117  // The providers about the config
   118  #CreateConfig: config.#Create
   119  #DeleteConfig: config.#Delete
   120  #ReadConfig:   config.#Read
   121  #ListConfig:   config.#List
   122  
   123  #PromCheck: metrics.#PromCheck
   124  
   125  #PatchK8sObject: util.#PatchK8sObject
   126  
   127  #Steps: {
   128  	#do: "steps"
   129  	...
   130  }
   131  
   132  #Task: task.#Task
   133  
   134  NoExist: _|_
   135  
   136  context: _