Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for GenerateTable (3.47 sec)

  1. pkg/printers/tablegenerator.go

    		fn(h)
    	}
    	return h
    }
    
    // GenerateTable returns a table for the provided object, using the printer registered for that type. It returns
    // a table that includes all of the information requested by options, but will not remove rows or columns. The
    // caller is responsible for applying rules related to filtering rows or columns.
    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/printers/tablegenerator_test.go

    	if err != nil {
    		t.Fatalf("An error occurred when adds a print handler with a given set of columns: %#v", err)
    	}
    
    	obj := TestPrintType{"test object"}
    	table, err := generator.GenerateTable(&obj, GenerateOptions{})
    	if err != nil {
    		t.Fatalf("An error occurred generating the table for custom type: %#v", err)
    	}
    
    	expectedTable := &metav1.Table{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jun 23 15:26:17 UTC 2022
    - 2.7K bytes
    - Viewed (0)
  3. pkg/printers/storage/storage.go

    			if t != nil {
    				noHeaders = t.NoHeaders
    			}
    		default:
    			return nil, fmt.Errorf("unrecognized type %T for table options, can't display tabular output", tableOptions)
    		}
    	}
    	return c.TableGenerator.GenerateTable(obj, printers.GenerateOptions{Wide: true, NoHeaders: noHeaders})
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Nov 26 18:18:18 UTC 2019
    - 1.5K bytes
    - Viewed (0)
Back to top