table

package
v0.28.2 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2026 License: MIT Imports: 10 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	FuncMap = map[string]any{
		"ago":          FormatCreated,
		"until":        FormatUntil,
		"json":         FormatJSON,
		"jsoncompact":  FormatJSONCompact,
		"yaml":         FormatYAML,
		"boolToStar":   BoolToStar,
		"array":        ToArray,
		"arrayFirst":   ToArrayFirst,
		"arrayNoSpace": ToArrayNoSpace,
		"graph":        Graph,
		"pointer":      Pointer,
		"fullID":       FormatID,
		"alias":        Noop,
		"ownerName":    OwnerReferenceName,
	}
)

Functions

func BoolToStar

func BoolToStar(obj any) (string, error)

func FormatCreated

func FormatCreated(obj any) string

func FormatID

func FormatID(obj kclient.Object) (string, error)

func FormatJSON

func FormatJSON(data any) (string, error)

func FormatJSONCompact

func FormatJSONCompact(data any) (string, error)

func FormatUntil

func FormatUntil(data metav1.Time) string

func FormatYAML

func FormatYAML(data any) (string, error)

func Graph

func Graph(value int) (string, error)

func Noop

func Noop(any) string

func OwnerReferenceName

func OwnerReferenceName(obj metav1.Object) string

func Pointer

func Pointer(data any) string

func SimpleFormat

func SimpleFormat(values [][]string) (string, string)

func ToArray

func ToArray(s []string) (string, error)

func ToArrayFirst

func ToArrayFirst(s []string) (string, error)

func ToArrayNoSpace

func ToArrayNoSpace(s []string) (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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