Documentation ¶
Index ¶
- type StderrFormater
- type StdoutFormater
- type StreamFormatter
- func (sf *StreamFormatter) FormatError(err error) []byte
- func (sf *StreamFormatter) FormatProgress(id, action string, progress *jsonmessage.JSONProgress) []byte
- func (sf *StreamFormatter) FormatStatus(id, format string, a ...interface{}) []byte
- func (sf *StreamFormatter) FormatStream(str string) []byte
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StderrFormater ¶
type StderrFormater struct { io.Writer *StreamFormatter }
type StdoutFormater ¶
type StdoutFormater struct { io.Writer *StreamFormatter }
type StreamFormatter ¶
type StreamFormatter struct {
// contains filtered or unexported fields
}
func NewJSONStreamFormatter ¶
func NewJSONStreamFormatter() *StreamFormatter
NewJSONStreamFormatter returns a StreamFormatter configured to stream json
func NewStreamFormatter ¶
func NewStreamFormatter() *StreamFormatter
NewStreamFormatter returns a simple StreamFormatter
func (*StreamFormatter) FormatError ¶
func (sf *StreamFormatter) FormatError(err error) []byte
func (*StreamFormatter) FormatProgress ¶
func (sf *StreamFormatter) FormatProgress(id, action string, progress *jsonmessage.JSONProgress) []byte
func (*StreamFormatter) FormatStatus ¶
func (sf *StreamFormatter) FormatStatus(id, format string, a ...interface{}) []byte
func (*StreamFormatter) FormatStream ¶
func (sf *StreamFormatter) FormatStream(str string) []byte
Click to show internal directories.
Click to hide internal directories.