Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for NewSDSWriter (0.22 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
    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.PrintSecretItems(tt.items)
    			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)
  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 {
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Thu Feb 29 20:46:41 GMT 2024
    - 7.4K bytes
    - Viewed (0)
Back to top