Documentation ¶
Index ¶
- func NewDefaultTableConvertor(defaultQualifiedResource schema.GroupResource) rest.TableConvertor
- type ClusterTableGenerator
- func (generator *ClusterTableGenerator) GenerateTable(obj runtime.Object, options printers.GenerateOptions) (*metav1.Table, error)
- func (generator *ClusterTableGenerator) TableHandler(columnDefinitions []metav1.TableColumnDefinition, printFunc interface{}) error
- func (generator *ClusterTableGenerator) With(fns ...func(printers.PrintHandler)) *ClusterTableGenerator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewDefaultTableConvertor ¶
func NewDefaultTableConvertor(defaultQualifiedResource schema.GroupResource) rest.TableConvertor
NewDefaultTableConvertor creates a default convertor; the provided resource is used for error messages if no resource info can be determined from the context passed to ConvertToTable.
Types ¶
type ClusterTableGenerator ¶
type ClusterTableGenerator struct {
*printers.HumanReadableGenerator
}
func NewClusterTableGenerator ¶
func NewClusterTableGenerator() *ClusterTableGenerator
func (*ClusterTableGenerator) GenerateTable ¶
func (generator *ClusterTableGenerator) GenerateTable(obj runtime.Object, options printers.GenerateOptions) (*metav1.Table, error)
func (*ClusterTableGenerator) TableHandler ¶
func (generator *ClusterTableGenerator) TableHandler(columnDefinitions []metav1.TableColumnDefinition, printFunc interface{}) error
func (*ClusterTableGenerator) With ¶
func (generator *ClusterTableGenerator) With(fns ...func(printers.PrintHandler)) *ClusterTableGenerator
Click to show internal directories.
Click to hide internal directories.