Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WriteExecuteLog ¶
func WriteExecuteLog(w io.Writer, item *ExecuteLogItem)
WriteExecuteLog write an item into writer.
Types ¶
type ExecuteLogItem ¶
type ExecuteLogItem struct { StartTime time.Time EndTime time.Time Command string // string or []string ? Stdout []byte // ssh package uses []byte, so []byte is used here Stderr []byte Err error // other error messages Description string }
ExecuteLogItem a log item about executing a command.
Click to show internal directories.
Click to hide internal directories.