printers

package
v0.8.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 29, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddAPIServiceHandler added in v0.6.4

func AddAPIServiceHandler(h printers.PrintHandler)

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL