printer

package
v0.9.0-nightly.20250115 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PrintDataAsJson

func PrintDataAsJson(data any, outWriter io.Writer) error

func PrintDataAsTable

func PrintDataAsTable(table metav1.Table, outWriter io.Writer) error

func PrintDataAsYaml

func PrintDataAsYaml(data any, outWriter io.Writer) error

Types

type ClusterPrinter

type ClusterPrinter struct {
	Clusters  []entity.Cluster
	OutWriter io.Writer
}

func (ClusterPrinter) PrintOutput

func (cp ClusterPrinter) PrintOutput(format string) error

type SecretPrinter

type SecretPrinter struct {
	Secrets   []entity.Secret
	OutWriter io.Writer
}

func (SecretPrinter) PrintOutput

func (sp SecretPrinter) PrintOutput(format string) error

Jump to

Keyboard shortcuts

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