printer

package
v0.0.0-...-ad3a29e Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Printer

type Printer struct {
	// contains filtered or unexported fields
}

func New

func New(w io.Writer) Printer

func (*Printer) PrintResources

func (p *Printer) PrintResources(ctx context.Context, resList resource.List, options ResourcePrintOptions) error

type ResourcePrintOptions

type ResourcePrintOptions struct {
	// The columns to print
	Columns []string

	// SortBy is the column to sort by
	SortBy string

	// OmitHeader specifies whether the resource header should be omitted
	OmitHeader bool

	// DescendingOrder specifies whether the resource list should be printed in
	// descending order
	DescendingOrder bool
}

Jump to

Keyboard shortcuts

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