github.com/oam-dev/kubevela@v1.9.11/pkg/definition/gen_sdk/testdata/one_of.cue (about) 1 import ( 2 "vela/op" 3 "encoding/base64" 4 ) 5 6 "one_of": { 7 type: "workflow-step" 8 description: "Send notifications to Email, DingTalk, Slack, Lark or webhook in your workflow. For test one_of" 9 } 10 template: { 11 parameter: { 12 // +usage=Please fulfill its url and message if you want to send Lark messages 13 lark?: { 14 // +usage=Specify the the lark url, you can either sepcify it in value or use secretRef 15 url: close({ 16 // +usage=the url address content in string 17 value: string 18 }) | close({ 19 secretRef: { 20 // +usage=name is the name of the secret 21 name: string 22 // +usage=key is the key in the secret 23 key: string 24 } 25 }) 26 } 27 } 28 }