printers

package
v0.0.0-...-b528bab Latest Latest
Warning

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

Go to latest
Published: Oct 30, 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

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

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

func NewTreePrinter

func NewTreePrinter() *TreePrinter

func (*TreePrinter) Child

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

func (*TreePrinter) Print

func (tp *TreePrinter) Print()

func (*TreePrinter) PrintIndented

func (tp *TreePrinter) PrintIndented()

func (*TreePrinter) String

func (tp *TreePrinter) String() string

Jump to

Keyboard shortcuts

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