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 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 ¶ added in v0.0.272
func AllocationStatuses ¶ added in v0.0.272
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 TextBlock ¶ added in v0.0.272
type TextBlock struct {
// contains filtered or unexported fields
}
func NewTextBlock ¶ added in v0.0.272
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
Detailf prints to the output ctx carries. It behaves similarly to log.Printf.
Click to show internal directories.
Click to hide internal directories.