Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for PrintDiffs (0.18 sec)

  1. 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:
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Fri Apr 21 14:17:23 GMT 2023
    - 4.1K bytes
    - Viewed (0)
  2. 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)
    		})
    	}
    }
    
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Fri May 29 20:42:01 GMT 2020
    - 4.9K bytes
    - Viewed (0)
Back to top