tablebuilder

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Builder

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

func NewBuilder

func NewBuilder(tableType enums.TableType, hosts []host.Host, cliGateway *cligw.Gateway) *Builder

NewBuilder creates a new instance of the table builder, using the CLI gateway

func (*Builder) Init

func (tb *Builder) Init() error

Init initializes the table configuration based on the given table type and host data. It processes the host data and calls the appropriate handler function for the specified table type.

func (*Builder) Render

func (tb *Builder) Render() error

Render sets the rows, columns, and style for the Builder and then renders the table.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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