package table
import "k8s.io/apimachinery/pkg/api/meta/table"
Index ¶
- func ConvertToHumanReadableDateType(timestamp metav1.Time) string
- func MetaToTableRow(obj runtime.Object, rowFn func(obj runtime.Object, m metav1.Object, name, age string) ([]interface{}, error)) ([]metav1.TableRow, error)
Functions ¶
func ConvertToHumanReadableDateType ¶
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.
Source Files ¶
table.go
- Version
- v0.33.0 (latest)
- Published
- Apr 11, 2025
- Platform
- linux/amd64
- Imports
- 5 packages
- Last checked
- 22 minutes ago –
Tools for package owners.