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

     1  #PatchK8sObject: {
     2  	#do:       "patch-k8s-object"
     3  	#provider: "util"
     4  	value: {...}
     5  	patch: {...}
     6  	result: {...}
     7  	...
     8  }
     9  
    10  #String: {
    11  	#do:       "string"
    12  	#provider: "util"
    13  
    14  	bt:   bytes
    15  	str?: string
    16  	...
    17  }
    18  
    19  #Log: {
    20  	#do:       "log"
    21  	#provider: "util"
    22  
    23  	// +usage=The data to print in the controller logs
    24  	data?: {...} | string
    25  	// +usage=The log level of the data
    26  	level: *3 | int
    27  	// +usage=The log source of this step. You can specify it from a url or resources. Note that if you set source in multiple op.#Log, only the latest one will work
    28  	source?: close({
    29  		// +usage=Specify the log source url of this step
    30  		url: string
    31  	}) | close({
    32  		// +usage=Specify the log resources of this step
    33  		resources?: [...{
    34  			// +usage=Specify the name of the resource
    35  			name?: string
    36  			// +usage=Specify the cluster of the resource
    37  			cluster?: string
    38  			// +usage=Specify the namespace of the resource
    39  			namespace?: string
    40  			// +usage=Specify the label selector of the resource
    41  			labelSelector?: {...}
    42  		}]
    43  	})
    44  }