printers

package
v0.6.0-beta.1 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

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

Jump to

Keyboard shortcuts

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