MCPcopy Create free account
hub / github.com/FairwindsOps/pluto / ExampleInstance_DisplayOutput_yaml

Function ExampleInstance_DisplayOutput_yaml

pkg/api/output_test.go:240–284  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

238}
239
240func ExampleInstance_DisplayOutput_yaml() {
241 instance := &Instance{
242 TargetVersions: map[string]string{
243 "foo": "v1.16.0",
244 },
245 Outputs: []*Output{
246 testOutput1,
247 testOutput2,
248 },
249 Components: []string{"foo"},
250 OutputFormat: "yaml",
251 }
252 _ = instance.DisplayOutput()
253
254 // Output:
255 // items:
256 // - name: some name one
257 // filePath: path-to-file
258 // namespace: pluto-namespace
259 // api:
260 // version: extensions/v1beta1
261 // kind: Deployment
262 // deprecated-in: v1.9.0
263 // removed-in: v1.16.0
264 // replacement-api: apps/v1
265 // replacement-available-in: v1.10.0
266 // component: foo
267 // deprecated: true
268 // removed: true
269 // replacementAvailable: true
270 // - name: some name two
271 // api:
272 // version: extensions/v1beta1
273 // kind: Deployment
274 // deprecated-in: v1.9.0
275 // removed-in: v1.16.0
276 // replacement-api: apps/v1
277 // replacement-available-in: v1.10.0
278 // component: foo
279 // deprecated: true
280 // removed: true
281 // replacementAvailable: true
282 // target-versions:
283 // foo: v1.16.0
284}
285
286func ExampleInstance_DisplayOutput_csv() {
287 instance := &Instance{

Callers

nothing calls this directly

Calls 1

DisplayOutputMethod · 0.95

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…