Back to

Package table

Latest Go to latest
Published: Jul 12, 2020 | License: Apache-2.0 | Module:


Package Files

func ConvertToHumanReadableDateType

func ConvertToHumanReadableDateType(timestamp metav1.Time) string

ConvertToHumanReadableDateType returns the elapsed time since timestamp in human-readable approximation.

func MetaToTableRow

func MetaToTableRow(obj runtime.Object, rowFn func(obj runtime.Object, m metav1.Object, name, age string) ([]interface{}, error)) ([]metav1.TableRow, error)

MetaToTableRow converts a list or object into one or more table rows. The provided rowFn is invoked for each accessed item, with name and age being passed to each.

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier