tableprinters

package
v0.15.4 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2024 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MachinesAndIssues added in v0.14.3

type MachinesAndIssues struct {
	EvaluationResult []*models.V1MachineIssueResponse `json:"evaluation_result" yaml:"evaluation_result"`
	Machines         []*models.V1MachineIPMIResponse  `json:"machines" yaml:"machines"`
	Issues           []*models.V1MachineIssue         `json:"issues" yaml:"issues"`
}

MachinesAndIssues is used for combining issues with more data on machines.

type SwitchDetail

type SwitchDetail struct {
	*models.V1SwitchResponse
}

type SwitchesWithMachines added in v0.12.12

type SwitchesWithMachines struct {
	SS []*models.V1SwitchResponse               `json:"switches" yaml:"switches"`
	MS map[string]*models.V1MachineIPMIResponse `json:"machines" yaml:"machines"`
}

type TablePrinter

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

func New

func New() *TablePrinter

func (*TablePrinter) AuditTable added in v0.12.14

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

func (*TablePrinter) ContextTable

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

func (*TablePrinter) FSLTable

func (t *TablePrinter) FSLTable(data []*models.V1FilesystemLayoutResponse, wide bool) ([]string, [][]string, error)

func (*TablePrinter) FirewallTable

func (t *TablePrinter) FirewallTable(data []*models.V1FirewallResponse, wide bool) ([]string, [][]string, error)

func (*TablePrinter) FirmwareTable

func (t *TablePrinter) FirmwareTable(data *models.V1FirmwaresResponse, wide bool) ([]string, [][]string, error)

func (*TablePrinter) IPTable

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

func (*TablePrinter) ImageTable

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

func (*TablePrinter) MachineIPMITable

func (t *TablePrinter) MachineIPMITable(data []*models.V1MachineIPMIResponse, wide bool) ([]string, [][]string, error)

func (*TablePrinter) MachineIssuesListTable added in v0.14.3

func (t *TablePrinter) MachineIssuesListTable(data []*models.V1MachineIssue, wide bool) ([]string, [][]string, error)

func (*TablePrinter) MachineIssuesTable

func (t *TablePrinter) MachineIssuesTable(data *MachinesAndIssues, wide bool) ([]string, [][]string, error)

func (*TablePrinter) MachineLogsTable

func (t *TablePrinter) MachineLogsTable(data []*models.V1MachineProvisioningEvent, wide bool) ([]string, [][]string, error)

func (*TablePrinter) MachineTable

func (t *TablePrinter) MachineTable(data []*models.V1MachineResponse, wide bool) ([]string, [][]string, error)

func (*TablePrinter) NetworkTable

func (t *TablePrinter) NetworkTable(data []*models.V1NetworkResponse, wide bool) ([]string, [][]string, error)

func (*TablePrinter) PartitionCapacityTable

func (t *TablePrinter) PartitionCapacityTable(data []*models.V1PartitionCapacity, wide bool) ([]string, [][]string, error)

func (*TablePrinter) PartitionTable

func (t *TablePrinter) PartitionTable(data []*models.V1PartitionResponse, wide bool) ([]string, [][]string, error)

func (*TablePrinter) ProjectTable

func (t *TablePrinter) ProjectTable(data []*models.V1ProjectResponse, wide bool) ([]string, [][]string, error)

func (*TablePrinter) SetLastEventErrorThreshold added in v0.12.6

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

func (*TablePrinter) SetPrinter

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

func (*TablePrinter) SizeImageConstraintTable

func (t *TablePrinter) SizeImageConstraintTable(data []*models.V1SizeImageConstraintResponse, wide bool) ([]string, [][]string, error)

func (*TablePrinter) SizeMatchingLogTable

func (t *TablePrinter) SizeMatchingLogTable(data []*models.V1SizeMatchingLog, wide bool) ([]string, [][]string, error)

func (*TablePrinter) SizeReservationTable added in v0.15.0

func (t *TablePrinter) SizeReservationTable(data []*models.V1SizeReservationResponse, wide bool) ([]string, [][]string, error)

func (*TablePrinter) SizeTable

func (t *TablePrinter) SizeTable(data []*models.V1SizeResponse, wide bool) ([]string, [][]string, error)

func (*TablePrinter) SwitchDetailTable

func (t *TablePrinter) SwitchDetailTable(data []*SwitchDetail, wide bool) ([]string, [][]string, error)

func (*TablePrinter) SwitchTable

func (t *TablePrinter) SwitchTable(data []*models.V1SwitchResponse, wide bool) ([]string, [][]string, error)

func (*TablePrinter) SwitchWithConnectedMachinesTable added in v0.12.12

func (t *TablePrinter) SwitchWithConnectedMachinesTable(data *SwitchesWithMachines, wide bool) ([]string, [][]string, error)

func (*TablePrinter) TenantTable added in v0.14.0

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

func (*TablePrinter) ToHeaderAndRows

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

Jump to

Keyboard shortcuts

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