github.com/oam-dev/kubevela@v1.9.11/pkg/stdlib/ql.cue (about)

     1  #Read: {
     2  	#do:       "read"
     3  	#provider: "kube"
     4  
     5  	// +usage=The cluster to use
     6  	cluster: *"" | string
     7  	// +usage=The resource to read, this field will be filled with the resource read from the cluster after the action is executed
     8  	value?: {...}
     9  	...
    10  }
    11  
    12  #List: {
    13  	#do:       "list"
    14  	#provider: "kube"
    15  
    16  	// +usage=The cluster to use
    17  	cluster: *"" | string
    18  	// +usage=The resource to list
    19  	resource: {
    20  		// +usage=The api version of the resource
    21  		apiVersion: string
    22  		// +usage=The kind of the resource
    23  		kind: string
    24  	}
    25  	// +usage=The filter to list the resources
    26  	filter?: {
    27  		// +usage=The namespace to list the resources
    28  		namespace?: *"" | string
    29  		// +usage=The label selector to filter the resources
    30  		matchingLabels?: {...}
    31  	}
    32  	// +usage=The listed resources will be filled in this field after the action is executed
    33  	list?: {...}
    34  	...
    35  }
    36  
    37  #Delete: {
    38  	#do:       "delete"
    39  	#provider: "kube"
    40  
    41  	// +usage=The cluster to use
    42  	cluster: *"" | string
    43  	// +usage=The resource to delete
    44  	value: {
    45  		// +usage=The api version of the resource
    46  		apiVersion: string
    47  		// +usage=The kind of the resource
    48  		kind: string
    49  		// +usage=The metadata of the resource
    50  		metadata: {
    51  			// +usage=The name of the resource
    52  			name?: string
    53  			// +usage=The namespace of the resource
    54  			namespace: *"default" | string
    55  		}
    56  	}
    57  	// +usage=The filter to delete the resources
    58  	filter?: {
    59  		// +usage=The namespace to list the resources
    60  		namespace?: string
    61  		// +usage=The label selector to filter the resources
    62  		matchingLabels?: {...}
    63  	}
    64  	...
    65  }
    66  
    67  #ListResourcesInApp: query.#ListResourcesInApp
    68  
    69  #ListAppliedResources: query.#ListAppliedResources
    70  
    71  #CollectPods: query.#CollectPods
    72  
    73  #CollectServices: query.#CollectServices
    74  
    75  #SearchEvents: query.#SearchEvents
    76  
    77  #CollectLogsInPod: query.#CollectLogsInPod
    78  
    79  #CollectServiceEndpoints: query.#CollectServiceEndpoints
    80  
    81  #GetApplicationTree: query.#GetApplicationTree