output

package
v1.60.0 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TypeDefault        = ""
	TypeJSON           = "json"
	TypeYAML           = "yaml"
	TypeName           = "name"
	TypeGoTemplate     = "go-template"
	TypeGoTemplateFile = "go-template-file"
	TypeTemplate       = "template"
	TypeTemplateFile   = "template-file"
	TypeJsonPath       = "jsonpath"
	TypeJsonPathFile   = "jsonpath-file"
	TypeReport         = "report"
)

Variables

This section is empty.

Functions

func IsOutputDefault

func IsOutputDefault(output *string) bool

func IsOutputName

func IsOutputName(output *string) bool

func IsOutputReport added in v0.13.0

func IsOutputReport(output *string) bool

func PrintResourceNames

func PrintResourceNames(out io.Writer, resource runtime.Object) error

PrintResourceNames prints the name of a resource, or if it's a list, it will print the names of the nested resources.

It can print deeply nested list objects names.

func TranslateTimestampSince added in v1.28.0

func TranslateTimestampSince(timestamp metav1.Time) string

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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