Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for NewSDSWriter (0.1 sec)

  1. istioctl/pkg/writer/compare/sds/writer.go

    var includeConfigType bool
    
    func SetPrintConfigTypeInSummary(p bool) {
    	includeConfigType = p
    }
    
    // NewSDSWriter generates a new instance which conforms to SDSWriter interface
    func NewSDSWriter(w io.Writer, format Format) SDSWriter {
    	return &sdsWriter{
    		w:      w,
    		output: format,
    	}
    }
    
    // sdsWriter is provided concrete implementation of SDSWriter
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Mon Oct 28 19:52:53 UTC 2024
    - 4.8K 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.PrintSecretItems(tt.items)
    			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)
  3. istioctl/pkg/writer/envoy/configdump/configdump.go

    		fmt.Fprintln(c.Stdout, "No active or warming secrets found.")
    		return nil
    	}
    	secretItems, err := sdscompare.GetEnvoySecrets(c.configDump)
    	if err != nil {
    		return err
    	}
    
    	secretWriter := sdscompare.NewSDSWriter(c.Stdout, sdscompare.TABULAR)
    	return secretWriter.PrintSecretItems(secretItems)
    }
    
    func (c *ConfigWriter) PrintFullSummary(cf ClusterFilter, lf ListenerFilter, rf RouteFilter, epf EndpointFilter) error {
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Thu Feb 29 20:46:41 UTC 2024
    - 7.4K bytes
    - Viewed (0)
Back to top