- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for PrintDiffs (0.09 sec)
-
istioctl/pkg/writer/compare/sds/writer.go
if err != nil { return err } _, err = w.w.Write(out) if err != nil { return err } return nil } // PrintDiffs uses the user supplied output format to determine how to display the diffed secrets func (w *sdsWriter) PrintDiffs(statuses []SecretItemDiff) error { var err error switch w.output { case JSON: err = w.printDiffsJSON(statuses) case TABULAR:
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Mon Oct 28 19:52:53 UTC 2024 - 4.8K bytes - Viewed (0) -
istioctl/pkg/writer/compare/sds/writer_test.go
}, } for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { w := &bytes.Buffer{} mockWriter := NewSDSWriter(w, tt.format) err := mockWriter.PrintDiffs(tt.diffs) if err != nil { t.Errorf("error printing secret items: %v", err) } checkOutput(t, w.String(), tt.expected, tt.unexpected) }) } }
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Fri May 29 20:42:01 UTC 2020 - 4.9K bytes - Viewed (0)