Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for PrintSecretSummary (0.27 sec)

  1. istioctl/pkg/writer/ztunnel/configdump/configdump_test.go

    			if tt.callPrime {
    				cw.Prime(cd)
    			}
    			if tt.wantOutputSecret != "" {
    				err := cw.PrintSecretSummary()
    				if err == nil && tt.wantErr {
    					t.Errorf("PrintSecretSummary (%v) did not produce expected err", tt.name)
    				} else if err != nil && !tt.wantErr {
    					t.Errorf("PrintSecretSummary (%v) produced unexpected err: %v", tt.name, err)
    				}
    				util.CompareContent(t, gotOut.Bytes(), tt.wantOutputSecret)
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Fri Feb 02 18:21:48 GMT 2024
    - 3.6K bytes
    - Viewed (0)
  2. istioctl/pkg/writer/ztunnel/configdump/certificates.go

    		if out, err = yaml.JSONToYAML(out); err != nil {
    			return err
    		}
    	}
    	fmt.Fprintln(c.Stdout, string(out))
    	return nil
    }
    
    // PrintSecretSummary prints a summary of dynamic active secrets from the config dump
    func (c *ConfigWriter) PrintSecretSummary() error {
    	if c.ztunnelDump == nil {
    		return fmt.Errorf("config writer has not been primed")
    	}
    	secretDump := c.ztunnelDump.Certificates
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Tue Apr 23 21:30:30 GMT 2024
    - 3.5K bytes
    - Viewed (0)
  3. istioctl/pkg/writer/envoy/configdump/configdump.go

    		if err != nil {
    			return err
    		}
    		out = string(outbyte)
    	}
    	fmt.Fprintln(c.Stdout, out)
    	return nil
    }
    
    // PrintSecretSummary prints a summary of dynamic active secrets from the config dump
    func (c *ConfigWriter) PrintSecretSummary() error {
    	secretDump, err := c.configDump.GetSecretConfigDump()
    	if err != nil {
    		return err
    	}
    	if len(secretDump.DynamicActiveSecrets) == 0 &&
    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)
  4. istioctl/pkg/writer/configwriter.go

    // See the License for the specific language governing permissions and
    // limitations under the License.
    
    package writer
    
    type ConfigDumpWriter interface {
    	PrintSecretSummary() error
    	PrintSecretDump(outputFormat string) error
    Go
    - Registered: Wed Apr 10 22:53:08 GMT 2024
    - Last Modified: Sun Mar 26 08:26:56 GMT 2023
    - 710 bytes
    - Viewed (0)
  5. istioctl/pkg/writer/envoy/configdump/secret_test.go

    	if err != nil {
    		t.Errorf("error reading test data output file: %v", err)
    	}
    
    	gotOut := &bytes.Buffer{}
    	cw := &ConfigWriter{Stdout: gotOut}
    	err = cw.Prime(configDump)
    	assert.NoError(t, err)
    	err = cw.PrintSecretSummary()
    	assert.NoError(t, err)
    
    	assert.Equal(t, string(expectedOut), gotOut.String())
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Tue Jun 06 15:14:48 GMT 2023
    - 1.5K bytes
    - Viewed (0)
  6. istioctl/pkg/writer/ztunnel/configdump/configdump.go

    		return err
    	}
    	_, _ = c.Stdout.Write([]byte("\n"))
    	if err := c.PrintPolicySummary(PolicyFilter{}); err != nil {
    		return err
    	}
    	_, _ = c.Stdout.Write([]byte("\n"))
    	if err := c.PrintSecretSummary(); err != nil {
    		return err
    	}
    	return nil
    }
    
    func (c *ConfigWriter) PrintFullDump(outputFormat string) error {
    	out := c.FullDump
    	if outputFormat == "yaml" {
    		var err error
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Tue Apr 23 21:30:30 GMT 2024
    - 2.8K bytes
    - Viewed (0)
  7. istioctl/pkg/ztunnelconfig/ztunnelconfig.go

    		Args:    common.validateArgs,
    		RunE: runConfigDump(ctx, common, func(cw *ztunnelDump.ConfigWriter) error {
    			switch common.outputFormat {
    			case summaryOutput:
    				return cw.PrintSecretSummary()
    			case jsonOutput, yamlOutput:
    				return cw.PrintSecretDump(common.outputFormat)
    			default:
    				return fmt.Errorf("output format %q not supported", common.outputFormat)
    			}
    		}),
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Mon Apr 22 15:39:28 GMT 2024
    - 22.2K bytes
    - Viewed (0)
  8. istioctl/pkg/proxyconfig/proxyconfig.go

    					log.Warnf("couldn't parse envoy secrets dump: %v", err)
    				}
    			}
    			if err != nil {
    				return err
    			}
    			switch outputFormat {
    			case summaryOutput:
    				return cw.PrintSecretSummary()
    			case jsonOutput, yamlOutput:
    				return cw.PrintSecretDump(outputFormat)
    			default:
    				return fmt.Errorf("output format %q not supported", outputFormat)
    			}
    		},
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Tue Apr 16 03:28:36 GMT 2024
    - 48K bytes
    - Viewed (0)
Back to top