render

package
v0.0.323 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2022 License: Apache-2.0 Imports: 15 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 LogEntry added in v0.0.293

func LogEntry(w io.Writer, entry logs.LogEntry, opts ...LogOption) (err error)

func MachineEvents added in v0.0.307

func MachineEvents(w io.Writer, events ...*api.MachineEvent) error

func MachineIPs added in v0.0.307

func MachineIPs(w io.Writer, ips ...*api.MachineIP) error

func MachineStatus added in v0.0.307

func MachineStatus(w io.Writer, machine *api.Machine) error

func MachineStatuses added in v0.0.304

func MachineStatuses(w io.Writer, title string, machines ...*api.Machine) 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 LogOption added in v0.0.293

type LogOption func(o *LogOptions)

LogOption is a func type that returns a LogOption.

func HideAllocID added in v0.0.293

func HideAllocID() LogOption

HideAllocID removes the allocation ID from the log output.

func HideRegion added in v0.0.293

func HideRegion() LogOption

HideRegion removes the region from the log output.

func RemoveNewlines added in v0.0.293

func RemoveNewlines() LogOption

RemoveNewlines removes newlines from the log output.

type LogOptions added in v0.0.293

type LogOptions struct {
	RemoveNewlines bool
	HideRegion     bool
	HideAllocID    bool
}

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