output

package
v0.0.52 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Names []string
View Source
var Outputs = []Output{
	Yaml,
	Table,
}
View Source
var Table = &table{}
View Source
var Yaml = &yaml{}

Functions

func MarshalYaml

func MarshalYaml(v any) (string, error)

Types

type Output

type Output interface {
	// GetName returns the name of the output format, will be used by the CLI to identify the output format.
	GetName() string
	// AsTable true if the kubernetes request should be made with the `application/json;as=Table;v=0.1` header.
	AsTable() bool
	// PrintObj prints the given object as a string.
	PrintObj(obj runtime.Unstructured) (string, error)
}

func FromString

func FromString(name string) Output

Jump to

Keyboard shortcuts

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