Versions in this module Expand all Collapse all v1 v1.0.0 Dec 3, 2021 Changes in this version + const RFC3339NanoFixed + func DisplayJSONMessagesStream(in io.Reader, out io.Writer, terminalFd uintptr, isTerminal bool, ...) error + func DisplayJSONMessagesToStream(in io.Reader, stream stream, auxCallback func(*json.RawMessage)) error + func GetSize(fd uintptr) *remotecommand.TerminalSize + func IsTerminal(i interface{}) bool + type JSONError struct + Code int + Message string + func (e *JSONError) Error() string + type JSONMessage struct + Aux *json.RawMessage + Error *JSONError + ErrorMessage string + From string + ID string + Progress *JSONProgress + ProgressMessage string + Status string + Stream string + Time int64 + TimeNano int64 + func (jm *JSONMessage) Display(out io.Writer, termInfo termInfo) error + type JSONProgress struct + Current int64 + HideCounts bool + Start int64 + Total int64 + Units string + func (p *JSONProgress) String() string + type SafeFunc func() error + type TTY struct + In io.Reader + Out io.Writer + Parent *interrupt.Handler + Raw bool + TryDev bool + func (t *TTY) MonitorSize(initialSizes ...*remotecommand.TerminalSize) remotecommand.TerminalSizeQueue + func (t TTY) GetSize() *remotecommand.TerminalSize + func (t TTY) IsTerminalIn() bool + func (t TTY) IsTerminalOut() bool + func (t TTY) Safe(fn SafeFunc) error