tableprinters

package
v0.0.0-...-e6bedda Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2026 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SwitchDetail

type SwitchDetail struct {
	*apiv2.Switch
}

type TablePrinter

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

func New

func New() *TablePrinter

func (*TablePrinter) AuditTable

func (t *TablePrinter) AuditTable(data []*apiv2.AuditTrace, wide bool) ([]string, [][]string, error)

func (*TablePrinter) ComponentTable

func (t *TablePrinter) ComponentTable(data []*apiv2.Component, wide bool) ([]string, [][]string, error)

func (*TablePrinter) ContextTable

func (t *TablePrinter) ContextTable(data *config.Contexts, wide bool) ([]string, [][]string, error)

func (*TablePrinter) HealthTable

func (t *TablePrinter) HealthTable(data []*apiv2.Health, wide bool) ([]string, [][]string, error)

func (*TablePrinter) IPTable

func (t *TablePrinter) IPTable(data []*apiv2.IP, wide bool) ([]string, [][]string, error)

func (*TablePrinter) ImageTable

func (t *TablePrinter) ImageTable(data []*apiv2.Image, wide bool) ([]string, [][]string, error)

func (*TablePrinter) ProjectInviteTable

func (t *TablePrinter) ProjectInviteTable(data []*apiv2.ProjectInvite, _ bool) ([]string, [][]string, error)

func (*TablePrinter) ProjectMemberTable

func (t *TablePrinter) ProjectMemberTable(data []*apiv2.ProjectMember, _ bool) ([]string, [][]string, error)

func (*TablePrinter) ProjectTable

func (t *TablePrinter) ProjectTable(data []*apiv2.Project, _ bool) ([]string, [][]string, error)

func (*TablePrinter) SetLastEventErrorThreshold

func (t *TablePrinter) SetLastEventErrorThreshold(threshold time.Duration)

func (*TablePrinter) SetPrinter

func (t *TablePrinter) SetPrinter(printer *printers.TablePrinter)

func (*TablePrinter) SwitchDetailTable

func (t *TablePrinter) SwitchDetailTable(switches []SwitchDetail) ([]string, [][]string, error)

func (*TablePrinter) SwitchTable

func (t *TablePrinter) SwitchTable(switches []*apiv2.Switch, wide bool) ([]string, [][]string, error)

func (*TablePrinter) SwitchWithConnectedMachinesTable

func (t *TablePrinter) SwitchWithConnectedMachinesTable(res []*apiv2.SwitchWithMachines, wide bool) ([]string, [][]string, error)

func (*TablePrinter) TenantInviteTable

func (t *TablePrinter) TenantInviteTable(data []*apiv2.TenantInvite, _ bool) ([]string, [][]string, error)

func (*TablePrinter) TenantMemberTable

func (t *TablePrinter) TenantMemberTable(data []*apiv2.TenantMember, _ bool) ([]string, [][]string, error)

func (*TablePrinter) TenantTable

func (t *TablePrinter) TenantTable(data []*apiv2.Tenant, wide bool) ([]string, [][]string, error)

func (*TablePrinter) ToHeaderAndRows

func (t *TablePrinter) ToHeaderAndRows(data any, wide bool) ([]string, [][]string, error)

func (*TablePrinter) TokenTable

func (t *TablePrinter) TokenTable(data []*apiv2.Token, _ bool) ([]string, [][]string, error)

Jump to

Keyboard shortcuts

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