render

package
v0.0.272 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AllocationEvents added in v0.0.272

func AllocationEvents(w io.Writer, title string, events ...api.AllocationEvent) error

func AllocationStatuses added in v0.0.272

func AllocationStatuses(w io.Writer, title string, backupRegions []api.Region, statuses ...*api.AllocationStatus) error

func JSON added in v0.0.252

func JSON(w io.Writer, v interface{}) error

func Table added in v0.0.252

func Table(w io.Writer, title string, rows [][]string, cols ...string) error

Table renders the table defined by the given properties into w. Both title & cols are optional.

func TitledJSON added in v0.0.252

func TitledJSON(w io.Writer, title string, v interface{}) error

func VerticalTable added in v0.0.272

func VerticalTable(w io.Writer, title string, objects [][]string, cols ...string) error

Types

type TextBlock added in v0.0.272

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

func NewTextBlock added in v0.0.272

func NewTextBlock(ctx context.Context, v ...interface{}) (tb *TextBlock)

func (*TextBlock) Detail added in v0.0.272

func (tb *TextBlock) Detail(v ...interface{})

Detail prints to the output ctx carries. It behaves similarly to log.Print.

func (*TextBlock) Detailf added in v0.0.272

func (tb *TextBlock) Detailf(format string, v ...interface{})

Detailf prints to the output ctx carries. It behaves similarly to log.Printf.

func (*TextBlock) Done added in v0.0.272

func (tb *TextBlock) Done(v ...interface{})

func (*TextBlock) Donef added in v0.0.272

func (tb *TextBlock) Donef(format string, v ...interface{})

func (*TextBlock) Overwrite added in v0.0.272

func (tb *TextBlock) Overwrite()

func (*TextBlock) Print added in v0.0.272

func (tb *TextBlock) Print(v ...interface{})

func (*TextBlock) Printf added in v0.0.272

func (tb *TextBlock) Printf(format string, v ...interface{})

func (*TextBlock) Println added in v0.0.272

func (tb *TextBlock) Println(v ...interface{})

Jump to

Keyboard shortcuts

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