github.com/oam-dev/kubevela@v1.9.11/pkg/stdlib/pkgs/query.cue (about) 1 #ListResourcesInApp: { 2 #do: "listResourcesInApp" 3 #provider: "query" 4 app: { 5 name: string 6 namespace: string 7 filter?: { 8 cluster?: string 9 clusterNamespace?: string 10 components?: [...string] 11 kind?: string 12 apiVersion?: string 13 } 14 withStatus?: bool 15 } 16 list?: [...{ 17 cluster: string 18 component: string 19 revision: string 20 object: {...} 21 }] 22 ... 23 } 24 25 #ListAppliedResources: { 26 #do: "listAppliedResources" 27 #provider: "query" 28 app: { 29 name: string 30 namespace: string 31 filter?: { 32 cluster?: string 33 clusterNamespace?: string 34 components?: [...string] 35 kind?: string 36 apiVersion?: string 37 } 38 } 39 list?: [...{ 40 name: string 41 namespace?: string 42 cluster?: string 43 component?: string 44 trait?: string 45 kind?: string 46 uid?: string 47 apiVersion?: string 48 resourceVersion?: string 49 publishVersion?: string 50 deployVersion?: string 51 revision?: string 52 latest?: bool 53 resourceTree?: { 54 ... 55 } 56 }] 57 ... 58 } 59 60 #CollectPods: { 61 #do: "collectResources" 62 #provider: "query" 63 app: { 64 name: string 65 namespace: string 66 filter?: { 67 cluster?: string 68 clusterNamespace?: string 69 components?: [...string] 70 kind: "Pod" 71 apiVersion: "v1" 72 } 73 withTree: true 74 } 75 list: [...{...}] 76 ... 77 } 78 79 #CollectServices: { 80 #do: "collectResources" 81 #provider: "query" 82 app: { 83 name: string 84 namespace: string 85 filter?: { 86 cluster?: string 87 clusterNamespace?: string 88 components?: [...string] 89 kind: "Service" 90 apiVersion: "v1" 91 } 92 withTree: true 93 } 94 list: [...{...}] 95 ... 96 } 97 98 #SearchEvents: { 99 #do: "searchEvents" 100 #provider: "query" 101 value: {...} 102 cluster: string 103 ... 104 } 105 106 #CollectLogsInPod: { 107 #do: "collectLogsInPod" 108 #provider: "query" 109 cluster: string 110 namespace: string 111 pod: string 112 options: { 113 container: string 114 previous: *false | bool 115 sinceSeconds: *null | int 116 sinceTime: *null | string 117 timestamps: *false | bool 118 tailLines: *null | int 119 limitBytes: *null | int 120 } 121 outputs?: { 122 logs?: string 123 err?: string 124 info?: { 125 fromDate: string 126 toDate: string 127 } 128 ... 129 } 130 ... 131 } 132 133 #CollectServiceEndpoints: { 134 #do: "collectServiceEndpoints" 135 #provider: "query" 136 app: { 137 name: string 138 namespace: string 139 filter?: { 140 cluster?: string 141 clusterNamespace?: string 142 components?: [...string] 143 } 144 withTree: true 145 } 146 list?: [...{ 147 endpoint: { 148 protocol: string 149 appProtocol?: string 150 host?: string 151 port: int 152 portName?: string 153 path?: string 154 inner?: bool 155 } 156 ref: {...} 157 cluster?: string 158 component?: string 159 ... 160 }] 161 ... 162 } 163 164 #GetApplicationTree: { 165 #do: "listAppliedResources" 166 #provider: "query" 167 app: { 168 name: string 169 namespace: string 170 filter?: { 171 cluster?: string 172 clusterNamespace?: string 173 components?: [...string] 174 queryNewest?: bool 175 } 176 withTree: true 177 } 178 list?: [...{ 179 name: string 180 namespace?: string 181 cluster?: string 182 component?: string 183 trait?: string 184 kind?: string 185 uid?: string 186 apiVersion?: string 187 resourceVersion?: string 188 publishVersion?: string 189 deployVersion?: string 190 revision?: string 191 latest?: bool 192 ... 193 }] 194 ... 195 }