package
Version:
v0.26.0
Opens a new window with list of versions in this module.
Published: Oct 7, 2025
License: MIT
Opens a new window with license information.
Imports: 13
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
PrepareRequestData prepares shell request data by extracting environment variables
type Req struct {
Cmd string `map:"cmd" validate:"required"`
Shell string `map:"shell"`
Workdir string `map:"workdir"`
Timeout string `map:"timeout"`
Env map[string]string `map:"env"`
Background bool `map:"background"`
}
type Res struct {
Code int `map:"code"`
Stdout string `map:"stdout"`
Stderr string `map:"stderr"`
PID int `map:"pid"`
Log string `map:"log"`
}
type Result struct {
Req Req `map:"req"`
Res Res `map:"res"`
RT time.Duration `map:"rt"`
Status int `map:"status"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.