Documentation ¶
Index ¶
- func AllocationEvents(w io.Writer, title string, events ...api.AllocationEvent) error
- func AllocationStatuses(w io.Writer, title string, backupRegions []api.Region, ...) error
- func JSON(w io.Writer, v interface{}) error
- func LogEntry(w io.Writer, entry logs.LogEntry, opts ...LogOption) (err error)
- func MachineEvents(w io.Writer, events ...*api.MachineEvent) error
- func MachineIPs(w io.Writer, ips ...*api.MachineIP) error
- func MachineStatus(w io.Writer, machine *api.Machine) error
- func MachineStatuses(w io.Writer, title string, machines ...*api.Machine) error
- func Table(w io.Writer, title string, rows [][]string, cols ...string) error
- func TitledJSON(w io.Writer, title string, v interface{}) error
- func VerticalTable(w io.Writer, title string, objects [][]string, cols ...string) error
- type LogOption
- type LogOptions
- type TextBlock
- func (tb *TextBlock) Detail(v ...interface{})
- func (tb *TextBlock) Detailf(format string, v ...interface{})
- func (tb *TextBlock) Done(v ...interface{})
- func (tb *TextBlock) Donef(format string, v ...interface{})
- func (tb *TextBlock) Overwrite()
- func (tb *TextBlock) Print(v ...interface{})
- func (tb *TextBlock) Printf(format string, v ...interface{})
- func (tb *TextBlock) Println(v ...interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AllocationEvents ¶
func AllocationStatuses ¶
func MachineEvents ¶
func MachineEvents(w io.Writer, events ...*api.MachineEvent) error
func MachineStatuses ¶
Types ¶
type LogOption ¶
type LogOption func(o *LogOptions)
LogOption is a func type that returns a LogOption.
func HideAllocID ¶
func HideAllocID() LogOption
HideAllocID removes the allocation ID from the log output.
func RemoveNewlines ¶
func RemoveNewlines() LogOption
RemoveNewlines removes newlines from the log output.
type LogOptions ¶
type TextBlock ¶
type TextBlock struct {
// contains filtered or unexported fields
}
func NewTextBlock ¶
func (*TextBlock) Detail ¶
func (tb *TextBlock) Detail(v ...interface{})
Detail prints to the output ctx carries. It behaves similarly to log.Print.
Click to show internal directories.
Click to hide internal directories.