Documentation ¶
Index ¶
- func JSON(w io.Writer, v interface{}) error
- func LogEntry(w io.Writer, entry logs.LogEntry, opts ...LogOption) (err error)
- func MachineHealthChecksSummary(machines ...*fly.Machine) string
- func ReusableTable(w io.Writer, title string, rows [][]string, cols ...string) (err 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 MachineHealthChecksSummary ¶ added in v0.0.396
func ReusableTable ¶ added in v0.0.404
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.