utils

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 31, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL