utils

package
v0.0.21 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ErrResponse added in v0.0.21

func ErrResponse(err error) *mcp.CallToolResult

func FormatAge added in v0.0.21

func FormatAge(duration time.Duration) string

FormatAge converts a duration to a human-readable age string

func FormatDays added in v0.0.21

func FormatDays(days int) string

FormatDays provides a concise representation of days

func Ptr

func Ptr[T any](v T) *T

func SanitizeObjectMeta added in v0.0.21

func SanitizeObjectMeta(object *metav1.ObjectMeta)

Types

This section is empty.

Jump to

Keyboard shortcuts

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