Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for MinimumNArgs (0.6 sec)

  1. pilot/cmd/pilot-agent/app/request.go

    // which interprets the output literally as json document.
    var (
    	requestCmd = &cobra.Command{
    		Use:   "request <method> <path> [<body>]",
    		Short: "Makes an HTTP request to the Envoy admin API",
    		Args:  cobra.MinimumNArgs(2),
    		PreRunE: func(cmd *cobra.Command, args []string) error {
    			if !allowedPorts.Contains(debugRequestPort) {
    				return fmt.Errorf("debug port %d is not in allowed list %v", debugRequestPort, sets.SortedList(allowedPorts))
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Dec 08 03:13:05 UTC 2023
    - 2K bytes
    - Viewed (0)
Back to top