Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for PrintSecretDump (0.27 sec)

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

    import (
    	"encoding/json"
    	"fmt"
    	"math/big"
    	"strings"
    	"text/tabwriter"
    	"time"
    
    	"sigs.k8s.io/yaml"
    
    	"istio.io/istio/pkg/log"
    )
    
    // PrintSecretDump prints just the secret config dump to the ConfigWriter stdout
    func (c *ConfigWriter) PrintSecretDump(outputFormat string) error {
    	if c.ztunnelDump == nil {
    		return fmt.Errorf("config writer has not been primed")
    	}
    	secretDump := c.ztunnelDump.Certificates
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Thu Apr 25 16:38:16 GMT 2024
    - 3.2K bytes
    - Viewed (0)
  2. 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)
  3. istioctl/pkg/writer/envoy/configdump/configdump.go

    		if err != nil {
    			return err
    		}
    		out = string(outbyte)
    	}
    	fmt.Fprintln(c.Stdout, out)
    	return nil
    }
    
    // PrintSecretDump prints just the secret config dump to the ConfigWriter stdout
    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()
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Thu Feb 29 20:46:41 GMT 2024
    - 7.4K bytes
    - Viewed (0)
  4. istioctl/pkg/ztunnelconfig/ztunnelconfig.go

    		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)
    			}
    		}),
    		ValidArgsFunction: completion.ValidPodsNameArgs(ctx),
    	}
    
    	common.attach(cmd)
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Wed May 01 13:11:40 GMT 2024
    - 22.2K bytes
    - Viewed (0)
  5. istioctl/pkg/proxyconfig/proxyconfig.go

    				}
    			}
    			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)
    			}
    		},
    		ValidArgsFunction: completion.ValidPodsNameArgs(ctx),
    	}
    
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Tue Apr 16 03:28:36 GMT 2024
    - 48K bytes
    - Viewed (0)
Back to top