Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for errorea (0.14 sec)

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

    // Prime loads the config dump into the writer ready for printing
    func (c *ConfigWriter) Prime(b []byte) error {
    	cd := ZtunnelDump{}
    	// TODO(fisherxu): migrate this to jsonpb when issue fixed in golang
    	// Issue to track -> https://github.com/golang/protobuf/issues/632
    	err := json.Unmarshal(b, &cd)
    	if err != nil {
    		return fmt.Errorf("error unmarshalling config dump response from ztunnel: %v", err)
    	}
    	c.ztunnelDump = &cd
    	return nil
    }
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue Apr 23 21:30:30 GMT 2024
    - 2.8K bytes
    - Viewed (0)
  2. istioctl/pkg/writer/envoy/configdump/configdump.go

    func (c *ConfigWriter) PrintSecretDump(outputFormat string) error {
    	if c.configDump == nil {
    		return fmt.Errorf("config writer has not been primed")
    	}
    	secretDump, err := c.configDump.GetSecretConfigDump()
    	if err != nil {
    		return fmt.Errorf("sidecar doesn't support secrets: %v", err)
    	}
    	out, err := protomarshal.ToJSONWithIndent(secretDump, "    ")
    	if err != nil {
    		return fmt.Errorf("unable to marshal secrets in Envoy config dump: %v", err)
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Thu Feb 29 20:46:41 GMT 2024
    - 7.4K bytes
    - Viewed (0)
Back to top