Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for printOptions (0.26 sec)

  1. staging/src/k8s.io/cli-runtime/pkg/printers/tableprinter_test.go

    		object   runtime.Object
    		options  PrintOptions
    		expected string
    	}{
    		// Test non-table default printing for a pod.
    		{
    			object:   testPod,
    			options:  PrintOptions{},
    			expected: "NAME            AGE\ntest-pod-name   <unknown>\n",
    		},
    		// Test non-table default printing for a pod with "NoHeaders" option.
    		{
    			object:   testPod,
    			options:  PrintOptions{NoHeaders: true},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Oct 30 15:08:43 UTC 2022
    - 24.4K bytes
    - Viewed (0)
  2. staging/src/k8s.io/cli-runtime/pkg/printers/tableprinter.go

    // received from watches.
    type HumanReadablePrinter struct {
    	options        PrintOptions
    	lastType       interface{}
    	lastColumns    []metav1.TableColumnDefinition
    	printedHeaders bool
    }
    
    // NewTablePrinter creates a printer suitable for calling PrintObj().
    func NewTablePrinter(options PrintOptions) ResourcePrinter {
    	printer := &HumanReadablePrinter{
    		options: options,
    	}
    	return printer
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Oct 30 15:08:43 UTC 2022
    - 16.7K bytes
    - Viewed (0)
Back to top