- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 79 for args (0.12 sec)
-
istioctl/pkg/admin/istiodconfig_test.go
validationPattern := `^\w+:(debug|error|warn|info|debug)` type args struct { slp string validationPattern string } tests := []struct { name string args args want *ScopeLevelPair wantErr bool }{ { name: "Fail when logs scope-level pair don't match pattern", args: args{validationPattern: validationPattern, slp: "invalid:pattern"}, wantErr: true, },
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Thu Jun 15 15:02:17 GMT 2023 - 6.2K bytes - Viewed (0) -
operator/cmd/mesh/profile-diff_test.go
l := clog.NewConsoleLogger(os.Stdout, os.Stderr, nil) for i, c := range cases { t.Run(fmt.Sprintf("case %d %q", i, c.args), func(t *testing.T) { args := strings.Split(c.args, " ") setFlag := fmt.Sprintf("installPackagePath=%s", snapshotCharts) by := &bytes.Buffer{} _, err := profileDiffInternal(args[len(args)-2], args[len(args)-1], []string{setFlag}, by, l) verifyProfileDiffCommandCaseOutput(t, c, by.String(), err) }) } }
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Wed Jan 10 05:10:03 GMT 2024 - 3.6K bytes - Viewed (1) -
cni/pkg/util/executil.go
"strings" "istio.io/istio/pkg/log" ) type ExecList struct { Cmd string Args []string } func NewExec(cmd string, args []string) *ExecList { return &ExecList{ Cmd: cmd, Args: args, } } func ExecuteOutput(cmd string, args ...string) (string, error) { externalCommand := exec.Command(cmd, args...) stdout := &bytes.Buffer{} stderr := &bytes.Buffer{} externalCommand.Stdout = stdout
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Fri Jan 26 20:34:28 GMT 2024 - 1.8K bytes - Viewed (0) -
operator/cmd/mesh/profile-dump.go
Args: func(cmd *cobra.Command, args []string) error { if len(args) > 1 { return fmt.Errorf("too many positional arguments") } return nil }, RunE: func(cmd *cobra.Command, args []string) error { l := clog.NewConsoleLogger(cmd.OutOrStdout(), cmd.ErrOrStderr(), installerScope) return profileDump(args, pdArgs, l) }, } } func prependHeader(yml string) (string, error) { out, err := tpath.AddSpecRoot(yml)
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Fri Mar 15 01:18:49 GMT 2024 - 7.1K bytes - Viewed (0) -
operator/cmd/mesh/operator.go
} odArgs := &operatorDumpArgs{} oiArgs := &operatorInitArgs{} orArgs := &operatorRemoveArgs{} args := &RootArgs{} odc := operatorDumpCmd(args, odArgs) oic := operatorInitCmd(ctx, args, oiArgs) orc := operatorRemoveCmd(ctx, args, orArgs) addFlags(odc, args) addFlags(oic, args) addFlags(orc, args) addOperatorDumpFlags(odc, odArgs) addOperatorInitFlags(oic, oiArgs) addOperatorRemoveFlags(orc, orArgs)
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Tue Aug 29 14:15:33 GMT 2023 - 1.5K bytes - Viewed (0) -
istioctl/pkg/workload/workload_test.go
}, { description: "Invalid command args - missing service name", args: strings.Split("group create -n bar", " "), expectedException: true, expectedOutput: "Error: expecting a workload name\n", }, { description: "Invalid command args - missing service namespace", args: strings.Split("group create --name foo", " "), expectedException: true,
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Wed Mar 27 16:59:05 GMT 2024 - 14.6K bytes - Viewed (0) -
operator/cmd/mesh/manifest-diff.go
"removed.", Args: func(cmd *cobra.Command, args []string) error { if len(args) != 2 { return fmt.Errorf("diff requires two files or directories") } return nil }, RunE: func(cmd *cobra.Command, args []string) error { var err error var equal bool if diffArgs.compareDir { equal, err = compareManifestsFromDirs(diffArgs.verbose, args[0], args[1],
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Fri Mar 15 01:18:49 GMT 2024 - 5.8K bytes - Viewed (0) -
istioctl/pkg/waypoint/waypoint_test.go
cases := []struct { name string args []string gateways []*gateway.Gateway expectedOutFile string }{ { name: "no gateways", args: strings.Split("list", " "), gateways: []*gateway.Gateway{}, expectedOutFile: "no-gateway", }, { name: "default namespace gateway", args: strings.Split("list", " "), gateways: []*gateway.Gateway{
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Thu Apr 04 15:53:09 GMT 2024 - 4.4K bytes - Viewed (0) -
cni/pkg/nodeagent/server_test.go
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Fri Jan 26 20:34:28 GMT 2024 - 7.8K bytes - Viewed (0) -
istioctl/pkg/checkinject/checkinject.go
`, Args: func(cmd *cobra.Command, args []string) error { if len(args) == 0 && labelPairs == "" || len(args) > 1 { cmd.Println(cmd.UsageString()) return fmt.Errorf("check-inject requires only [<resource-type>/]<resource-name>[.<namespace>], or specify labels flag") } return nil }, RunE: func(cmd *cobra.Command, args []string) error { kubeClient, err := ctx.CLIClient()
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Sat Apr 13 05:23:38 GMT 2024 - 9.3K bytes - Viewed (0)