ksutil

package
v0.0.0-...-87b999f Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2018 License: Apache-2.0 Imports: 6 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Fprint

func Fprint(out io.Writer, objects []*unstructured.Unstructured, format string) error

Fprint prints objects to a writer in a format (yaml or json).

Types

type Table

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

Table creates an output table.

func NewTable

func NewTable(w io.Writer) *Table

NewTable creates an instance of table.

func (*Table) Append

func (t *Table) Append(row []string)

Append appends a row to the table.

func (*Table) AppendBulk

func (t *Table) AppendBulk(rows [][]string)

AppendBulk appends multiple rows to the table.

func (*Table) Render

func (t *Table) Render()

Render writes the output to the table's writer.

func (*Table) SetHeader

func (t *Table) SetHeader(columns []string)

SetHeader sets the header for the table.

Jump to

Keyboard shortcuts

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