util

package
v0.12.2 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

util package contains utility functions to use in other packages

Index

Constants

This section is empty.

Variables

View Source
var BuildAlpha = "false"

Functions

func AlphaCommandsEnabled added in v0.10.0

func AlphaCommandsEnabled() bool

func HumanDuration

func HumanDuration(d time.Duration) string

adapted from https://github.com/kubernetes/apimachinery/blob/master/pkg/util/duration/duration.go#L48 HumanDuration returns a succinct representation of the provided duration with limited precision for consumption by humans. It provides ~2-3 significant figures of duration.

func RowsForResources added in v0.10.0

func RowsForResources[T any](response *client.Response, rowParser func(T) []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