table

package
v1.12.1 Latest Latest
Warning

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

Go to latest
Published: May 3, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTablePrinter

func NewTablePrinter(out io.Writer) *tableprinter.Printer

Types

type Row

type Row struct {
	RowCompact `header:"inline"`
	Message    string `header:"message"`
}

type RowCompact

type RowCompact struct {
	IsFailure bool
	ID        int    `header:"id,text"`
	Policy    string `header:"policy"`
	Rule      string `header:"rule"`
	Resource  string `header:"resource"`
	Result    string `header:"result"`
	Reason    string `header:"reason"`
}

type Table

type Table struct {
	RawRows []Row
}

func (*Table) Add

func (t *Table) Add(rows ...Row)

func (*Table) AddFailed

func (t *Table) AddFailed(rows ...Row)

func (*Table) Rows

func (t *Table) Rows(detailed bool) interface{}

Jump to

Keyboard shortcuts

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