tableconvertor

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: May 19, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTableConvertor

func NewTableConvertor(columnDefinitions []metav1beta1.TableColumnDefinition, rowFunction RowFunction) rest.TableConvertor

NewTableConvertor creates a TableConvertor with the specified columns and RowFunction, which is used to map an object to those columns.

Types

type RowFunction

type RowFunction func(obj runtime.Object, meta metav1.Object, name, age string) ([]interface{}, error)

RowFunction is a function that maps an object (e.g. ServiceInstance) to an array of values that get printed in columnar form when a user runs kubectl get.

Jump to

Keyboard shortcuts

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