printers

package
v1.14.0 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DisplayCheckTrace added in v0.5.0

func DisplayCheckTrace(checkTrace *v1.CheckDebugTrace, tp *TreePrinter, hasError bool)

DisplayCheckTrace prints out the check trace found in the given debug message.

func PrintTable

func PrintTable(target io.Writer, headers []string, rows [][]string)

PrintTable writes an terminal-friendly table of the values to the target.

func TreeNodeTree

func TreeNodeTree(tp *TreePrinter, treeNode *v1.PermissionRelationshipTree)

TreeNodeTree walks an Authzed Tree Node and creates corresponding nodes for a treeprinter.

Types

type TreePrinter added in v0.10.1

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

func NewTreePrinter added in v0.10.1

func NewTreePrinter() *TreePrinter

func (*TreePrinter) Child added in v0.10.1

func (tp *TreePrinter) Child(val string) *TreePrinter

func (*TreePrinter) Print added in v0.10.1

func (tp *TreePrinter) Print()

func (*TreePrinter) String added in v0.10.1

func (tp *TreePrinter) String() string

Jump to

Keyboard shortcuts

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