Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JSONFormatter ¶
type JSONFormatter struct { }
JSONFormatter prints-out facts in JSON format
func NewJSONFormatter ¶
func NewJSONFormatter() *JSONFormatter
NewJSONFormatter returns new JSON formatter
func (*JSONFormatter) Print ¶
func (jf *JSONFormatter) Print(facts map[string]interface{}) error
Print prints-out facts in JSON format
type KeyValueFormatter ¶
type KeyValueFormatter struct { }
KeyValueFormatter prints-out facts in k:v format
func NewKeyValueFormatter ¶
func NewKeyValueFormatter() *KeyValueFormatter
NewKeyValueFormatter returns new key-value formatter
func (KeyValueFormatter) Print ¶
func (kvf KeyValueFormatter) Print(facts map[string]interface{}) error
Print prints-out facts in k:v format
type PlainTextFormatter ¶
type PlainTextFormatter struct { }
PlainTextFormatter prints-out facts in k=>v format
func NewFormatter ¶
func NewFormatter() *PlainTextFormatter
NewFormatter returns new plain-text formatter
func (PlainTextFormatter) Print ¶
func (pf PlainTextFormatter) Print(facts map[string]interface{}) error
Print prints-out facts in k=>v format
Click to show internal directories.
Click to hide internal directories.