table

package
v0.0.0-...-3bb125c Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2023 License: Apache-2.0, MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KubeFormat

type KubeFormat struct {
	Titles      []string
	Data        [][]string
	TableWriter *tablewriter.Table
}

func (*KubeFormat) CancelHeader

func (t *KubeFormat) CancelHeader()

func (*KubeFormat) Output

func (t *KubeFormat) Output()

func (*KubeFormat) SetData

func (t *KubeFormat) SetData(data [][]string) TableInformation

func (*KubeFormat) SetTitles

func (t *KubeFormat) SetTitles(titles []string) TableInformation

type TableFormat

type TableFormat struct {
	Titles      []string
	Data        [][]string
	TableWriter *tablewriter.Table
}

func (*TableFormat) CancelHeader

func (t *TableFormat) CancelHeader()

func (*TableFormat) Output

func (t *TableFormat) Output()

func (*TableFormat) SetData

func (t *TableFormat) SetData(data [][]string) TableInformation

func (*TableFormat) SetTitles

func (t *TableFormat) SetTitles(titles []string) TableInformation

type TableInformation

type TableInformation interface {
	SetData(data [][]string) TableInformation
	CancelHeader()
	SetTitles(titles []string) TableInformation
	Output()
}

func NewKubeFormat

func NewKubeFormat() TableInformation

func NewTableFormat

func NewTableFormat() TableInformation

func NewTableInformation

func NewTableInformation(style string) TableInformation

Jump to

Keyboard shortcuts

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