MCPcopy Index your code
hub / github.com/FairwindsOps/pluto / ExampleInstance_DisplayOutput_custom

Function ExampleInstance_DisplayOutput_custom

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

Source from the content-addressed store, hash-verified

156}
157
158func ExampleInstance_DisplayOutput_custom() {
159 instance := &Instance{
160 TargetVersions: map[string]string{
161 "foo": "v1.16.0",
162 },
163 Outputs: []*Output{
164 testOutput1,
165 testOutput2,
166 },
167 OutputFormat: "custom",
168 Components: []string{"foo"},
169 CustomColumns: []string{"NAMESPACE", "NAME", "DEPRECATED IN", "DEPRECATED", "REPLACEMENT", "VERSION", "KIND", "COMPONENT", "FILEPATH"},
170 }
171 _ = instance.DisplayOutput()
172
173 // Output:
174 // NAMESPACE-------- NAME----------- DEPRECATED IN-- DEPRECATED-- REPLACEMENT-- VERSION------------- KIND-------- COMPONENT-- FILEPATH------
175 // pluto-namespace-- some name one-- v1.9.0--------- true-------- apps/v1------ extensions/v1beta1-- Deployment-- foo-------- path-to-file--
176 // <UNKNOWN>-------- some name two-- v1.9.0--------- true-------- apps/v1------ extensions/v1beta1-- Deployment-- foo-------- <UNKNOWN>-----
177}
178
179func ExampleInstance_DisplayOutput_markdown() {
180 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…