- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 47 for outputFormat (0.2 sec)
-
cmd/kubeadm/app/util/output/output.go
return ret } // ToPrinter receives an outputFormat and returns a printer capable of // handling format printing. // Returns error if the specified outputFormat does not match supported formats. func (pf *PrintFlags) ToPrinter() (Printer, error) { outputFormat := "" if pf.OutputFormat != nil { outputFormat = *pf.OutputFormat } if pf.TextPrintFlags != nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Apr 19 08:22:45 UTC 2024 - 8K bytes - Viewed (0) -
staging/src/k8s.io/cli-runtime/pkg/genericclioptions/template_flags_test.go
outputFormat: "go-template-file", templateArg: templateFile.Name(), expectedOutput: "foo", }, { name: "valid output format and invalid template argument results in the templateArg contents as the output", outputFormat: "go-template", templateArg: "invalid", expectedOutput: "invalid", }, { name: "no printer is matched on an invalid outputFormat", outputFormat: "invalid",
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jun 02 09:47:52 UTC 2023 - 5.9K bytes - Viewed (0) -
staging/src/k8s.io/cli-runtime/pkg/genericclioptions/jsonpath_flags_test.go
outputFormat: "jsonpath-as-json={ .metadata.name }", expectedOutput: "foo", }, { name: "valid jsonpath-as-json output format and no --template argument results in an error", outputFormat: "jsonpath-as-json", expectedError: "template format specified but no template given", }, { name: "valid jsonpath-as-json output format and --template argument succeeds", outputFormat: "jsonpath-as-json",
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jun 02 09:47:52 UTC 2023 - 6.7K bytes - Viewed (0) -
staging/src/k8s.io/cli-runtime/pkg/genericclioptions/print_flags.go
// handling --output or --template printing. // Returns false if the specified outputFormat does not match a supported format. // Supported format types can be found in pkg/printers/printers.go func (f *PrintFlags) ToPrinter() (printers.ResourcePrinter, error) { outputFormat := "" if f.OutputFormat != nil { outputFormat = *f.OutputFormat }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 04 00:16:47 UTC 2022 - 5.6K bytes - Viewed (0) -
istioctl/pkg/writer/envoy/configdump/endpoint_test.go
tests := []struct { name string outputFormat string filter EndpointFilter }{ { name: "emptyfilter", outputFormat: "json", filter: EndpointFilter{}, }, { name: "emptyfilter", outputFormat: "yaml", filter: EndpointFilter{}, }, { name: "portfilter", outputFormat: "json", filter: EndpointFilter{ Port: 8080,
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Jul 12 02:25:59 UTC 2022 - 2.4K bytes - Viewed (0) -
staging/src/k8s.io/cli-runtime/pkg/genericclioptions/name_flags_test.go
operation: "patched", }, { name: "no printer is matched on an invalid outputFormat", outputFormat: "invalid", expectNoMatch: true, }, { name: "printer should not match on any other format supported by another printer", outputFormat: "go-template", expectNoMatch: true, }, } for _, tc := range testCases { t.Run(tc.name, func(t *testing.T) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Aug 21 15:08:30 UTC 2018 - 3.1K bytes - Viewed (0) -
staging/src/k8s.io/cli-runtime/pkg/genericclioptions/json_yaml_flags.go
switch outputFormat { case "json": printer = &printers.JSONPrinter{} case "yaml": printer = &printers.YAMLPrinter{} default: return nil, NoCompatiblePrinterError{OutputFormat: &outputFormat, AllowedFormats: f.AllowedFormats()} } if !f.ShowManagedFields { printer = &printers.OmitManagedFieldsPrinter{Delegate: printer} } return printer, nil }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Feb 04 13:00:03 UTC 2022 - 2.5K bytes - Viewed (0) -
staging/src/k8s.io/cli-runtime/pkg/genericclioptions/json_yaml_flags_test.go
} testCases := []struct { name string outputFormat string expectedOutput string expectNoMatch bool }{ { name: "json output format matches a json printer", outputFormat: "json", expectedOutput: "\"name\": \"foo\"", }, { name: "yaml output format matches a yaml printer", outputFormat: "yaml", expectedOutput: "name: foo", }, {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Aug 21 15:08:30 UTC 2018 - 2.4K bytes - Viewed (0) -
operator/cmd/mesh/operator-dump.go
if err := validateOperatorOutputFormatFlag(odArgs.common.outputFormat); err != nil { l.LogAndFatal(fmt.Errorf("unknown output format: %v", odArgs.common.outputFormat)) } _, mstr, err := renderOperatorManifest(args, &odArgs.common) if err != nil { l.LogAndFatal(err) } var output string if output, err = yamlToFormat(mstr, odArgs.common.outputFormat); err != nil { l.LogAndFatal(err) } l.Print(output) }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue May 23 17:08:31 UTC 2023 - 3.6K bytes - Viewed (0) -
staging/src/k8s.io/cli-runtime/pkg/genericclioptions/name_flags.go
} outputFormat = strings.ToLower(outputFormat) switch outputFormat { case "name": namePrinter.ShortOutput = true fallthrough case "": return namePrinter, nil default: return nil, NoCompatiblePrinterError{OutputFormat: &outputFormat, AllowedFormats: f.AllowedFormats()} } } // AddFlags receives a *cobra.Command reference and binds // flags related to name printing to it
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Mar 05 12:19:00 UTC 2021 - 2.5K bytes - Viewed (0)