Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 14 of 14 for PrintObj (0.17 sec)

  1. pkg/printers/tablegenerator.go

    	printFunc         reflect.Value
    }
    
    // HumanReadableGenerator is an implementation of TableGenerator used to generate
    // a table for a specific resource. The table is printed with a TablePrinter using
    // PrintObj().
    type HumanReadableGenerator struct {
    	handlerMap map[reflect.Type]*handlerEntry
    }
    
    var _ TableGenerator = &HumanReadableGenerator{}
    var _ PrintHandler = &HumanReadableGenerator{}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jul 26 17:14:05 UTC 2022
    - 5.9K bytes
    - Viewed (0)
  2. pkg/kubectl/cmd/convert/convert.go

    	objects, err := asVersionedObject(infos, !singleItemImplied, specifiedOutputVersion, internalVersionJSONEncoder, o.IOStreams)
    	if err != nil {
    		return err
    	}
    
    	return o.Printer.PrintObj(objects, o.Out)
    }
    
    // asVersionedObject converts a list of infos into a single object - either a List containing
    // the objects as children, or if only a single Object is present, as that object. The provided
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 12 03:21:17 UTC 2023
    - 9.6K bytes
    - Viewed (0)
  3. cmd/kubeadm/app/cmd/upgrade/plan_test.go

    			printer, err := outputFlags.ToPrinter()
    			if err != nil {
    				t.Errorf("failed ToPrinter, err: %+v", err)
    			}
    
    			plan := genUpgradePlan(rt.upgrades, rt.versionStates)
    			if err := printer.PrintObj(plan, rt.buf); err != nil {
    				t.Errorf("unexpected error when print object: %v", err)
    			}
    
    			actualBytes := rt.buf.Bytes()
    			if !bytes.Equal(actualBytes, rt.expectedBytes) {
    				t.Errorf(
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Mar 03 03:03:29 UTC 2024
    - 27.3K bytes
    - Viewed (0)
  4. cmd/kubeadm/app/cmd/token_test.go

    			printer, err := outputFlags.ToPrinter()
    			if err != nil {
    				t.Errorf("can't create printer for output format %s: %+v", tc.outputFormat, err)
    			}
    
    			if err := printer.PrintObj(&token, &buf); err != nil {
    				t.Errorf("unable to print token %s: %+v", token.Token, err)
    			}
    
    			actual := buf.String()
    			if actual != tc.expected {
    				t.Errorf(
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Apr 23 05:47:48 UTC 2024
    - 13.6K bytes
    - Viewed (0)
Back to top